Xiaofan Chen wrote: > On 10/19/07, Walter Banks wrote: >>> FWIW, all the HiTech libraries come with sources. Most of it is C, with >>> some optimized assembly interspersed. >> >> Byte Craft MPC supplies sources for all of its libraries. Our libraries >> are written entirely in C. If we had to resort to assembler it would >> mean there something amiss in the compiler :) > > That is a very interesting remark. As far as I know, most MCU C > compilers all have kind of startup code and some libraries function > written in assembly or inline assembly code. > > Example: MPLAB C18, MPLAB C30, AVR-GCC, IAR for ARM, Keil C51. For example, HiTech supplies a NOP() macro, which is implemented as embedded assembly. I wouldn't know how to do that in standard C. Gerhard -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist