cdecl and pascal keywords

Brian K. W. Hook jdb at reef.cis.ufl.edu
Thu Dec 27 05:40:20 AEST 1990


I know that C and Pascal pass parameters differently and clean up the calling
stack differently, but I was wondering whether there is a NOTICEABLE difference
in speed and size of program that uses PASCAL declarations for fixed argument
functios and the cdecl declaration for variable...e.g.

void pascal foobar ( void );

void pascal foobar ( void )
{
...
}

VERSUS:

void cdecl foobar ( void );

void cdecl foobar ( void )
{
....
}

Assume that parameters can be passed, also, just a fixed amount....I know
main() has to be declared as cdecl, but otherwise, is it possible for me
to change all of my other functions to pascal declarations without any
side effects?

And will I actually gain anything?  I know a lot fo Windows prototypes are
prototype with the PASCAL keyword.

Brian



More information about the Comp.lang.c mailing list