------- Comment #11 from burnus at gcc dot gnu dot org  2009-06-16 16:35 -------
Note information I got from Kai. (He was not 100% sure for some of the items
and I probably misunderstood also parts thus take with a grain of salt.)

With the stdcall attribute on Win32 the @<n> suffix is automatically added;
with fastcall a @ prefix is added and with cdecl a leading _ is added.
And with Win64 nothing is added (well, cdecl adds a leading _ but this is about
to change).

An alias does not automatically add the decoration thus the decoration
attribute might be useful. (Though, we don't need to support (weak) aliases
initially. For aliases, one needs in C a function prototype to get it working
properly. Thus one needs to check how to handle it correctly.)

Procedure pointers: Here, the calling method is also crucial, i.e. one needs to
be able (a) to specify it for proc pointers and (b) one needs to check it when
one does a proc pointer assignment.

DLLEXPORT/DLLIMPORT: Here, one also needs to handle global variables (= common,
module variables).


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34112

Reply via email to