Forum Discussion
Altera_Forum
Honored Contributor
20 years agoJust my 2 cents...
I'm not sure at all that a global variable that is not used is optimized away by the compiler. I just took a count_binary exampe, and added a file containing a global initialized variable, used anywhere in teh code. That variable was not optimized away, and it can be found on the objdump file. Since the hex files are produced by the IDE, I think the best way to handle them is to let them be produced by the IDE. In that way, everytime you'll change the initialization data the hex will be created again by the IDE... PJ