From: karthik bala guru <sdcckarthik@ya...> - 2003-01-24 12:47:04
Just solve this .....
# include <stdio.h>
# include <8051.h>
unsigned char ad='c';
Compile it by -
sdcc -L d:/sdcc09/sdcc/share/sdcc/lib/large -I
d:/sdcc09/sdcc/share/sdcc/include --xram-loc 0x5000
--code-loc 0x2000 prntk.c -dumpall --stack-after-data
I get " parse error ) column 39 "
I didnt use xstack as i get many errors ...
where is the problem ?
karthik bala guru
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
From: Johan Knol <johan.knol@id...> - 2003-01-24 13:42:35
> void main(void)
> unsigned char ad='c';
> printf_small("%c",(char_generic *)ad);
A RTFM isn't appropriate here because the FM still mentions the obsolete
So: if you don't specify a storage class like in (char xdata *), every
pointer is generic.
But RTF-K&R is appropriate, because you are passing a pointer instead of a
char to printf_small as the second argument.
And now please hush, or I will put you on my blacklist for causing too much
From: Bernhard Held <B<ernhard@be...> - 2003-01-24 14:13:38
> > printf_small("%c",(char_generic *)ad);
A space between "char" and "_generic" would be great idea. It's more than
nerve-racking, that you're annoying us with silly things like this.
You should use your time to concentrate upon your source instead of writing
dozens of brainless emails.
From: Bodo Wenzel <bodowenzel@we...> - 2003-01-28 20:51:09
> You should use your time to concentrate upon your source instead of writing
> dozens of brainless emails.
Thank you, Bernard and Johan, for these statements. As Johan, I was just
> I will put you on my blacklist for causing too much noise.
Now let's get back to real problems.