• Bug in void* handling? (C166 V6.03)
    Hello All! I have a function which receives a void*: static dword queue[QUEUE_CNT][QUEUE_LEN]; static byte widx[QUEUE_CNT]; byte PutQueueItem( byte queueId, void* pItem ) { dword* pq = &queue...
  • C166 Compiler bug - Anyone seen this before?
    Hi there, I have this odd issue. Seems to be a compiler bug. Create a new C166 ST10F276 project and put in this code and you will see it corrupt the user stack pointer! I know someone will say...
  • A bug in C166 v.4.27
    The C166 compiler generates incorrect code when using __inline functions with bit return type. Test source code: bit bitvar1 = 1; bit bitvar2; __inline bit test() { return bitvar1; } void main(...
  • Incorrect code generation, optimization level #7. Ethernet driver
    Dear All, I am working on a project involving XC2287M microcontroller + AX88796B Ethernet chip and use PK166 & ARTX-166 TCP/IP stack, no ARTX uOS, HLarge memory model. I had to develop firmware for...
  • C166 Compiler
    /* file1.c */ static void StaticFunction(void); void main(void) { StaticFunction(); } void StaticFunction(void) { /* something */ } /* file2.c */ void SomeFunction(void) { StaticFunction...