Forum Discussion
Altera_Forum
Honored Contributor
21 years agoDisabling GP-addressing in generated source code
Hi Everybody, I would like to share some thougts about the way to control when the compiler uses GP-addressing to address global data structures. This is resulted also from a talk with Mon...
Altera_Forum
Honored Contributor
21 years agoPaolo,
The -G0 option should be sufficient. With the -G0 option, the compiler will not place any data in the .sdata/.sbss sections and will not generate gp-relative data access. Do yourself a favor and avoid using section attributes -- unless you have no choice -- you'll save yourself some future headaches ;-) Regards, --Scott