On Fri, 27 Jan 2006, Gerhard Fiedler wrote: > I think that for most users this incompatibility is not really a biggie -- > compared with moving to C. Once you decide to use a C compiler, you tend to > use less and less assembler. For the asm routines you use, you have to > rewrite their interface in any case (even with a compiler that uses > MPASM/MPLINK), to satisfy the C compiler's calling conventions -- the > additional work to adapt it to HiTech C may not be that much more. Have you > looked at what you would have to do with C18? Another aspect of using seperate assembler modules and inline assembler statements is that you are reducing the compilers ability to understand what you are trying to do and consequently hampering the compiler's ability to optimise your code. There are situations where a compiler can adapt its calling conventions to suit the context of the call and the function being called. In some cases it could reduce the call to a few inline instructions eliminating the call overhead and a seperate function body. In other cases it can eliminate the need to pass parameters at all. You kill this ability if you hard code a function in assembler. Regards Sergio Masci http://www.xcprod.com/titan/XCSB - optimising PIC compiler FREE for personal non-commercial use . -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist