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 support@ccsinfo.com

Running multiple compilers.....

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



Joined: 09 Aug 2004
Posts: 97

View user's profile Send private message

Running multiple compilers.....
PostPosted: Tue May 10, 2011 11:11 am     Reply with quote

Hi All,

I've been working with the PCM compiler and PIC16 processors for a while now, and I'm getting ready to begin my first PIC18 project with the PCH compiler.

Currently, I'm using MPLAB with PCM, and I'd like to continue that with PCH. I'm looking for some advise on how to install PCH without disabling what I've already got working, and info on how to easily switch between compilers. Is that as simple a changing the language tool for each project?

Thanks,

John
_________________
John Morley
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Tue May 10, 2011 11:34 am     Reply with quote

Just create a project in MPLAB for your 18F PIC by using the MPLAB
project Wizard. Then compile it. The PCH compiler will automatically
be selected.

However, it's best if you have identical versions for PCM and PCH
installed on your system. If the versions are not identical, the
Devices4.dat file will only be correct for the compiler that you
installed last.

I got tired of installing the current compiler that I was using, each
time I wanted to switch to PCM or PCH. So I now just buy maintenance
for both of them, and I have vs. 4.121 installed for both. Then I
can switch between them without having to re-install each time.
John Morley



Joined: 09 Aug 2004
Posts: 97

View user's profile Send private message

PostPosted: Tue May 10, 2011 7:21 pm     Reply with quote

Hi,

Well, it looks like I make myself a real mess Surprised !

I tried to be clever and segregate the various compilers in the 'PICC' directory. For example, I originally had 'PICC\PCM', and then I added 'PICC\PCH'. The problem (I think?) is that the way MPLAB is set-up, all the compiler executables must be in the same place, the 'devices' directories need to be merged, etc. If not, it's a major pain to switch back and forth between PCM and PCH. Am I reading this correctly?

I wonder if I can move files around manually now, or should I un-install/re-install?

John
_________________
John Morley
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Tue May 10, 2011 7:27 pm     Reply with quote

Years ago, Mark came up with a scheme to edit the Registry to allow
PCM and PCH to be in different directories. Here's the 3-page thread:
http://www.ccsinfo.com/forum/viewtopic.php?t=21884
I don't want to do this, so I buy the maintenance for both compilers
so the versions are always the same, and I can install them in the
same c:\Program Files\PICC directory.

Note to others:
If you have the IDE compiler (PCW, PCWH, PCWHD) then it's no
problem to install different versions in different directories.
This question is about installing different versions of the "command-line"
compilers (PCM, PCH, and PCB) so they work smoothly with MPLAB.
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