Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
13 years ago

Changing code section mapping in Eclipse

By default Eclipse is putting all of the code for my project in the .text section. This includes my source code as well as the code from the linked libraries.

How can I tell Eclipse to break the code into multiple sections? I'd like to be able to map my source code to internal memory but right now the .text section is too large. If I can create a new section and separate my code from the library included code then I can make my code fit in on chip.

Also, the library code greatly out outweighs my source code by a factor of 10 to 1. I find it hard to believe that all of the library code is necessary, is there a compiler/linker option to reduce code size by eliminating unused code?

Thanks,

-phil

2 Replies