Related articles |
---|
Compiling an ellipsis gcome@NOSPMcyberus.ca (Guillaume Comeau) (1999-11-21) |
Re: Compiling an ellipsis adonovan@imerge.co.uk (Alan Donovan) (1999-11-23) |
Re: Compiling an ellipsis zalman@netcom15.netcom.com (Zalman Stern) (1999-11-23) |
Re: Compiling an ellipsis jejones@microware.com (James Jones) (1999-11-23) |
From: | "Guillaume Comeau" <gcome@NOSPMcyberus.ca> |
Newsgroups: | comp.compilers |
Date: | 21 Nov 1999 23:27:29 -0500 |
Organization: | Posted via Supernews, http://www.supernews.com |
Keywords: | C, code, architecture, question |
I am currently looking at my implementations of some ANSI C functions
such as printf, sprintf, fprintf. All these functions may take a
variable number of parameters.
Now, I can figure out a portable way to deal with a variable number of
parameters, but some processors put the n first parameters of a
function call into internal registers.
Hence the question: are parameters in ellipsis forcefully on the
operand stack, or can they be in internal registers as space allows?
(in which I have some assembly work to do for each processor port).
Regards,
Guillaume Comeau.
Return to the
comp.compilers page.
Search the
comp.compilers archives again.