This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: Mindless ABI adherence
- To: Florian Weimer <fw at deneb dot enyo dot de>
- Subject: Re: Mindless ABI adherence
- From: Linus Torvalds <torvalds at transmeta dot com>
- Date: Sat, 27 Oct 2001 09:19:20 -0700 (PDT)
- cc: <gcc-bugs at gcc dot gnu dot org>
On Sat, 27 Oct 2001, Florian Weimer wrote:
> Linus Torvalds <torvalds@transmeta.com> writes:
>
> > (NOTE! The whole point of a stub approach is to not have to use it. If the
> > stub ends up being common, then that just means that the "optimization"
> > was a bad one.
>
> In this case, you probably want to use the Pascal calling convention
> on x86 if the function does not take a variable number of arguments.
Well, the two end up being the same with the arguments in registers, and I
suspect that on x86 once you have more than 3 arguments it doesn't much
matter whether the caller or the callee updates the stack pointer. The
argument setup is much more anyway, and you can't move _that_ to the
callee.
Linus