Calling convention that gets frame pointer register clobbered

Latchesar Ionkov lucho@ionkov.net
Wed Dec 17 22:42:00 GMT 2003


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



More information about the Gcc mailing list