Convers XC18 ver. 2.10 with ver. 3.10

This conference allows discussion on any subject not already covered in another PICmicro conference. If a topic becomes popular enough, a new conference will be created for it.

Convers XC18 ver. 2.10 with ver. 3.10

Postby ciclingman » Tue Dec 02, 2025 12:52 pm

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?
ciclingman
 
Posts: 4
Joined: Sun Mar 17, 2024 9:11 pm

Re: Convers XC18 ver. 2.10 with ver. 3.10

Postby AussieSusan » Wed Dec 03, 2025 2:28 am

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..
AussieSusan
Verified identity
 
Posts: 176
Joined: Mon Jun 16, 2014 4:45 am
PIC experience: Experienced Hobbyist

Re: Convers XC18 ver. 2.10 with ver. 3.10

Postby ciclingman » Wed Dec 03, 2025 12:24 pm

I apologize, I made a mistake in writing. The conversation is about the XC8 compiler with the versions I listed
ciclingman
 
Posts: 4
Joined: Sun Mar 17, 2024 9:11 pm

Re: Convers XC18 ver. 2.10 with ver. 3.10

Postby AussieSusan » Thu Dec 04, 2025 2:30 am

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.
AussieSusan
Verified identity
 
Posts: 176
Joined: Mon Jun 16, 2014 4:45 am
PIC experience: Experienced Hobbyist

Re: Convers XC18 ver. 2.10 with ver. 3.10

Postby ciclingman » Thu Dec 04, 2025 12:54 pm

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?
ciclingman
 
Posts: 4
Joined: Sun Mar 17, 2024 9:11 pm

Re: Convers XC18 ver. 2.10 with ver. 3.10

Postby ric » Thu Dec 04, 2025 11:07 pm

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"
Latest test project, an LED matrix display made from one reel of addressable LEDs. here
User avatar
ric
Verified identity
 
Posts: 667
Joined: Sat May 24, 2014 2:35 pm
Location: Melbourne, Australia
PIC experience: Professional 5+ years with MCHP products

Re: Convers XC18 ver. 2.10 with ver. 3.10

Postby ciclingman » Sat Dec 06, 2025 6:56 pm

Thank you very mutch Ric
ciclingman
 
Posts: 4
Joined: Sun Mar 17, 2024 9:11 pm


Return to Other PICmicro topics

Who is online

Users browsing this forum: No registered users and 1 guest