Re: Where is it written?

From: H. Peter Anvin (hpa@zytor.com)
Date: Fri Nov 10 2000 - 20:06:41 EST


Followup to: <200011110011.eAB0BbF244111@saturn.cs.uml.edu>
By author: "Albert D. Cahalan" <acahalan@cs.uml.edu>
In newsgroup: linux.dev.kernel
>
> Gee that looks old. Might there be better calling conventions
> for the Pentium 4 or Athlon? Memory latency, vector registers,
> and more direct access to floating-point registers may mean
> we ought to change the calling conventions. One would start
> with the kernel of course, because it stands alone.
>

The main win would be passing arguments in registers -- at least three
such registers could be used (%eax, %edx, %ecx) without increasing
register pressure. Doing this for nonvaradic functions probably would
be a win. Similarly, floating-point arguments and SSE arguments could
be passed in registers, and _Bool output (a C99 feature) could at
least theoretically be returned in a flag.

        -hpa

-- 
<hpa@transmeta.com> at work, <hpa@zytor.com> in private!
"Unix gives you enough rope to shoot yourself in the foot."
http://www.zytor.com/~hpa/puzzle.txt
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Wed Nov 15 2000 - 21:00:18 EST