• 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...
  • C166 BUG: V4.25 generates incorrect code
    To test the condition, I created new uVision project with default settings and compiled the following code: bit bit1, bit2 = 1; int i; __inline bit getbit(void) { return bit2; } void main(void)...
  • C166 Compiler
    /* file1.c */ static void StaticFunction(void); void main(void) { StaticFunction(); } void StaticFunction(void) { /* something */ } /* file2.c */ void SomeFunction(void) { StaticFunction...
  • _at_ for C166 ?
    Hello, is for C166 compiler also the instruction _at_ as with 8051 compilers to the direct address assignment? Rgds, Peter