Re: 2.4 alpha-test release

new topic     » goto parent     » topic index » view thread      » older message » newer message

Andy Serpa writes:
> Are you saying translated programs compiled with Watcom 
> can call cdecl unmodified?  If that's what you are saying, 
> then yes, I have counter-examples...

Using exw.exe, or translated code compiled by Watcom,
you should currently be able to call cdecl routines compiled by 
most C compilers, but (very strangely) *not* those compiled by 
Watcom itself. Watcom's version of cdecl differs 
(in the area of floating-point return values) from most other 
C compilers. There may be other non-standard C compilers 
out there as well. 

The fact that there is so much incompatibility
in the Windows C/C++ world is appalling. It's very difficult to
compile a dll with one C compiler and call it
from code compiled by another compiler.
The fact that there are 2 (or more, did I mention fastcall?) 
calling conventions is bad enough, but you also have 
disagreements in the way that routines are named 
in the object files, making linking a problem.

Things aren't so bad with stdcall, because the whole
WIN32 API is stdcall, and everyone needs to be
compatible with that.

Anyway, I'd like to hear about your examples.

Regards,
   Rob Craig
   Rapid Deployment Software
   http://www.RapidEuphoria.com

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu