Julien Pierre wrote:
> 
> I meant on the EMX/gcc compiler OS/2. What does it use by default if no
> calling convention is specified ?

The docs don't say. EMX gcc essentially uses the i386 machine model, so
it may well be cdecl if that's the default for Linux.

> There is a Linux version of the asm code that assembles with gas. It also
> uses cdecl calling convention.
> 
> However, the C header does not declare any calling convention for any
> platform. There isn't even a macro. If cdecl isn't the default then the
> header will have to be modified for gcc , like I had to modify it for VAC
> to explicitly state "__cdecl", otherwise _Optlink was used.

Assuming there are no calls to Linux-specific kernel functions in the
asm, it should work as-is for EMX gcc, without having to specify calling
convention.

h~

Reply via email to