On Sat, 2005-05-07 at 22:42 +1200, Mike Pearce wrote: > The PIC16F84 only had 68 bytes of RAM available for use so you have very > possibly hit the limit - or the compilers optimizations are not that good.
Sounds like it. The assembler can't find "bitfield0", which the C compiler is generating. Maybe it's run out of places to put it :) > I use hitech pic c for the work I do (see www.kiwacan.co.nz) it is a > commercial compiler for the PIC with Win and Linux versions. They have a > free version available called PICC-Lite that me be worth a go > http://www.hitech.com.au/products/PICClite.php You might be interested in what I'm developing then: http://reprap.org > With larger PIC16xxxx devices the RAM is banked and some compilers require > you to set what bank global variables are in. Yeah, I'll try compiling for a bigger one. What would you recommend? PIC16F628A? I'm not sure that's the whole story though - I'm getting a syntax error in the asm output for a {x=!y;} code snippet. I'm sure compilers shouldn't produce asm code with syntax errors in... Vik :v) > > I would be interested in a link to the compiler you used. Sure. http://sdcc.sf.net The gpsim PIC simulator is pretty good too. Vik :v) -- Vik Olliver <[EMAIL PROTECTED]> The Olliver Family
