This is the mail archive of the gcc-bugs@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]

Re: Mindless ABI adherence



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


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