This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Varargs and GNU CC for PPC860


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]