Forum Discussion
Altera_Forum
Honored Contributor
16 years agoNIOS memory usage
Does Nios IDE offer a tool for reporting memory usage of my project? Basically I'd like to display the amount of space used for every memory section. Better if I could have also a complete mapp...
Altera_Forum
Honored Contributor
16 years ago --- Quote Start --- Look at getting the linker to produce a map file ('-Map map_file' or similar). Otherwise objdump -p and objdump -h usually give enough info. (Any version of objdump for any architecure should work there!) --- Quote End --- Ok with using objdump; I can get the required info. I tried with the -Map switch to automate the file generation into build process but I get the error:
Linking test_2010.elf...
nios2-elf-g++: dumpmap: No such file or directory
nios2-elf-g++: unrecognized option `-Map'
make: *** Error 1 I looked at nios-elf-ld help and I found the -Map command is correct. Does this nios2-elf-g++ called from the IDE indirectly calls this linker or it uses its own set of command switches? I tried to add other linker options (i.e. --verbose , --stats) but these are working correctly. Regards Cris