[Top][All Lists]

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

Re: [avr-gcc-list] Howto put constants on fixed address

From: zizka
Subject: Re: [avr-gcc-list] Howto put constants on fixed address
Date: Thu, 20 Dec 2007 16:09:26 +0100

Thanks for the links, but that is not exactly what I am looking for. Using this 
document I was able to create output like this:

0x0000-0x008F .vectors
0x0090-0x03FF gap
0x0400-0x041F my section
0x0420-       rest of the .text section

The gap is empty - it's waste of the flash space. I have not found if it is 
possible to put my section to any address and let linker to "flow the .text 
section round it", it seems to me that it is not possible, but I don't know why 
- the linker should be able to do this, it's not a difficult task...
> Od: address@hidden
> Komu: Martin ŽiŞka <address@hidden>
> CC: avr-gcc List <address@hidden>
> Datum: 20.12.2007 01:12
> Předmět: Re: [avr-gcc-list] Howto put constants on fixed address
>On Dec 19, 2007, at 5:03 PM, Martin Žižka wrote:
>> Yes, that will place the .length segment between .vectors > and
.progmem. But
>> you are unable to place it to some exact address. That will place it >
>> address that is offset_of(.vectors)+length_of(.vectors). That can be
>> different for some cpus.
>I think this URL describes the syntax to do what Martin is looking to 
>More hints here, in that one can edit the . address:
>David Kelly N4HHE, address@hidden
>Whom computers would destroy, they must first drive mad.

reply via email to

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