Hi Raphael,

Le samedi 17 octobre 2009, Raphael Neider a écrit :
> > encountered NULL pcop--this is probably a compiler bug...
>
> Could you please post the failing source file(s) including all
> #include'd files? This would certainly help me debugging your
> problem.

Meanwhile I solved the problem by doing things another (better) way and the 
program evolved, so I don't have the failing source code on hand anymore. I 
haven't kept it because I had isolated the instruction that caused the 
compiler to be unhappy.

It was assigning a bit corresponding to a PIC port input to a short integer :

#define SOME_INPUT RB3

(RB3 itself being defined in the standard included pic16f886.h)

unsigned short int buffer;
[blah...]
buffer=SOME_INPUT;

Commenting out the last instruction caused the compiler to stop complaining, 
so since, I now affect datastructures bits only to other datastructure bits ;-)

Besides this error, the last days I've noticed a number of situations that 
cause sdcc to exit in error without spitting any specific error, and those 
situations always related to syntax errors in my code, such as a missing 
closing curly brace, etc.

Kind regards.

-- 
Michel Bouissou (OpenPGP ID 0xEB04D09C)

------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Sdcc-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sdcc-user

Reply via email to