Varargs, portability
Chris Torek
chris at umcp-cs.UUCP
Tue Jun 3 18:22:26 AEST 1986
In article <5576 at alice.uUCp>, ark at alice.UucP (Andrew Koenig) writes:
>... Most C compilers on the VAX use the built-in subroutine
>instructions for C subroutines. These instructions limit the argument
>list to 255 words.
If you refer to the fact that the `ret' instruction will pop at most
1023 bytes from the stack, well, gawsh, Robert Elz and someone whose
initials are `wah' had that fixed a long time ago (4.1BSD?) . . . .
It is not hard to work around: just generate an `extra' `addl2' after
a subroutine call that pushes that much data.
--
In-Real-Life: Chris Torek, Univ of MD Comp Sci Dept (+1 301 454 1516)
UUCP: seismo!umcp-cs!chris
CSNet: chris at umcp-cs ARPA: chris at mimsy.umd.edu
More information about the Comp.lang.c
mailing list