View previous topic :: View next topic |
Author |
Message |
Einly Guest
|
Out of ROM |
Posted: Thu Jun 19, 2003 4:06 am |
|
|
I am using PIC 16f876 and when I compile my program, it is written that "Out of ROM, A segment or the program is too large". Does anyone have any suggestion of what should I do?
Thanks
Einly
___________________________
This message was ported from CCS's old forum
Original Post ID: 144515379 |
|
|
Sherpa Doug Guest
|
RTFM |
Posted: Thu Jun 19, 2003 6:56 am |
|
|
:=I am using PIC 16f876 and when I compile my program, it is written that "Out of ROM, A segment or the program is too large". Does anyone have any suggestion of what should I do?
:=
:=
:=Thanks
:=
:=Einly
First read the manual section in "Common Questions and Answers." Also look at the #separate and #inline directives. Then if you still have questions you should find lots of info in the old posts on this board.
___________________________
This message was ported from CCS's old forum
Original Post ID: 144515386 |
|
|
Dave Yeatman Guest
|
Search on "Out of ROM" for 300 days back, you'll f |
Posted: Thu Jun 19, 2003 7:15 am |
|
|
___________________________
This message was ported from CCS's old forum
Original Post ID: 144515389 |
|
|
Shawn Cherewick
Joined: 07 Sep 2003 Posts: 5 Location: Abbotsford, BC, Canada
|
Re: Out of ROM |
Posted: Thu Jun 19, 2003 10:37 am |
|
|
Einly,
Perhaps you could try to have the compiler optimize the code.
Place this directive at the beginning of your file:
#OPT 9
Do not put anything else on the same line... well, my compiler freaks out if I do... I'm using PCM 3.148 at the moment.
Let me know if that works for you.
Regards,
Shawn Cherewick.
:=I am using PIC 16f876 and when I compile my program, it is written that "Out of ROM, A segment or the program is too large". Does anyone have any suggestion of what should I do?
:=
:=
:=Thanks
:=
:=Einly
___________________________
This message was ported from CCS's old forum
Original Post ID: 144515398 |
|
|
|