|
|
View previous topic :: View next topic |
Author |
Message |
Torello
Joined: 29 Sep 2006 Posts: 120
|
Code optimalization, access RAM, compiler memory allocation |
Posted: Fri Nov 21, 2008 5:50 am |
|
|
Hello,
Maybe somebody has some jump-start tips on this topic.
I want to put some variables in the Access RAM Bank (0-0x7F). This part is, for what I understand, always directly accessible without the need to switch banks. Perfectly for execution optimalization (trying to tweak energy consumption to a ultimate minimum).
Looking at Symbol map of my code I see the compiler also assigning @scratch and @interrupt_area variables in this area.
My question is, if I force global variables in this area (#locate or typeMod, have figure out), what happens with those @-variables ? Am I not making things worse?
I would it not be nice to have a type-qualifier with which the compiler tries to put the variable in this area ?
Regards,
Edwin |
|
|
Ken Johnson
Joined: 23 Mar 2006 Posts: 197 Location: Lewisburg, WV
|
|
Posted: Fri Nov 21, 2008 8:59 am |
|
|
Your variables are added to the access bank - "theirs" stay there.
Yes, CCS could make this easier . . .
Ken |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|