Re: LKR script for PIC16F72 - how does it work ?

John Pritchard <[email protected]> Thu, 27 Jan 2011 16:17:00 -0500
Newsgroups gmane.comp.hardware.microcontrollers.gnupic
Message-ID <[email protected]>
--90e6ba6e8380a3be2f049ada7994
Content-Type: text/plain; charset=ISO-8859-1

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 <[email protected]> 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: [email protected]
> For additional commands, e-mail: [email protected]
>
>


-- 
http://www.google.com/profiles/john.douglas.pritchard

--90e6ba6e8380a3be2f049ada7994--