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 ago --- Quote Start --- originally posted by monkeyboy@May 20 2005, 05:17 AM really is the decleration that you are looking for, i.e. it says: "access mickey as if it were in the .data section", which for nios ii just means "don't use gp addressing". if mickey was actually linked to be in the .sdata the code would still work it just wouldn't use the gp (as desired).
obviously this isn't exactly self documenting code, but i believe it does what you're asking for. --- Quote End --- Hi Monkeyboy, I think that is the way to go too. about the self documentation of the code, I can still put a# define to mask that dummy section attribute... Thanks a lot, PJ