Hi Andrew, thank's for the feedback, I wonder if you could give me any example command lines or other tips on how to make the code link to a given address?. I have studied the manual and tried various things with out success. I have also studied the .map file and the default linker options to try and figure out how the code is pushed to the top of the map. (I think -pfloat_text0=CODE,...... has something to do with it?) I have tried linking manually using the command line: picl -Pcode=06,text0,text1,text2,text3,text4 -16f84 filename.obj the linker accepted this but still put the program code at the end of code memory. I have also tried tweeking the linker settings from the make menu but all to no avail. -------John On Mon, 6 Nov 2000, Andrew Kunz wrote: > John, > You need to use the linker to do this. It isn't hard. > You can force any chunk of code anywhere into memory provided you compile each > module separately. > You need to change the PSECT for each module that you want loaded differently, > then you tell the linker where it is permissible to load that module. > It isn't hard, I've done it a number of times myself. I, too, wish it were > easier, though > Andy >------------------------------------------------- > > Hiya All!, do you use Hi-Tech C?, have you noticed that the code is put at > the top of program memory by default?. I am trying to find a way to force > it to put the code at low code addresses. A pragma statement (or other > 'trick') in the C source code would be preferable to a complex linker > option (so that I can do everything from the IDE). > I have looked at the manual but I can't figure out how to do it > any help would be appreciated :-) ----John -- http://www.piclist.com hint: To leave the PICList mailto:piclist-unsubscribe-request@mitvma.mit.edu