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,469 of 2,753   
   Armel to All   
   Re: Debug optimized code; Now: How many    
   24 Sep 08 21:47:36   
   
   From: armelasselin@hotmail.com   
      
   "Chris F Clark"  a icrit   
   > So, I wonder, how many of you have experienced real compiler bugs,   
   > that you could verify was the compilers fault and not just "mysterious   
   > behavior" that could be fixed by changing the optimizer/debugger   
   > level?   
      
   Hum, it happened once to me for a C/C++ compiler for MIPS (used to be   
   delivered by M... for their PocketPC), was so clever that when   
   executing:   
      
   myfunc (astruc &a)   
      
   for (idx=0; idx<10; ++idx)   
   {   
       mystruc.x = idx;   
       myfunc (mystruc)   
   }   
      
   the compiler found intelligent to keep mystruc.x in a register and never   
   saved it into mystruc.   
   so an aliasing bug, but one incredibly easy to avoid by a good compiler, and   
   rather hard to workaround...   
      
   Armel   
      
   --- 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