gnupic: Thread: LKR script for PIC16F72 - how does it work ?


[<<] [<] Page 1 of 1 [>] [>>]
Subject: LKR script for PIC16F72 - how does it work ?
From: Vaclav ####@####.####
Date: 27 Jan 2011 21:07:47 -0000
Message-Id: <253702.10668.20159-30737-1943893001-1296162463@seznam.cz>

Hello all,

I use 16F72 with the default script from gputils. During linking I am getting the message below. Then, in the MAP file I can see that there is hole in the data memory. First 32 bytes are skipped. In the LKR file regions are split into DATABANK and SHAREBANK. But, my question is, is it possible to store something into gpr0/gpr1 as well ? If I understand correctly, SHAREBANK usage is better because variables are accessible in all banks.

Thank you,
Vaclav

> gplink.exe -I"d:\v\sw\sdcc\lib\pic" -m -w -r -o main main.o pic16f72.lib
message: using default linker script "d:\opt\gputils\lkr\16f72.lkr"
warning: relocation of section "UDL_main_0" failed, relocating to a shared memory location
Subject: Re: LKR script for PIC16F72 - how does it work ?
From: John Pritchard ####@####.####
Date: 27 Jan 2011 21:17:24 -0000
Message-Id: <AANLkTimtJ5VHkW2Fpd6m-Y5bRSxrOxp+EBj8aYic1vKH@mail.gmail.com>

Hi,

Sharebanks are segments in Bank0 that are mapped into the other banks.  This
area is good for saving registers from interrupts, and the like.

The databanks are the usual general purpose data space.

John


On Thu, Jan 27, 2011 at 4:07 PM, Vaclav Peroutka ####@####.#### wrote:

> Hello all,
>
> I use 16F72 with the default script from gputils. During linking I am
> getting the message below. Then, in the MAP file I can see that there is
> hole in the data memory. First 32 bytes are skipped. In the LKR file regions
> are split into DATABANK and SHAREBANK. But, my question is, is it possible
> to store something into gpr0/gpr1 as well ? If I understand correctly,
> SHAREBANK usage is better because variables are accessible in all banks.
>
> Thank you,
> Vaclav
>
> > gplink.exe -I"d:\v\sw\sdcc\lib\pic" -m -w -r -o main main.o pic16f72.lib
> message: using default linker script "d:\opt\gputils\lkr\16f72.lkr"
> warning: relocation of section "UDL_main_0" failed, relocating to a shared
> memory location
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: ####@####.####
> For additional commands, e-mail: ####@####.####
>
>


-- 
http://www.google.com/profiles/john.douglas.pritchard
[<<] [<] Page 1 of 1 [>] [>>]


Powered by ezmlm-browse 0.20.