CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to support@ccsinfo.com

Code optimalization, access RAM, compiler memory allocation

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
Torello



Joined: 29 Sep 2006
Posts: 117

View user's profile Send private message

Code optimalization, access RAM, compiler memory allocation
PostPosted: Fri Nov 21, 2008 5:50 am     Reply with quote

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

View user's profile Send private message

PostPosted: Fri Nov 21, 2008 8:59 am     Reply with quote

Your variables are added to the access bank - "theirs" stay there.

Yes, CCS could make this easier . . .

Ken
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
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