I just updated from SDCC 1.2 to 2.6,
because of the unreliability in compilations, such as:
if() statements encompassing the rest of while() loops,
and vars needing to be redundantly typecast,
But now I am getting a compilation abort because of
a typecast from (long)or(unsigned long) to (unsigned char *).
How do I work around this ?
int s_printfint( char* buf , char* format , unsigned long num )
unsigned char * ptr;
ptr = (unsigned char *)num; // -typecast Error ?!
J:\_MICROS\8051\DS5000\_EXAMPLES\UART\MY_UART.C>call H:\Micros\8051\_SDCC260\sdcc\bin\sdcc.exe -L H:\Micros\8051\_SDCC\lib\large -I H:\Micros\8051\_SDCC\includ
e --xram-loc 0x6000 uart.c
uart.c:535: error 127: non-pointer type cast to generic pointer from type 'long-int' to type 'unsigned-char generic* '
uart.c:676: error 103: code not generated for 's_printfint' due to previous errors
-:0: error 103: code not generated for 'main' due to previous errors