XC8 V2.00 compiler in war with V1.34

Thread Starter

Picbuster

Joined Dec 2, 2013
1,058
I encounter many of problems upgrading compiler from V1.34 to V2.0. PIC16Fxxxx
The very old 12f675 programs (from 2010) after import goes well.

Existing software written in V1.34 is generating a lot of errors and warnings.
And refuses to link.

I can suppress the warning but I don't want to.

The old environment is still available allowing me to continue however I want move forwards not backwards.

Question: Is this old ape the only one?
I do have to find an other banana tree if that's the case .

Picbuster
 

DNA Robotics

Joined Jun 13, 2014
670
While not exactly an answer to your question, it may provide a clue.
This is from years ago regarding a PIC program that I posted.

I discovered something while setting up another computer for programming PICs.
HI-TECH C version 9.83 uses OPTION_REG and compacts programs better.
HI-TECH C version 9.65 uses OPTION and at least on this program uses 110 bytes more memory than the 16F628a has.
That explains why I have always had to change OPTION to OPTION_REG in sample programs.

I had to look in the header files for what the error was complaining about, then change it in the program file.
 

nsaspook

Joined Aug 27, 2009
16,321
XC8 V2.00 is a completely different compiler (CLANG) with better compliance to C99 instead of C89/90 that also provides AVR support. There are quirks to convert code so lets see the errors. You can suppress the warning that are pedantic.
 

Thread Starter

Picbuster

Joined Dec 2, 2013
1,058
What errors and what source code?
Hi AlbertHall,

Thank you for offering help.
I did reinstall the complete system, ide and compiler. ( but I still don't know what caused that miserable behave)
The error where gone two warnings left (373) signed to unsigned conversion in doprnt.c remains.
then I looked into
char list[10];
int i;
char Character=list;

The compiler seems to make noise on int i; hence an array pointer can't go negative.
It should be an unsigned pointer. So Microchip did the correct thing.
One advantage I learned again something.

Picbuster
 
Top