Hi,
I'm compiling the last file from PICos18 RTOS, the prog_man.c file.

I am getting some strange errors:

pro_man.asm:1185: error: Symbol not previously defined (INTCON).
pro_man.asm:1185: error: Symbol not previously defined (INTCON).
pro_man.asm:1188: error: Symbol not previously defined (BSR).
pro_man.asm:1190: error: Symbol not previously defined (FSR2H).
pro_man.asm:1193: error: Symbol not previously defined (TBLPTRU).
pro_man.asm:1194: error: Symbol not previously defined (TBLPTRH).
...

Searching at google I found some "Symbol not previously defined", but
nothing related to theses registers.

Looking at generated asm file (prog_man.asm) I verifyied these
registers are not defined, only STATUS, WREG, FSR0L, FSR0H, FSR1L,
FSR2L, INDF0, POSTDEC1, PREINC1, PLUSW2 and PRODL.

Reading the manual I think I found why it is not happening:

"The compiler does not do any validation of the code within the _asm
... _endasm; keyword pair. Specifically it will not know which
registers are used and thus register pushing/popping has to be done
manually."

Maybe the compiler don't define the registers because they are used
just into asm ... endadm pair.

But I don't know how to instructs the compiler to define they when
generating the asm file. I tested defining theses register manually
inside the generated .asm file and it works.

Cheers,

Alan

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Sdcc-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sdcc-user

Reply via email to