avr-gcc-list
[Top][All Lists]
Advanced

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

Re: [avr-gcc-list] Instruction count


From: E. Weddington
Subject: Re: [avr-gcc-list] Instruction count
Date: Wed, 15 Jan 2003 14:28:26 -0700

On 15 Jan 2003 at 12:30, Anubhav wrote:

> Hi,
>        Thanks to folks on the mailing list, I was able
> to disassemble the program.
> 
> I had compiled the program for two platforms x86 using
> gcc and atmega128 using avrgcc. 
> Had expected the atmega128 to have the larger binary
> since its a 8 bit CPU and therefore should take more
> than four times as many instructions as on the 32 bit
> intel cpu but the avr executables are approximately 3
> times smaller than intel (infact the intel compiled
> version is dynamically linked as well which should
> further reduce the size.) Can somebody tell me what i
> am missing here ?
> 

My guess would be that the startup code is larger on the x86 build 
than on the AVR build. That and, would static library linking produce 
less code than dynamic library linking? I don't know how much 
overhead is involved in a dynamic link call ....

Eric
avr-gcc-list at http://avr1.org



reply via email to

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