View previous topic :: View next topic |
Author |
Message |
kuriken
Joined: 21 Oct 2006 Posts: 19
|
Very long compile time PCWH v3.245 Compiler |
Posted: Mon Nov 06, 2006 2:51 pm |
|
|
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
|
|
Posted: Mon Nov 06, 2006 2:59 pm |
|
|
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
|
|
Posted: Mon Nov 06, 2006 3:26 pm |
|
|
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
|
More Info |
Posted: Mon Nov 06, 2006 3:56 pm |
|
|
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
|
Problem solved |
Posted: Mon Nov 06, 2006 4:07 pm |
|
|
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!!! |
|
|
|