Interesting problem. Same code 2 different compilers, 2 diffrent results.
Here's something to look at: Fire up MPLAB, select the device type to match your PIC, then import the hex code for each version in turn.
See if there are any differences in the config bits.
Bookmarks