Brendan wrote... >Are there any good tutorials on writing relocatable code around? I >had a look on www.piclist.com, but didn't find any. I won't claim that this rises to the level of a "tutorial", but I've put up a small linker project at http://mywebpages.comcast.net/dilatush/lnkrdemo.zip which at least touches on some of the rudiments of doing relocatable code in MPLAB. (It's actually a project I fiddled with while I was starting to learn MPLINK- a task still very much in progress- with a lot of comments added for clarity.) To use it, create a project directory and unzip lnkrdemo.zip into it; then edit the lnkrdemo.pjt file with a text editor to correct the pathnames in the [windows] and [mru-list] fields so they reflect the right paths on your machine; then open the project in MPLAB and MAKE it. It's a very brain-dead program, but it goes through the mechanics of declaring RAM and ROM sections and assigning variables/code to them as well as making inter-module calls. I'm just beginning to learn to use the linker, and the biggest advantage I can see at this point is that it'll allow me to escape the "namespace clutter" I always seem to get with absolute code, where every gosh-darn symbol is global in scope. Sweet! Hope this helps a bit... Dave D. -- http://www.piclist.com hint: PICList Posts must start with ONE topic: [PIC]:,[SX]:,[AVR]: ->uP ONLY! [EE]:,[OT]: ->Other [BUY]:,[AD]: ->Ads