CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to CCS Technical Support

Hardware vs Compiler and code migration to 4.xx

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
jecottrell



Joined: 16 Jan 2005
Posts: 559
Location: Tucson, AZ

View user's profile Send private message

Hardware vs Compiler and code migration to 4.xx
PostPosted: Tue Jul 27, 2010 4:28 pm     Reply with quote

Looks like I may have to use a PIC18F87J11 on a development board. I have yet to make the migration to 4.xx.

What is the oldest compiler version to support the PIC18F87J11,

and...

If I am forced to use the 4.xx compiler, how much work is necessary in modifying code from 3.xx to compile on the 4.xx?

Thanks,

John
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Tue Jul 27, 2010 10:38 pm     Reply with quote

Quote:

What is the oldest compiler version to support the PIC18F87J11,

Vs. 4.039 is the first to have it, but that doesn't mean it works correctly
in that version. It usually takes several more versions to get all the
built-in functions working correctly. Or it might take a lot more.


Quote:

How much work is necessary in modifying code from 3.xx to compile on the 4.xx?

You need to check your code and make sure that you're doing pointer
arithmetic the correct way (CCS implemented this, starting with
v4.021). See this thread:
http://www.ccsinfo.com/forum/viewtopic.php?t=30461

Also, you cannot have a local copy of the header file for the PIC in
your project directory. CCS changes the way the built-in functions work
from time to time, and they change the constants in the header files for
some of the functions. You must let the compiler use the header file
for the currently installed version. Let it use the header files in the
c:\Program Files\Picc\Devices directory.
jecottrell



Joined: 16 Jan 2005
Posts: 559
Location: Tucson, AZ

View user's profile Send private message

PostPosted: Wed Jul 28, 2010 11:03 am     Reply with quote

Thanks for the info and the link to the pointer issues.

I'll read up and probably drag my heels a little longer.


John
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group