Forum Discussion
Altera_Forum
Honored Contributor
20 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