Re: [arm-gnu] Huge Code Size CodeSourcery G++ Lite
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [arm-gnu] Huge Code Size CodeSourcery G++ Lite
- To: arm-gnu@xxxxxxxxxxxxxxxx
- Subject: Re: [arm-gnu] Huge Code Size CodeSourcery G++ Lite
- From: 42Bastian <list-bastian.schick@xxxxxxxxxxx>
- Date: Fri, 01 Jul 2011 06:39:41 +0200
Hi
> Recently, I tried building a project on Cortex-M3 using the CodeSourcery G++ Lite. However, the size of the binary becomes huge.
>
> As a comparison to a commercial toolchain, here is the difference of the .bin for a simple "blink" application:
>
> Commercial IDE: 4.6KB
> Eclipse IDE with CodeSourcery G++ Lite: 14.3KB
>
> Any ideas? Is this normal, or are we making some stupid mistakes?
Commercial tool chains often do automatically what LD needs to be told:
Remove unused sections.
Try linking with --gc-sections
Also: Do not compare simple applications, it makes not much sense.
--
42Bastian
+
| http://www.sciopta.com
| Fastest direct message passing kernel.
| IEC61508 certified.
+