Forum Discussion
Altera_Forum
Honored Contributor
16 years agoproblems with the global pointer
Hello! I have a project with three memories, one sram, one sram with back up and an On-Chip Memory. I'm using Interniche stack, superloop mode. When all code sections goes in th SRAMs, the...
Altera_Forum
Honored Contributor
16 years agoThe global pointer area normally spans both .rwdata and .bss. If these sections are not consecutive in memory, the global pointer may not be able to reach them both.
Some ideas: Can you move both .rwdata and .bss to the same location? Can you change you address map so that .rwdata and .bss are closer together? Perhaps the global pointer can be disabled. Maybe "-G 0" would disable it completely? Although, I am not sure if that is a valid value for the -G option.