This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: Varargs and GNU CC for PPC860
- To: "Hotvedt, Jay" <Jay_Hotvedt at adc dot com>
- Subject: Re: Varargs and GNU CC for PPC860
- From: Alexandre Oliva <oliva at lsd dot ic dot unicamp dot br>
- Date: 28 Sep 1999 19:11:22 -0300
- Cc: "'bug-gcc at prep dot ai dot mit dot edu'" <bug-gcc at gnu dot org>
- References: <F3E625E01EBAD211852200105A9CB7B6B858@CMROEXCH01>
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
va_arg?
> 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
oliva@{lsd.ic.unicamp.br,guarana.{org,com}} aoliva@{acm,computer}.org
oliva@{gnu.org,kaffe.org,{egcs,sourceware}.cygnus.com,samba.org}
** I may forward mail about projects to mailing lists; please use them