|
|
View previous topic :: View next topic |
Author |
Message |
chrisw957 Guest
|
#ORG default |
Posted: Wed Nov 01, 2006 2:55 am |
|
|
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
|
|
Posted: Wed Nov 01, 2006 6:28 am |
|
|
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? |
Posted: Wed Nov 01, 2006 12:46 pm |
|
|
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 {} |
|
|
|
|
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
|