Forum Discussion
Altera_Forum
Honored Contributor
14 years agodsl, thank you for the response!
We design fault-tolerant vital systems, so we have code that really "should" never be reached, but in the event of a single-point hardware failure (e.g. a stuck bit) we need the system to take appropriate action. Hence the "dead code". I was hoping for an exhaustive list similar to this: http(slashslash)gcc.gnu.org/onlinedocs/gcc/Optimize-Options.html#Optimize-Options (Sorry, can't post links on this forum, it says I'm too new). Nios II comes with similar documentation, however I'm pretty sure that there are a few optimization options happening that are not listed. I haven't ever worked on a compiler, so for all I know such a list may not be possible. However it looks like the GCC supports a "do not remove dead code" option, so I'm hoping that the Nios II might as well. Again, thanks!