This is the mail archive of the gcc@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]
Other format: [Raw text]

Re: Calling convention that gets frame pointer register clobbered


It doesn't work if the parameters have variable size. For example:

void f(int n, ...) {
...
}

void g(int n) {
	struct {
		int x[n];
	} d;

	f(n, d);
}

won't work. I think it is impossible to implement it if the ABI doesn't
preserve at least one more register except SP :((

Thanks,
	Lucho

On Mon, Dec 15, 2003 at 09:33:10PM -0800, Jim Wilson said:
> On Mon, 2003-12-15 at 19:24, Latchesar Ionkov wrote:
> > Does it make sense?
> 
> It sounds like a reasonable thing to try.
> -- 
> Jim Wilson, GNU Tools Support, http://www.SpecifixInc.com


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