A discussion group for the PICMicro microcontroller. Also called the Microchip PIC, this list is dedicated to the use and abuse of this fine, simple, microcontroller. Close to topic posts are welcome, ie. general electronics.
The help file is indeed full of good information about using the linker.
The MPLINK linker is no different than hundreds of linkers that have gone
before on dozens of operating systems. However, if you don't have that
history, the information in the help files can be a bit daunting.
Let me suggest before wading through the help files (and don't forget the
MPLINK Reference manual), you go over to
http://www.amqrp.org/elmer160/lessons/ and read Lesson 16. It happens to
focus on the PIC16F84, but all the 8 bit PICs are pretty much the same in
this regard. You might also want to have a quick peek at Appendix D.
Without having your code, it is pretty tough to identify what is missing.
It sounds like you have the bases covered, but apparently you are
overlooking something, and without seeing what you have it is only guessing
what that might be.
72/73 de WB8RCR http://www.qsl.net/wb8rcr
didileydadidah QRP-L #1446 Code Warriors #35
----- Original Message -----
From: "rtstofer"
To:
Sent: Wednesday, September 17, 2008 12:26 PM
Subject: [piclist] Re: mpasm linker - using .o files
> --- In p...@yahoogroups.com, "Jan Didden / Linear Audio"
> wrote:
>>
>> You can fix the subroutines with an ORG statement. But possibly
> there is a
>> better way.
>>
>> Jan Didden
>
> You absolutely don't want to do this (pun intended).
>
> Read through the documentation (RTFM) because it talks about how to
> link to object files and how to use UDATA. I'm not on my WinxP box at
> the moment so I can't point to the specific part of the help file but
> there is a LOT of information on separate assembly, relocation and
> linking.
>
> There is a method for declaring global variables so that other files
> will know their address AT LINK TIME. Similarly there is a scheme for
> declaring a variable to be external to the present file so the address
> doesn't have to be known AT ASSEMBLY TIME.
>
> This is all standard stuff for relocating assembler/linkers.
>
> Richard
>
> ------------------------------------
>
> to unsubscribe, go to http://www.yahoogroups.com and follow the
> instructions

(You need to be a member of piclist -- send a blank email to piclist-subscribe@yahoogroups.com )