PIC18F Port using XC8

waijye wrote on Wednesday, December 05, 2012:

Any idea on how to port from C18 to XC8?

rtel wrote on Wednesday, December 05, 2012:

Sorry - no idea.  I have never used XC8, and am not prioritising it as generally the PIC18 is not recommended for use with (any) pre-emptive RTOS.

Note that C18 generates code that is not reentrant, and I’m lead to believe (but have not verified) that XC18 is the same.

Regards.

waijye wrote on Wednesday, December 12, 2012:

What if I disable pre-emption by:

#define configUSE_PREEMPTION			0

Will it still work especially priority scheduling.
I don’t need preemption