Forum Discussion
Altera_Forum
Honored Contributor
21 years agopre-initialized onchip memory
I have a design that uses several onchip memories. To keep it simple here, say I have: main_memory & my_init_memory. Naturally, the main_memory is the code space for my Nios II processor, and ...
Altera_Forum
Honored Contributor
21 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