How about g++?
thanks,
Roger Ding
roger...@intel.com
You don't need these ``features'' in g++, because you don't have a
proliferation of competing standards to glue together, but one system-wide
calling convention.
The __cdecl is replaced by an ANSI C++ standard linkage specification,
namely extern "C".
You can influence calling conventions to some extent using __attribute(())
but the need to do this is extremely rare. For example, you could use it to
tell gcc on Intel to use registers for passing parameters.
g++ supports cdecl and stdcall attributes on all x86 targets. See the
documentation for more info.
$ info gcc index "Function Attributes"
>
>You don't need these ``features'' in g++, because you don't have a
>proliferation of competing standards to glue together, but one system-wide
>calling convention.
Correct in general. Unless you are interfacing to something that needs
special calling conventions, don't touch these.
>The __cdecl is replaced by an ANSI C++ standard linkage specification,
>namely extern "C".
Wrong. Those two are completely different things. One is calling
convention, and the other is linkage specification. They can be both
specified at the same time.
Regards,
Mumit