Borut,

On a WXP machine, I've patched sdld.c to printf path and progname, compiled 
with gcc under cygwin, and run it on the W98 (the two machines are physically 
remote and this cycle takes me a whole day :-( ).

The result is:

C:\WEK\51\sbc\sdcc\snake>sdcc test.c -o test.ihx -V --verbose
sdcc: Calling preprocessor...
+ C:\PROGRA~1\SDCC\BIN\SDCPP.EXE -nostdinc -Wall -obj-ext=.rel -DSDCC_MODEL_SMAL
L -DSDCC_FLOAT_REENT -DSDCC=297 -DSDCC_REVISION=5677 -DSDCC_mcs51 -D__mcs51 -isy
stem "C:\PROGRA~1\SDCC\BIN\..\include\mcs51" -isystem "C:\PROGRA~1\SDCC\BIN\..\i
nclude"  "test.c"
sdcc: Generating code...
sdcc: Calling assembler...
+ C:\PROGRA~1\SDCC\BIN\SDAS8051.EXE -plosgffwz "test.rel" "test.asm"

sdcc: Calling linker...
sdcc: Calling linker...
+ SDLD.EXE -nf "test.lnk"
path:>C:\WEK\51\SBC\SDCC\SNAKE\SDLD.EXE< progname:>SDLD<
Unkown option -y ignored
Unkown option -Y ignored
?ASlink-Warning-Couldn't find library 'libxa51'

?ASlink-Warning-Paged Area PSEG Boundary Error

?ASlink-Warning-Undefined Global '__mcs51_genRAMCLEAR' referenced by module 'tes
t'

?ASlink-Warning-Undefined Global '__mcs51_genXINIT' referenced by module 'test'

?ASlink-Warning-Undefined Global '__mcs51_genXRAMCLEAR' referenced by module 'te
st'

?ASlink-Warning-Undefined Global '__sdcc_gsinit_startup' referenced by module 't
est'

C:\WEK\51\sbc\sdcc\snake>


So, the reason for the -y  -Y options ignored is the uppercase pathname of 
SDLD, which leads to failed compare strncmp(progname, "sdld", 4) in sdld_init().

I'd recommend to perform a simple tolower() on progname before performing the 
name detection.
I'd also recommend to add diagnostic prints in case of undetected sdld name.
I'd also recommend to do the same with sdas.

Jan


----- Original Message ---------------
>Maarten,
>
>I tried to install Win98 in a VirtualBox on Linux, but I had a lot of 
>troubles, so I gave up. (It worked well in VMware on WinXP. Maybe I 
>should install VMware on Linux...).
>Can you please try to find out what is going wrong so that the following 
>errors are shown?
>
>Unkown option -y ignored
>Unkown option -Y ignored
>
>?ASlink-Warning-Paged Area PSEG Boundary Error
>
>?ASlink-Warning-Undefined Global 'l_IRAM' referenced by module ''
>
>Thanks,
>Borut
>
>
>

------------------------------------------------------------------------------
The Planet: dedicated and managed hosting, cloud storage, colocation
Stay online with enterprise data centers and the best network in the business
Choose flexible plans and management services without long-term contracts
Personal 24x7 support from experience hosting pros just a phone call away.
http://p.sf.net/sfu/theplanet-com
_______________________________________________
Sdcc-user mailing list
Sdcc-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sdcc-user

Reply via email to