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


Previous by date: 27 Jan 2011 21:17:24 -0000 LKR script for PIC16F72 - how does it work ?, Vaclav Peroutka
Next by date: 27 Jan 2011 21:17:24 -0000 Re: PIC18 K22 series chips, Jerry Zdenek
Previous in thread: 27 Jan 2011 21:17:24 -0000 LKR script for PIC16F72 - how does it work ?, Vaclav Peroutka
Next in thread:

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

Previous by date: 27 Jan 2011 21:17:24 -0000 LKR script for PIC16F72 - how does it work ?, Vaclav Peroutka
Next by date: 27 Jan 2011 21:17:24 -0000 Re: PIC18 K22 series chips, Jerry Zdenek
Previous in thread: 27 Jan 2011 21:17:24 -0000 LKR script for PIC16F72 - how does it work ?, Vaclav Peroutka
Next in thread:


Powered by ezmlm-browse 0.20.