Reply by David Simpson April 21, 20052005-04-21
Hi Alex,

Check your virus scanner isn't checking all the files. When I used Norton
AV it would check all the files each time they were loaded, and this
resulted in slow compiles (as the compiler etc is loaded for each file)
When I disabled Norton for the CW directories it considerably speed up
compilation.

Cheers
David

At 05:33 AM 20-04-05, you wrote: >Hi there:
>
>I am running CodeWarrior for HCS12 IDE ver 5.5, with Processor Expert
>2.95 on a Pentium 4 1.6GHz, 256Mb RAM on Windows 2000 SP4. The
>compiler options are the basic ones generated by the Wizard:
>-BfaGapLimitBits4294967295 -D_HCS12 -D__NO_FLOAT__ -Mb
>
>Only CodeWarrior IDE is running in foreground.
>
>A simple PE project with a couple of beans and little code takes less
>that 30 seconds to compile. But when I load the full project with ~60
>beans (ATD, SPI, Discrete I/O) and several hundred of lines of code,
>the compiler takes more that 5 minutes to run a complete compilation
>of everything. I understand that not all the time you compile
>everything, but if there is a change on the project configuration, or
>in Processor Expert, you have to compile all again, and this can be
>frustrating sometimes.
>
>My questions are:
>1. Are the long compilation times normal for CodeWarrior?
>
>2. Have other users of CodeWarrior/PE experimented this slow
>compilation times, with medium to big size projects?
>
>3. Is there any way to improve the compilation times of CodeWarrior?
>
>4. Would a command line compilation (not through the IDE) run faster?
>
>Thank you for your help!
>
>Alex >
>Yahoo! Groups Links >
>




Reply by Erich Styger April 20, 20052005-04-20
In addition to what has been said:
I could imagine that it could be due include files included more than
necessary?
I good thing is to try out the compiler option -Pio.

Erich

> -----Original Message-----
> From: 68HC12@68HC... [mailto:68HC12@68HC...]
> On Behalf Of MW Ron
> Sent: Dienstag, 19. April 2005 17:08
> To: 68HC12@68HC...
> Subject: Re: [68HC12] Compiling Speed Issue in CodeWarrior
> Importance: Low >
> Hi Alex,
>
> In addition to what George wrote, be sure you are building a debug
> version and not a release version with inlinging and optimizations
> taking place. These can take a lot of time especially if you have a
> large switch statement.
>
> Other tricks to speed up compiles, do not use recursive
> access paths so
> you are not searching sub paths that are not used. Put your most read
> path first in the access paths order, but mainly be sure you are not
> building an optimized version for development work.
>
> Ron >
> Alex Ribero wrote:
>
> Hi there:
>
> I am running CodeWarrior for HCS12 IDE ver 5.5, with Processor Expert
> 2.95 on a Pentium 4 1.6GHz, 256Mb RAM on Windows 2000 SP4. The
> compiler options are the basic ones generated by the Wizard:
> -BfaGapLimitBits4294967295 -D_HCS12 -D__NO_FLOAT__ -Mb
>
> Only CodeWarrior IDE is running in foreground.
>
> A simple PE project with a couple of beans and little code takes less
> that 30 seconds to compile. But when I load the full project with ~60
> beans (ATD, SPI, Discrete I/O) and several hundred of lines of code,
> the compiler takes more that 5 minutes to run a complete compilation
> of everything. I understand that not all the time you compile
> everything, but if there is a change on the project configuration, or
> in Processor Expert, you have to compile all again, and this can be
> frustrating sometimes.
>
> My questions are:
> 1. Are the long compilation times normal for CodeWarrior?
>
> 2. Have other users of CodeWarrior/PE experimented this slow
> compilation times, with medium to big size projects?
>
> 3. Is there any way to improve the compilation times of CodeWarrior?
>
> 4. Would a command line compilation (not through the IDE) run faster?
>
> Thank you for your help!
>
> Alex
>
> --
> Metrowerks Community Forum is a free online resource for developers to
> discuss CodeWarrior topics with other users and Metrowerks' staff
> -- http://www.metrowerks.com/community --
>
> Ron Liechty - MWRon@MWRo... - http://www.metrowerks.com >
>
> Yahoo! Groups Links




Reply by MW Ron April 19, 20052005-04-19
Hi Alex,

In addition to what George wrote, be sure you are building a debug
version and not a release version with inlinging and optimizations
taking place. These can take a lot of time especially if you have a
large switch statement.

Other tricks to speed up compiles, do not use recursive access paths so
you are not searching sub paths that are not used. Put your most read
path first in the access paths order, but mainly be sure you are not
building an optimized version for development work.

Ron
Alex Ribero wrote:

Hi there:

I am running CodeWarrior for HCS12 IDE ver 5.5, with Processor Expert
2.95 on a Pentium 4 1.6GHz, 256Mb RAM on Windows 2000 SP4. The
compiler options are the basic ones generated by the Wizard:
-BfaGapLimitBits4294967295 -D_HCS12 -D__NO_FLOAT__ -Mb

Only CodeWarrior IDE is running in foreground.

A simple PE project with a couple of beans and little code takes less
that 30 seconds to compile. But when I load the full project with ~60
beans (ATD, SPI, Discrete I/O) and several hundred of lines of code,
the compiler takes more that 5 minutes to run a complete compilation
of everything. I understand that not all the time you compile
everything, but if there is a change on the project configuration, or
in Processor Expert, you have to compile all again, and this can be
frustrating sometimes.

My questions are:
1. Are the long compilation times normal for CodeWarrior?

2. Have other users of CodeWarrior/PE experimented this slow
compilation times, with medium to big size projects?

3. Is there any way to improve the compilation times of CodeWarrior?

4. Would a command line compilation (not through the IDE) run faster?

Thank you for your help!

Alex

--
Metrowerks Community Forum is a free online resource for developers to
discuss CodeWarrior topics with other users and Metrowerks' staff
-- http://www.metrowerks.com/community --

Ron Liechty - MWRon@MWRo... - http://www.metrowerks.com


Reply by Molnar, George S April 19, 20052005-04-19
Alex,

Are you building this project outside of the Metrowerks folder? Try moving the whole project under the CodeWarrior CW12 folder. We added a "Users" folder there for building our projects. We experienced excessive compiling times building projects on the desktop when metrowerks was 4 or 5 directory layers below.

george

-----Original Message-----
From: 68HC12@68HC... [mailto:68HC12@68HC...]On Behalf Of
a_ribero
Sent: Tuesday, April 19, 2005 3:33 PM
To: 68HC12@68HC...
Subject: [68HC12] Compiling Speed Issue in CodeWarrior

Hi there:

I am running CodeWarrior for HCS12 IDE ver 5.5, with Processor Expert
2.95 on a Pentium 4 1.6GHz, 256Mb RAM on Windows 2000 SP4. The
compiler options are the basic ones generated by the Wizard:
-BfaGapLimitBits4294967295 -D_HCS12 -D__NO_FLOAT__ -Mb

Only CodeWarrior IDE is running in foreground.

A simple PE project with a couple of beans and little code takes less
that 30 seconds to compile. But when I load the full project with ~60
beans (ATD, SPI, Discrete I/O) and several hundred of lines of code,
the compiler takes more that 5 minutes to run a complete compilation
of everything. I understand that not all the time you compile
everything, but if there is a change on the project configuration, or
in Processor Expert, you have to compile all again, and this can be
frustrating sometimes.

My questions are:
1. Are the long compilation times normal for CodeWarrior?

2. Have other users of CodeWarrior/PE experimented this slow
compilation times, with medium to big size projects?

3. Is there any way to improve the compilation times of CodeWarrior?

4. Would a command line compilation (not through the IDE) run faster?

Thank you for your help!

Alex
Yahoo! Groups Links


Reply by a_ribero April 19, 20052005-04-19

Hi there:

I am running CodeWarrior for HCS12 IDE ver 5.5, with Processor Expert
2.95 on a Pentium 4 1.6GHz, 256Mb RAM on Windows 2000 SP4. The
compiler options are the basic ones generated by the Wizard:
-BfaGapLimitBits4294967295 -D_HCS12 -D__NO_FLOAT__ -Mb

Only CodeWarrior IDE is running in foreground.

A simple PE project with a couple of beans and little code takes less
that 30 seconds to compile. But when I load the full project with ~60
beans (ATD, SPI, Discrete I/O) and several hundred of lines of code,
the compiler takes more that 5 minutes to run a complete compilation
of everything. I understand that not all the time you compile
everything, but if there is a change on the project configuration, or
in Processor Expert, you have to compile all again, and this can be
frustrating sometimes.

My questions are:
1. Are the long compilation times normal for CodeWarrior?

2. Have other users of CodeWarrior/PE experimented this slow
compilation times, with medium to big size projects?

3. Is there any way to improve the compilation times of CodeWarrior?

4. Would a command line compilation (not through the IDE) run faster?

Thank you for your help!

Alex