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

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

[avr-libc-dev] Re: [bug #21410] Incorrect use of 16-bit eeprom addresses


From: Wouter van Gulik
Subject: [avr-libc-dev] Re: [bug #21410] Incorrect use of 16-bit eeprom addresses in devices with 8-Bit address registers
Date: Wed, 24 Oct 2007 14:15:18 +0200
User-agent: Thunderbird 2.0.0.6 (Windows/20070728)

Joerg Wunsch schreef:
Follow-up Comment #2, bug #21410 (project avr-libc):

If we skip this then we might be ok, if the eeprom.S
file is build per device not per architecture.

Unfortunately, it actually *is* per architecture, not per
device.  That's the reason why it is compiled into two
different object files (for two different EEPROM base
addresses).

Ah I see. The "magic" is in the linking...

The only way I'm seeing is to compile it into four different
object files (base address vs. 8- or 16-bit addressing), and
extend the macro wrapper logic in <avr/eeprom.h>.


Yes that would be the least-effort-option.

What is the main reason not to build a per-device lib, apart from the time to do such a thing? I quickly scanned the mailing archives but I could only find the build time as a reason. Is this still valid?

Wouter




reply via email to

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