On Sun, 30 Dec 2001, Mark Newland wrote: > 4) Bite my nails and wait for SDCC. Unfortunately, I have a customer (my first > one) waiting for his project Mark, That's too much risk. As the primary author of the PIC port of SDCC, I'd recommend NOT depending on SDCC right now. As I've said before, I expect a beta version to be ready around March. If you want to write compiler independent code then you're going to need the help of the C-preprocessor. I'd suggest creating an include file that defines all of the basic types: (NOTE: I don't own these compilers, so I'm not sure if the sizes are correct or not) #ifdef HITECH #define u8 unsigned char #define s8 signed char #define u16 unsigned int #define s16 signed int ... #endif #ifdef CCS #define u8 unsigned int #define s8 signed int #define u16 unsigned long #define s16 signed long #endif Then in your code, if you need an unsigned 8 bit variable, you can do this: u8 var1; As far as the built in functions, well, your basically stuck rolling your own. Scott -- http://www.piclist.com hint: The PICList is archived three different ways. See http://www.piclist.com/#archives for details.