Date: Thu, 22 Sep 1994 23:18:24 -0700 From: Craig Markwardt Subject: Using GCC for Windows apps/DLL's To: djgpp AT sun DOT soe DOT clarkson DOT edu References: <940922101933 DOT 20e01f88 AT FAXCSL DOT DCRT DOT NIH DOT GOV> Chris Tate writes: > Stan Shebs, once of Apple and now with Cygnus (a private company that does > GNU-based development on a contract basis?), worked for quite some time on > porting gcc/g++ 2.x to the Macintosh, which shares with NT the fact that > its toolbox uses Pascal calling conventions. > > It turns out that making gcc understand Pascal calling conventions is > *very* hard. Here are the basic differences: While you are correct that Windows NT uses the PASCAL "keyword" in its function definitions, I don't think the calling style is Pascal. Last time I checked the Windows NT header files, I found #define PASCAL which indicates that PASCAL functions in NT are really just __cdecl. Craig --------------------------------------------------------------------- Craig Markwardt SLAC | "To cogitate and internet: craigm AT egnext DOT slac DOT stanford DOT edu | to solve ..." -MathNet ---------------------------------------------------------------------