From: grunwald@foobar.colorado.edu (Dirk Grunwald)
Subject: Re: ANSI-C style variadic functions on MIPS
Date: 5 Jan 90 17:53:44 GMT [thread overview]
Message-ID: <15370@boulder.Colorado.EDU> (raw)
In-Reply-To: raeburn@athena.mit.edu's message of 5 Jan 90 08:52:05 GMT
You might want to check the documentation for the Gnu C compiler; it
documents a little state machine that implements the MIPS convention.
Also, check stdarg.h & the version of varargs for the mips (va-mips.h).
recall that the mips calling convention always allocates 4 words on
the frame. In general, if you're going to pass varidic args to
something like printf, the ``varargs'' package flushs the registers to
memory. I think this also happens if you take the address of an
argument.
next prev parent reply other threads:[~1990-01-05 17:53 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
1990-01-05 8:52 ANSI-C style variadic functions on MIPS Ken Raeburn
1990-01-05 17:53 ` Dirk Grunwald [this message]
1990-01-06 6:28 ` Ken Raeburn
1990-01-06 19:51 ` David Lai
1990-01-08 4:15 ` Ken Raeburn
1990-01-09 20:07 ` David Lai
1990-01-08 14:31 ` Jim Gettys
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox