Forum Discussion
Altera_Forum
Honored Contributor
21 years agoAccess linker symbol from .C file
I'm trying to access a linker symbol from my C file. The idea is to find out where the end of my code and R/O memory is in flash so I can use the remainder for storage. I have the following in my...
Altera_Forum
Honored Contributor
21 years agoThe problem you had is related to the fact that you declared the extern variable as "int", that means the compiler will generate GP-relative addressing, that is not the right one in your case.
Take a look at the post "Disabling GP-addressing in generated source code" on this forum... bye PJ