µTasker Forum

µTasker Forum => NXPTM M522XX, KINETIS and i.MX RT => Topic started by: akorud on October 06, 2008, 04:09:33 PM

Title: GCC 4.2 vs CW 6.3
Post by: akorud on October 06, 2008, 04:09:33 PM
Hi,
do anybody have some experience in using GCC 4.2  vs CW 6.3 - I mean code size, compilation quality (CW 6.3 has some optimizer errors), etc? For example I've found that CW 7.0 produce larger code than 6.3.
I consider which one will be better for "release" firmware builds.
best regards,
--
Andriy
Title: Re: GCC 4.2 vs CW 6.3
Post by: MarcV on October 06, 2008, 04:11:38 PM
Also try CW7.1. This produces much more compact code than 7.0 does!
Title: Re: GCC 4.2 vs CW 6.3
Post by: akorud on October 08, 2008, 08:50:04 PM
If anybody is interested, for my application GCC 4.2 generates code 102k, CW6.3 - 108k, CW7.1 - 98k.

regards,
--
Andriy
Title: Re: GCC 4.2 vs CW 6.3
Post by: mark on October 08, 2008, 10:41:34 PM
Hi Andriy

Thanks - this is a good reference. It is interesting that CW is getting more efficient but GCC also produces good code.

Regards

Mark
Title: Re: GCC 4.2 vs CW 6.3
Post by: akorud on October 17, 2008, 12:42:35 PM
BTW, adding -fomit-frame-pointer gcc option reduces code size by ~1k (for my project) without visible side-effects.