On Wed, 23 Sep 2009 02:49:44 +0800 Fernan Bolando <fernanbola...@mailc.net> wrote: > Hi all > > nhc98 uses a few of > > static unsigned startLabel[]={}; > > which is a zero length array. It appears that it uses this as > reference to calculate the correct pointer for a bytecode. > > pcc does not allow this since zero lenth array is another gcc > extension. I tried declaring it as > > static unsigned startLabel[]; > > The resulting bytecode can then be compiled however it will only > crash. I traced it a pointer that tries to read an unallocated section > in memory. > > Is it possible emulate zero pointer in pcc??
Would something like this work? unsigned foo[1]; #define startLabel (&foo[1])