Forum Discussion
Altera_Forum
Honored Contributor
20 years agoGCC
Dear gurus, I have the following problem. I have built a library which is compiled and linked separately from the rest of software. This library is stored in flash memory as a standalone pi...
Altera_Forum
Honored Contributor
20 years agoHi Alessandro,
> Can you suggest a way to workaround this problem ? Disable use of the global pointer with the -G0 compiler option (for both library and app). If you _must_ use the gp, you can write some fixup code in your library to save/restore the gp. But, depending on your requirements ... it might not be worth the effort. Regards, --Scott