home bbs files messages ]

Forums before death by AOL, social media and spammers... "We can't have nice things"

   comp.compilers      Compiler construction, theory, etc. (Mod      2,753 messages   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]

   Message 1,347 of 2,753   
   Vidar Hokstad to Dave Parker   
   Re: x86-64 and calling conventions   
   14 May 08 08:20:27   
   
   From: vidar.hokstad@gmail.com   
      
   On May 13, 4:10 am, Dave Parker  wrote:   
   >  Left-to-right means the arguments are evaluated in   
   > the order that users expect them to be.  If the function is vararg,   
   > then I  push the argument count on the stack last.   
      
   The evaluation order and the calling convention don't need to be tied   
   together, though. Gcc on i386 for example subtracts the required   
   number of words from %esp and then copy the arguments into place via   
   indexed indirect mov's. No idea if that is slower or faster than   
   push'ing stuff onto the stack instead, but the version of gcc I've   
   used "gcc -S" on will use the mov approach even if all arguments are   
   constants.   
      
   Vidar   
      
   --- SoupGate-Win32 v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]


(c) 1994,  bbs@darkrealms.ca