From: Hari Narayanan <hnaraya@ho...> - 2001-03-07 17:56:22
I just downloaded SDCC 2.2.1 onto a x86 Linux box and installed it. No
errors reported in the make file outputs. Then I tried compiling a Hello
World Program and
I got the following error
?ASlink-Warning-Undefined Global '_putchar' referenced by module
I see that there is no putchar.s for MCS51. But there is a putchar.s
under the x80
directory. Has anyone faced this probem ?. Am I doing something very
Brain Dead ?.
Thanks in advance
Get your FREE download of MSN Explorer at http://explorer.msn.com
From: Bela Torok <bela.torok@ks...> - 2001-03-08 07:08:33
> I just downloaded SDCC 2.2.1 onto a x86 Linux box and installed it. No
> errors reported in the make file outputs. Then I tried
> compiling a Hello
> World Program and
> I got the following error
> ?ASlink-Warning-Undefined Global '_putchar' referenced by module
Putchar is intentionally not part of the library.
The reason is very simple; there is no "stdout" and "stdin" for the 8051.
Depednig of your hardware, you have to define the putchar().
e.g., #define putcar(c) ser_putch(c) // see ser_ir.c file
After defining these, you can use printf without modification to output
characters to SIO1, SIO2, LCD-display, etc.
Get latest updates about Open Source Projects, Conferences and News.