dennis wrote:
> Hi,
>
> I am a newbie to this list and the SDCC compiler. I'm using Silicon Labs
> IDE.
>
> I am converting a Keil C51 project which has been generating functional code
> to instead use the SDCC compiler and SDLD linker. [I don't have the Keil
> compiler.]
>
> This is for an Silicon Labs C8051F580 device.
> I'm using:
> SDCC: mcs51/gbz80/z80/ds390/pic16/pic14/TININative/ds400/hc08 3.0.0 #6037
> (Oct 31 2010) (MINGW32)
>
> I have been able to get all 15 source modules and their include files to
> compile
> and generate .rel files, but I don't seem to have the right secret sauce for
> the linker.
>
> The old Keil linker switches were: "RS(256) PL(68) PW(78) IX XD(0-1FFFF)"
> Where:
> RS ---> RamSize = 256 bytes
> PL ---> Map PageLength = 68
> PW ---> Map PageWidth = 78
> IX ---> Enables Cross-reference details in listing files.
> XD ---> External Ram = 0 to 0x1FFF
>
> Can any tell me what the equivalent sdld linker switches might be?
>
> I have not been able to locate much in the way of documentation for this
> linker... any pointers to sdld linker docs?
i'm no expert on the sdcc toolchain, but in our case, we don't invoke
sdld directly. we simply invoke sdcc as the linker. the man page and
usage message for sdcc both include linker options.
we don't use all the keil options you do, so it might not be helpful,
but the two Makefile.{sdcc,keil} makefiles here build the same body of
code with the respective toolchains:
http://dev.laptop.org/git/users/rsmith/ec-1.75/tree/
paul
=---------------------
paul fox, [email protected]
------------------------------------------------------------------------------
Free Software Download: Index, Search & Analyze Logs and other IT data in
Real-Time with Splunk. Collect, index and harness all the fast moving IT data
generated by your applications, servers and devices whether physical, virtual
or in the cloud. Deliver compliance at lower cost and gain new business
insights. http://p.sf.net/sfu/splunk-dev2dev
_______________________________________________
Sdcc-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sdcc-user