This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Register-based calling conventions and Watcom
- To: egcs <egcs at egcs dot cygnus dot com>
- Subject: Register-based calling conventions and Watcom
- From: Ricardo Gayoso <rgayoso at compuserve dot com>
- Date: Fri, 19 Mar 1999 08:38:20 -0500
Sirs,
As you probably know, the Watcom/Power++ family of Win32 compilers seem to be dying.
All of the current users (like me) are looking for an alternative for the Win32 platform.
VC++ is totally unacceptable. Intel C++ is -VERY- good (based on EDG front-end) but it is
uses stack-based calling conventions.
Watcom can use stack-based or register-based calling convention for any function.
Most of the code and libraries (and assembly code) was written with register-based
calling, as it is faster.
I have read on the EGCS docs that it can use registers for calls, but just
EAX EDX ECX. Watcom uses EAX EDX EBX ECX (in that order) for the first 4 integer
params, and stack for remaining params.
May EGCS be customized to emulate Watcom? I think it was the only company that
used register-based and many Watcom/Power++ users would greatly appreciate this.
Thank you in advance,
Ricardo E. Gayoso
ALFANUCLEAR