|
From: Robert P. <rp...@on...> - 2000-07-15 10:04:54
|
Hallo,
I had the following problem using sdcc:
aslink didn't terminate. Every thing else (sdcc,as8085 worked fine, but
aslink)
-----
$ sdcc test.c
library file /usr/local/share/lib/small/libsdcc.lib
library file /usr/local/share/lib/small/libint.lib
library file /usr/local/share/lib/small/liblong.lib
library file /usr/local/share/lib/small/libfloat.lib
[ nothing happens, I need press ^c to get back ]
-----
Configuration:
SDCC 2.2.0a
CygWin32 (ver?, downloaded latest @ 14.7.2000)
Win2000
My q&d sollution:
It seams, that in the file ...\src\sdcc\as\mcs51\lklex.c (line 505...513)
the more() function doesn't recognize the EOF condition. I insertet some
printf's there, and finde out, that (in my case) at the EOF getnb() returns
13 (CR-char). (I suppose it is the last really read char)
The orginal func:
int
more()
{
[...]
return( (c == '\0' || c == ';') ? 0 : 1 );
}
I added a test for "13" to get it to work
I know it isn't the best way (bacause not every file has to end with CR),
but I just wantedt to test SDCC...it's great :-))))
MfG,
Robert Pyka
--------------------------------------------------------------------
|