Altera_Forum
Honored Contributor
19 years agoHow to determine program start/stop Address Range
I have a C-Program that I Build using the Nios II IDE.
Lets say the program executes in external SRAM. How do I determine where in memory the program starts and ends ? I have a requirement to test this external SRAM. That is, run a memory test on the memory range that is not used for program storage. How do I determine this address range(s)? Does the compiler have this info (start/end address...) that can be used at compile time? For example, in my memory test when I specify a start and end address for the memory test can this range be provided by the compiler? (would vary depending on my program size) Thanks, Jim