> From: Sam WILLIAMS wrote: > I am attempting to test the viability of using C vs assembler for PIC programming. We (Byte Craft) have done quite a few internal studies of C vs Assembly. For compilers that we have released in the last 2 or 3 years for any non trivial application C won both in size and execution speed. There are some clear advantages to using C Local memory allocation is a clear win. This is primarily an accounting problem that is easily done by compiler/linkers and is implemented using exact algorithms. Compilers can code around silicon bugs and anomalies in a transparent way. Most silicon companies document sequences that have potential problems in some applications. C compilers treat these sequences as part of the constraints of code generation. Compilers can generate code sequences that are extremely difficult to maintain in assembler. For example, on the PIC's using the lsb of the PC to implement an unconditional skip the generated code sequence is address dependent.. Memory management tracking in Call and GOTO optimization. Walter Banks