Varargs and GNU CC for PPC860
Thu Sep 30 19:57:00 GMT 1999
On Sep 28, 1999, "Hotvedt, Jay" <Jay_Hotvedt@adc.com> wrote:
> I would like to be able to tell the GNU PPC860 compiler to pass
> arguments on the stack
I'm not sure this can be done but, anyway, that's not something you
want to do, because it would be breaking the ABI.
> I would like to know how I could implement a function with a
> variable number of parameters without writing assembly code.
Have you ever heard of <varargs.h> or <stdarg.h>, va_start, va_end and
> There does not seem to be any documentation on how to accomplish
> this in the manual supplied by WindRiver Systems.
That's probably not their fault. The headers and macros mentioned
above are Standard C, and they are not supposed to duplicate all the
Standards in their docs, are they? :-)
Alexandre Oliva http://www.dcc.unicamp.br/~oliva IC-Unicamp, Bra[sz]il
** I may forward mail about projects to mailing lists; please use them
More information about the Gcc-bugs