avr-libc-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [avr-libc-dev] long long bloats binary


From: Joerg Wunsch
Subject: Re: [avr-libc-dev] long long bloats binary
Date: Fri, 9 Nov 2012 09:42:36 +0100
User-agent: Mutt/1.5.20 (2009-06-14)

As Bernhard Kuemel wrote:

> With 'uint32_t total=0;' binary file size is 314 bytes.
> With 'unsigned long long total;' or 'uint64_t total;' binary file size
> is 7974 bytes :(.

This is nothing to be discussed on avr-libc-dev, as it's simply
a matter of the compiler.  So better use avr-gcc-list instead.

However, make sure you're using a recent compiler version!  GCC 4.7.2
produces:

$ avr-size foo.elf
   text    data     bss     dec     hex filename
    586       0       0     586     24a foo.elf

vs:

$ avr-size foo.elf
   text    data     bss     dec     hex filename
    368       0       0     368     170 foo.elf

(the latter is the 32-bit version)
-- 
cheers, J"org               .-.-.   --... ...--   -.. .  DL8DTL

http://www.sax.de/~joerg/                        NIC: JW11-RIPE
Never trust an operating system you don't have sources for. ;-)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]