Usenet comp.sys.dec (1990-2013)
 help / color / mirror / Atom feed
From: raeburn@athena.mit.edu (Ken Raeburn)
Subject: Re: ANSI-C style variadic functions on MIPS
Date: 8 Jan 90 04:15:47 GMT	[thread overview]
Message-ID: <1990Jan8.041547.18259@athena.mit.edu> (raw)
In-Reply-To: 34218@mips.mips.COM

In article <34218@mips.mips.COM> lai@mips.COM (David Lai) writes:
> extern foo(double,...);
> foo(2.0,3.0);  /* passes 2.0 in fp reg, 3.0 in regular registers */

Ah, excellent.  Thank you for the confirmation.  I had thought this
was the solution, but it doesn't match Kane's book (well, maybe if you
interpret variadic-function arguments as coming under "anything else",
regardless of type -- but that should be explicitly stated) or the
behavior I saw from the PMAX (excuse me, DECstation) compiler.  (I did
have my definition -- with ellipsis -- before the call; that should be
enough.)  Could the Ultrix version be an older compiler, that didn't
have this fixed?  Theirs is 1.31, and puts 3.0 (from the example
above) in $f14, as does the current gcc port.  If it is outdated, I'll
complain at them....  What's the current one supposed to be?

Thanks again...

-- Ken


  reply	other threads:[~1990-01-08  4:15 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
1990-01-06  6:28   ` Ken Raeburn
1990-01-06 19:51     ` David Lai
1990-01-08  4:15       ` Ken Raeburn [this message]
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