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,234 of 2,753   
   Ram Bhamidipaty to All   
   need ideas on how to debug code generato   
   24 Feb 08 21:47:50   
   
   From: rambham@gmail.com   
      
   Hi,   
      
   I have a small code generator - for 32 bit x86 machines, unfortunately it   
   has some bugs :-(. My problem is that the generated code fails   
   "once in a while" sometimes it can go for 20-40 iterations before failing.   
      
   I have a collection of test cases where I verify the correctness of   
   various simple constructs -- things like load, store, add, sub, etc.   
   Those all pass.   
      
   The test case in question generates a code sequence of about 400 bytes. It   
   fails by seg faulting, unfortunately gdb is unable to print out a   
   useful stack trace.   
      
   What are some techniques that people have used for debugging code   
   generators?   
      
   -Ram   
      
   --- 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