Forum Discussion
Altera_Forum
Honored Contributor
16 years ago'text' is code, 'bss' is data that is initialed to zeros, the other partts are rather obvious - 'dec' and 'hex' are the totals.
The total size is probably just over 60k. To run in internal memory you need to remove all the calls to libc functions. So the printf() has to go! The code that calls your main() also calls intio libc - so you need to get rid of that as well. (I cheated and renamed main()). If you need to load data into a tightly coupled data block you will have to write your own linker script as well. The JTAG loader seems to run code from the jtag block - so it is the nios cpu that writes into memory and you need vaddr == paddr for the elf sections. If you are loading via external access to the Avalon bus, then you'll need to use the external address of data sections.