STDCALL first patch

Danny Smith dannysmith@clear.net.nz
Tue Mar 4 19:43:00 GMT 2008


> In C, is win32 name decoration done automatically for variables that  
> are given the stdcall attribute? (I don't have my win32 machine at  
> hand to check.) If it's not, we could have another attribute, like "! 
> GNU$ ATTRIBUTES STDCALL, DECORATE", to ask for it.

In C, stdcall function names  are automatically mangled with @n suffix
for cygwin and mingw, by code
#define TARGET_MANGLE_DECL_ASSEMBLER_NAME
i386_pe_mangle_decl_assembler_name
Other targets use the default no-op TARGET_MANGLE_DECL_ASSEMBLER_NAME
hook.

I don't know where all this DEC$ ATTRIBUTES stuff is 'officially'
documented but my google came up with this:
http://h21007.www2.hp.com/portal/download/files/unprot/Fortran/docs/lrm/
lrm0586.htm

which would seem to be a reasonable starting point for GNU$ ATTRIBUTES 

Danny
> 
> Thanks,
> FX
> 



More information about the Fortran mailing list