Wouter van Ooijen wrote: > for instance: there should be an integer type that is at least > 0..255, but maps to the 'best' machine type. This could be a byte on a > PIC, but on an ARM probably a 32-bit word. This is something I added to my source to source translator long ago. After reading the back end configuration file that defines what the target processor and language can do, it creates various data type symbols. For the Pascal input language it creates a set of data types called SYS_INT_CONVxx_T, where XX is the minimum bits you need in an integer. This then maps to the integer of at least that size that is most convenient from the target system's point of view. What you are asking for above is exactly my SYS_INT_CONV8_T. There are also other data types, like SYS_INT_MINxx_T which map to the smallest target integer at least xx bits wide. ***************************************************************** Embed Inc, embedded system specialists in Littleton Massachusetts (978) 742-9014, http://www.embedinc.com -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist