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

Very long compile time PCWH v3.245 Compiler

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



Joined: 21 Oct 2006
Posts: 19

View user's profile Send private message

Very long compile time PCWH v3.245 Compiler
PostPosted: Mon Nov 06, 2006 2:51 pm     Reply with quote

Hello,

I've been working with PCWH compiler for the last 6 months and it has worked well up to now.

I'm experienceing a problem where the compiler takes a abnormally long time, up to 5 min, to compile my code. The compiler does not send any errors out and the *.hex code works when I load it into my hardware.

One thing I noticed is that my *.tre file is gigantic, 363289 KB, even though my *.hex file is a modest, 96KB. Does anybody know what the *.tre file function is? Has anybody experienced similiar compiling issues, and know a work around? Thanks.
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Mon Nov 06, 2006 2:59 pm     Reply with quote

Quote:

One thing I noticed is that my *.tre file is gigantic, 363289 KB, even
though my *.hex file is a modest, 96KB. Does anybody know what the
*.tre file function is?

It's the "call tree" file and it's completely optional. If you have MPLAB,
go to the Project/ Build Options menu and disable it. (There's a check-box for it).

Just out of curiosity, what PIC are you using ? Also, what is the ROM
and RAM usage and the number of stack levels as reported at the top
of the .LST file ?
kuriken



Joined: 21 Oct 2006
Posts: 19

View user's profile Send private message

PostPosted: Mon Nov 06, 2006 3:26 pm     Reply with quote

Quote:

Just out of curiosity, what PIC are you using ? Also, what is the ROM
and RAM usage and the number of stack levels as reported at the top
of the .LST file ?


I'm using a PIC18LF4620 and the ROM usage is 53%, RAM usage is 19%.

I cannot tell you what my stack level is since I do not get a *.lst file after compiling probably because I have PCWH compiler and not MPLAB.

I'll try and find a way to disable the build of the *.tre file and see if I can view my stack level in PCWH.

Thanks for the advice.
kuriken



Joined: 21 Oct 2006
Posts: 19

View user's profile Send private message

More Info
PostPosted: Mon Nov 06, 2006 3:56 pm     Reply with quote

My mistake on the earlier statement, I found the *.lst file. It lists the following:

ROM used: 34424 bytes (53%)
Largest free fragment is 31108

RAM used: 744 (19%) at main() level
910 (23%) worst case

Stack: 20 worst case (15 in main + 5 for interrupts)
kuriken



Joined: 21 Oct 2006
Posts: 19

View user's profile Send private message

Problem solved
PostPosted: Mon Nov 06, 2006 4:07 pm     Reply with quote

Thanks PCM Programmer,

For PCWH compiler, under Options/File Formats there is an option to build the *.tre and *.sta files. I disabled the options and now the compiler does not hang up on the *.tre file.

Now I can go enjoy a cup of chai and go on with my project, thanks!!!
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