Kernel Calling Conventions



Greetings all,
I was reading the "FreeBSD Assembly Language Programming" tutorial
(http://www.int80h.org/bsdasm/), when I came across something that
piqued my curiosity.

The C calling convention is touted as being more convenient, and
superior to the calling convention used by linux and microsoft of
passing arguments within registers. I was wondering if this is just a
bias on the part of the writer or what.

What are the actual advantages of popping the arguments onto to the
stack as opposed to passing them via registers?

Thanks in advance, :)
Kyle

.



Relevant Pages

  • Re: Kernel Calling Conventions
    ... The C calling convention is touted as being more convenient, ... passing arguments within registers. ... None have mentioned that passing arguments on the stack allows ...
    (comp.lang.asm.x86)
  • Kernel Calling Conventions
    ... With stack you can pass more variables ... registers can be used without using more memory ... The C calling convention is touted as being more convenient, ... passing arguments within registers. ...
    (comp.lang.asm.x86)
  • Re: Kernel Calling Conventions
    ... The C calling convention is touted as being more convenient, ... passing arguments within registers. ... calling convention is to use registers and not the stack. ... over the DJGPP GCC based compiler, is due to the fact that the OW ...
    (comp.lang.asm.x86)
  • Re: Kernel Calling Conventions
    ... I was reading the "FreeBSD Assembly Language Programming" tutorial ... The C calling convention is touted as being more convenient, ... passing arguments within registers. ...
    (comp.lang.asm.x86)
  • Re: calling procedure from asm
    ... since the default calling convention is ... I use SSE instructions to calculate some ... As long as you're not accessing the MMX registers the SSE ...
    (borland.public.delphi.language.basm)