From: Xiaofan C. <xia...@gm...> - 2007-12-25 11:51:22
|
On Dec 22, 2007 6:54 AM, Phil Anast <ph...@li...> wrote: > > I'm tryin got use sdcc for the pic18. > > I am having problems getting the SFRs assembled and linked. > > The mplink.exe gives me cannot put section "xxx" in absolute address. > > Is there a .lkr file specifically designed for SDCC use? > Is there a specific version of mplink.exe I should be using? > > The pic18fxxxx.lib file is also not COFF format that mplink likes. > I took the pic18fxxxx.c compiled it, mpasm'd it then mplink'd it > and ran into the problem above. I'm trying to rewrite the .lkr file > to get arround this problem. > > Anything you see I am doing wrong? should this be working out of the box? > You've dont it wrong. SDCC does not use mpasm and mplink but rather gpasm and gplink (from gputils). gputils: http://gputils.sourceforge.net/ Examples (ignore the outdated installation instruction and it is only for Linux): http://eis.comp.lancs.ac.uk/~martyn/sdcc_linux/ Xiaofan |