Dear All, I have a client that uses CCS C for a PIC24 project. Now I need to interface it to my boot-loader (yes, that one) but I can't find documentation for its function call convention. Besides I could not find how to change the stack size. I already searched the Internet, CCS's site and my client's docs, but there is nothing. Does anybody know this information? Experimentally I discovered that it passes parameters in temporary variables (a-la PIC12 and PIC16) and returns bytes and words in W0. It defines a very small stack (128 bytes), which it uses only for return addresses (like small PICs). I need to enlarge the stack to at least 256 bytes, because my MPLAB C30 code uses local variables on stack. Its generated code is also very poor, there is plenty of: mov w4,w0 mov w0,w0 return even at maximum optimization level. It seems that CCS picked their compiler for small PICs and just "adapted" it for PIC24 devices. I always had CCS as a high-grade compiler by the words of others. Now I seriously doubt if I would ever use it. Isaac --=20 http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist .