Author Topic: GCC 4.2 vs CW 6.3  (Read 9858 times)

Offline akorud

  • Newbie
  • *
  • Posts: 31
    • View Profile
GCC 4.2 vs CW 6.3
« 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
« Last Edit: October 06, 2008, 04:36:56 PM by akorud »

MarcV

  • Guest
Re: GCC 4.2 vs CW 6.3
« Reply #1 on: October 06, 2008, 04:11:38 PM »
Also try CW7.1. This produces much more compact code than 7.0 does!

Offline akorud

  • Newbie
  • *
  • Posts: 31
    • View Profile
Re: GCC 4.2 vs CW 6.3
« Reply #2 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

Offline mark

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 3236
    • View Profile
    • uTasker
Re: GCC 4.2 vs CW 6.3
« Reply #3 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

Offline akorud

  • Newbie
  • *
  • Posts: 31
    • View Profile
Re: GCC 4.2 vs CW 6.3
« Reply #4 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.