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 CCS Technical Support

Compiler problem

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







Compiler problem
PostPosted: Fri Aug 18, 2006 5:57 am     Reply with quote

Hi,
I've got some trouble with the compiler.
When I compile the program, everything seems to be correct but the program occupancy still ramain 1%, even if there is a lot of code.
Examining the .stm file, it seems that the assembler code is not generated.
What can I do?
Thank you
Mark



Joined: 07 Sep 2003
Posts: 2838
Location: Atlanta, GA

View user's profile Send private message Send e-mail

PostPosted: Fri Aug 18, 2006 6:25 am     Reply with quote

Do you have more than one source file?
Do you have any #if's?
Mancio
Guest







PostPosted: Fri Aug 18, 2006 7:00 am     Reply with quote

Yes I've got some files.
I've just find an error in the definition of .h file.
I've wrote #device *=16 instead of *=8 and now something work with the RAM occupancy.
But with ROM nothing to do. Still at 1%.
I'm working with PIC18F4620 and it's my first time with pic18 family.
Previously I've worked without any problem with PIC16F876.
I compile but ROM wont grow up!!
Mark



Joined: 07 Sep 2003
Posts: 2838
Location: Atlanta, GA

View user's profile Send private message Send e-mail

PostPosted: Fri Aug 18, 2006 10:58 am     Reply with quote

#device *=16 and *=8 aren't necessary for the PIC18's. My guess is that you are not including the other source files in you main C file.
Humberto



Joined: 08 Sep 2003
Posts: 1215
Location: Buenos Aires, La Reina del Plata

View user's profile Send private message

PostPosted: Fri Aug 18, 2006 12:59 pm     Reply with quote

It would be easy to help if you post a short sample of your code. It doesn´t
matter the code you can add, the compiler would not generate any code related
to the "code increase" if inside main() the functions are not invoked.
Anyway the 18F4620 is a 64K device and to see 1% step growing you would
add 8x in the code size compared with the 16F876.


Humberto
Mancio
Guest







PostPosted: Sat Aug 19, 2006 2:03 pm     Reply with quote

Thank you everybody.
With yours helpful directives now I've seen that everything works!!
Once again thank you.
For the ROM problem... I havent put any instruction in the main().
Just adding some functions and the ROM occupancy grow up
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