need ideas on how to debug code generator
- From: Ram Bhamidipaty <rambham@xxxxxxxxx>
- Date: Sun, 24 Feb 2008 21:47:50 -0800
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
.
- Follow-Ups:
- Re: need ideas on how to debug code generator
- From: Bartc
- Re: need ideas on how to debug code generator
- From: Nils
- Re: need ideas on how to debug code generator
- From: Thomas Have
- Re: need ideas on how to debug code generator
- Prev by Date: Re: Why nfa-epsilon?
- Next by Date: Re: basic question on register allocation
- Previous by thread: Null pointer analysis in C
- Next by thread: Re: need ideas on how to debug code generator
- Index(es):
Relevant Pages
|
|