Page 1 of 1

Convers XC18 ver. 2.10 with ver. 3.10

PostPosted: Tue Dec 02, 2025 12:52 pm
by ciclingman
Hello everyone, how do you convert the listing of a program written in C and compiled with CX8 version 2.1, to compile it with CX8 version 3.10?

Re: Convers XC18 ver. 2.10 with ver. 3.10

PostPosted: Wed Dec 03, 2025 2:28 am
by AussieSusan
At a guess you need to put the listing into a text editor and delete the extraneous text until you just have the source. How easy that is might depends on the capabilities of the text editor - can it create a macro that deletes the first 'x' characters from each line etc..
However that will probably not get you very far unless the listing also expands all of the '#include' file contents etc..

Re: Convers XC18 ver. 2.10 with ver. 3.10

PostPosted: Wed Dec 03, 2025 12:24 pm
by ciclingman
I apologize, I made a mistake in writing. The conversation is about the XC8 compiler with the versions I listed

Re: Convers XC18 ver. 2.10 with ver. 3.10

PostPosted: Thu Dec 04, 2025 2:30 am
by AussieSusan
Then I'm not sure I understand the question.
What is the actual probelm that you are encountering?
Have you tried to compile the code with the new compiler? If so, check any errors that you may have received and try to fix those.

Re: Convers XC18 ver. 2.10 with ver. 3.10

PostPosted: Thu Dec 04, 2025 12:54 pm
by ciclingman
In my opinion, the errors caused by compiling with the new version are registers and instructions that are called differently, compared to compiling with the old version; What I would like to know is how do I know what language changes they made in the old version?

Re: Convers XC18 ver. 2.10 with ver. 3.10

PostPosted: Thu Dec 04, 2025 11:07 pm
by ric
ok, so when you say "listing of a program", you just meant the C source code.
Can you show us some of the errors you are getting?
I suspect you were using v2.1 in the old "C90" mode, and some of the non-standard features of that mode are not supported in C90 mode in v3.xx.

I would recommend reading either "Readme_XC8_for_PIC.pdf" or "Readme_XC8_for_PIC.htm" in your XC8 "docs" folder, particularly the section "4 Migration Issues" for "Version 3.00"

Re: Convers XC18 ver. 2.10 with ver. 3.10

PostPosted: Sat Dec 06, 2025 6:56 pm
by ciclingman
Thank you very mutch Ric