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

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

Re: [avr-gcc-list] Re: New Compiler Questions


From: J Wunsch
Subject: Re: [avr-gcc-list] Re: New Compiler Questions
Date: Wed, 14 Feb 2001 10:55:52 +0100 (MET)

Cristian Burneci <address@hidden> wrote:

> I suspect some libraries had become bigger since the previous releases.
> I'll further investigate.

I think the library organization is not yet optimal.  I don't quite
remember what it was, i think it were the EEPROM routines where i
noticed it recently.  Since too many functions are contained within a
single source code file (and thus a single object file), and the
linker can only load entire object files into the resulting binary,
referencing a single function might bloat the generated code with
functions that aren't actually used.

The solution would be to break down the library source into more
source code modules, so each module only contains a single function.

(When building a libc for an operating system that supports shared
libs and on-demand paging, that's not so much of a problem like here
for an MCU which has to link everything statically and is scarce on
ROM.)

-- 
J"org Wunsch                                           Unix support engineer
address@hidden         http://www.interface-systems.de/~j



reply via email to

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