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

#ORG default

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







#ORG default
PostPosted: Wed Nov 01, 2006 2:55 am     Reply with quote

How can I get:

Code:
#include <18F4620.h>
#build(reset=0x0000,interrupt=0x0100)
#org 0x2000,0xFFFF default


To utilize the same amount of program memory as:
Code:
#include <18F4620.h>
#build(reset=0x0000,interrupt=0x0100)
#org default


It seems that library routines that I'm not using are being included...
This is version 3.212 of the compiler...
Ttelmah
Guest







PostPosted: Wed Nov 01, 2006 6:28 am     Reply with quote

Without seeing an example of the actual code involved, it is hard to answer. However the clock declarations (wherever this is), and the RS232 declaration, will themselves be relocated to the 'default' memory page, if they occur after this statement. Also the declarations of any constant variables, will also be relocated by this. Relocation, may cause some things to be fractionally larger, if it reduces the ability of the compiler to optimise routine placement, and results in more bank switching.

Best Wishes
chrisw957
Guest







So whats the best way?
PostPosted: Wed Nov 01, 2006 12:46 pm     Reply with quote

So whats the best way to slide the code up in memory and still let the compiler do it's best optimization? Maybe just reserve a blank area with something like this?

#ORG 0x0200,0x2000 {}
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