Altera_Forum
Honored Contributor
20 years agoRemoving unused code fror NIOS target
Hi All,
I am using nios-elf tools to compile and build a binary for NIOS target. There are many unused functions in the code which I want to remove during linking. I have used -ffunction-sections as a compile option and -gc-sections as linker option. Though I am able to put the functions in their own sections , I am not able to run the resulting binary. I have often read that not all targets support this. Does any one know if NIOS target supports this? Cheers, Ajay