R2000 stack alignment question

Rodian Paul rpaul at crow.UUCP
Wed May 29 03:23:47 AEST 1991


> After some hours of digging through assembly code I've finally found out
> that varargs.h depends on the stack being aligned to an 8-byte boundary,
> and the C compiler does its utmost to keep it like that (unlike me).
> 

Don't use varargs(5) it is non-standard, use stdarg(5) instead if you want
portabilty via ANSI C.


-------------------------------------------------------------------------------
rpaul%crow at ccut.cc.u-tokyo.ac.jp	phone: +81 (3) 5706-8357
ccut.cc.u-tokyo.ac.jp!crow!rpaul	  FAX: +81 (3) 5706-8437



More information about the Comp.sys.sgi mailing list