home bbs files messages ]

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

   comp.lang.asm.x86      Ahh, the lost art of x86 assembly      4,675 messages   

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

   Message 3,744 of 4,675   
   Terje Mathisen to All   
   Manners everyone!   
   03 Jan 19 11:31:40   
   
   From: terje.mathisen@nospicedham.tmsw.no   
      
   Let's make this a Happy New Year and try to avoid namecalling and abuse.   
      
   It is perfectly OK to disagree about stack setups/parameter passing and   
   local vars, but the way to solve this is by writing working code using   
   the various styles and then benchmark it: What is faster? What is easier   
   to write and maintain?   
      
   Personally I rather like passing a few parameters in registers,   
   particularly to leaf functions, but for recursion using the stack is   
   pretty much always at least as good.   
      
   As long as you are using a post-1986 CPU you can use stack-relative   
   adressing, in which case EBP is perfectly usable as a regular register,   
   you just need to do the housekeeping/math needed to figure out exactly   
   where everything is located at all times, while the stack grows ans shrinks.   
      
   Terje   
      
   --   
   -    
   "almost all programming can be viewed as an exercise in caching"   
      
   --- 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