From: J.J.van der Sande <vdsande@pu...> - 2000-04-05 21:35:30
I'm using SDCC in a DOS-box under Windows 98. I have discovered that
Windows truncates the command-line to 128 characters. It took me many hours
to figure out why the command below did produce many errors during linkage:
sdcc --model-large --code-loc 0x4000 --xram-loc 0x0000 tmp/main.rel
tmp/serialio.rel tmp/sys_time.rel tmp/ign.rel libsdcc.lib -L /sdcc/sdcc51lib
This was because "-L /sdcc/sdcc51lib" is exactly at 128 characters and thus
I didn't receive a syntax error from SDCC. Putting the same line in a
batch-file didn't help either.
Can I reconfigure Windows 98 to accept longer command-lines? An obvious
solution would be to rename my files and directory names, this is however
only a delay-of-execution as I will certainly run out of room as the
project evolves. Is there some work-around, for example by linking in more
than one step?
An other (unrelated) question: I like to use three directories: /bin /tmp
and /src. My current batch-file simply copies all .asm .res .lst and .sym
files from the /src to the /tmp directory after compilation and then
deletes them from the /src directory. Not a nice solution... Most compilers
accept an -o option to specify where to put the output files (normally in
my /tmp directory), however I didn't find such an option while reading the
manual. Is this option lacking or does it have another name?
Joris van der Sande