home bbs files messages ]

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

   comp.lang.pascal.borland      Borland Pascal was actually pretty neat      2,978 messages   

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

   Message 2,658 of 2,978   
   Marco van de Voort to Jim Leonard   
   Re: Possible to inline this code?   
   10 Jun 08 08:39:20   
   
   2e3164a8   
   From: marcov@stack.nl   
      
   On 2008-06-09, Jim Leonard  wrote:   
   > Agreed.  Every time I use XLAT or some other 808x time/space-saving   
   > special instruction, I keep thinking about why I never see that in   
   > compiler output.  Then I start thinking about developing a compiler,   
   > and I suddenly understand why :-)   
      
   Compilers prefer orthogonal instructions. This is probably why the 80386   
   grants many instructions to use any of the GPR registers.   
      
   Moreover, the average compiler is pretty bad in optimizing for a specific   
   CPU. Some extra instructions are used (like movc in 686+), and some minor   
   rearrangements of frequently used sequences is done, but that's it.   
      
   E.g. Delphi misses such a switch at all.   
      
   --- 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