MPLAB C Compiler VS Hi-Tech C PRO Compiler

Discussion about projects that used PIC Microcontroller, Hardware Interface, Programming Algorithm and etc......

Re: MPLAB C Compiler VS Hi-Tech C PRO Compiler

Postby redips_id » Tue Mar 15, 2011 7:43 pm

ober WROTE:I would agree with shiyan about the compiler differences. Even with C18 and HITECH compiler, there is a feature called optimization. This optimization will actually decide how optimize the C code is translate into assembly before turning into hex code. If the optimization is good, the hex code will be smaller in size and of course faster execution time. HITECH is well known for high code optimization.


Very good explaination, thanks ober, i'm clear right now. :D
Ok then, what is the best compiler for PIC? As I know we have MPLAB, Hi-Tech, CCS, MicroE n etc.. If Hi-Tech is the answer, I want totally focus on Hi-Tech C Compiler for my PIC programming, hehe.. :lol:
Request for complete solution for FYP? Why don't request for graduation certificate?
redips_id
Discoverer
 
Posts: 82
Joined: Wed Jan 20, 2010 6:23 pm

Re: MPLAB C Compiler VS Hi-Tech C PRO Compiler

Postby Brian Griffin » Wed Mar 16, 2011 9:21 am

redips_id WROTE:Very good explaination, thanks ober, i'm clear right now. :D
Ok then, what is the best compiler for PIC? As I know we have MPLAB, Hi-Tech, CCS, MicroE n etc.. If Hi-Tech is the answer, I want totally focus on Hi-Tech C Compiler for my PIC programming, hehe.. :lol:


The best compiler, economically wise would be the CCS compilers. It's much cheaper than the MPLAB or Hi-Tech but you need to pay for the annual maintenance. The annual maintenance means further program updates for only one year.
PIC - UIC00B from Cytron (replacement for my broken PICKit 2), Pickit 3, MikroC for PIC
dsPIC - MikroC for dsPIC, mikromedia board (dsPIC33)
AVR - AVR Dragon
Parallax - Prop tool
User avatar
Brian Griffin
Enthusiast
 
Posts: 403
Joined: Mon Jan 17, 2011 9:36 am

Re: MPLAB C Compiler VS Hi-Tech C PRO Compiler

Postby FloatingMachine » Wed Mar 16, 2011 10:53 am

Hi guys... I'm new here and this post got my first reply :D

I still prefer to use Microchip C compiler (C18, C30, etc) and the main reason is all the Microchip's library can be compiled with Microchip C Compiler. Just my 2 cents :)
FloatingMachine
Newbie
 
Posts: 10
Joined: Wed Mar 16, 2011 10:10 am

Re: MPLAB C Compiler VS Hi-Tech C PRO Compiler

Postby redips_id » Wed Mar 16, 2011 5:23 pm

Thanks Brian for your opinion..

Actually I have tried MPLAB, Hi-Tech, CCS and MikroE.. What I mean best is on the compiler performance itself, which one is the best in code optimization (and other performance criteria)? I have read at another forum discuss about this topic too and this is one of the comment "The B Knudsen CC5X is supported by MPLAB. The free version supports up to 1K of code" what is meant by "supports up to 1K of code"? What about Hi-Tech? Sorry for giving a lot of question.. :)

I'm busy on reading another datasheet, so I didn't have much time to read on PIC C Compiler manual.. :lol:
Request for complete solution for FYP? Why don't request for graduation certificate?
redips_id
Discoverer
 
Posts: 82
Joined: Wed Jan 20, 2010 6:23 pm

Re: MPLAB C Compiler VS Hi-Tech C PRO Compiler

Postby Brian Griffin » Wed Mar 16, 2011 7:40 pm

redips_id WROTE:Thanks Brian for your opinion..

Actually I have tried MPLAB, Hi-Tech, CCS and MikroE.. What I mean best is on the compiler performance itself, which one is the best in code optimization (and other performance criteria)? I have read at another forum discuss about this topic too and this is one of the comment "The B Knudsen CC5X is supported by MPLAB. The free version supports up to 1K of code" what is meant by "supports up to 1K of code"? What about Hi-Tech? Sorry for giving a lot of question.. :)

I'm busy on reading another datasheet, so I didn't have much time to read on PIC C Compiler manual.. :lol:


Unfortunately, there is no formal benchmarks on these compilers at all, at the time of search.

From the CCS website, it seemed that their own compilers are slightly better than the rest of the other compilers mentioned.

I have no comments on those compilers, each of them have their own strengths and weaknesses.

My preference is, use the ones which contains optimized hardware/software libraries, and everything else in balance. It makes prototyping very easy.

I would recommend CCS but the program updates is only effective for one year. The CCS contains a lot of libraries and even an RTOS (Real Time Operating System) should you need to multitask on your microcontroller.
PIC - UIC00B from Cytron (replacement for my broken PICKit 2), Pickit 3, MikroC for PIC
dsPIC - MikroC for dsPIC, mikromedia board (dsPIC33)
AVR - AVR Dragon
Parallax - Prop tool
User avatar
Brian Griffin
Enthusiast
 
Posts: 403
Joined: Mon Jan 17, 2011 9:36 am

Re: MPLAB C Compiler VS Hi-Tech C PRO Compiler

Postby redips_id » Wed Mar 16, 2011 9:46 pm

Thanks Brian :)

I interested when you are mentioning "Real Time Operating System".. Can I ask, which PIC have RTOS?
Request for complete solution for FYP? Why don't request for graduation certificate?
redips_id
Discoverer
 
Posts: 82
Joined: Wed Jan 20, 2010 6:23 pm

Re: MPLAB C Compiler VS Hi-Tech C PRO Compiler

Postby Brian Griffin » Wed Mar 16, 2011 10:55 pm

redips_id WROTE:Thanks Brian :)

I interested when you are mentioning "Real Time Operating System".. Can I ask, which PIC have RTOS?


RTOS is a piece of software for microcontrollers/computers. The software enables multitasking in those systems.
PIC - UIC00B from Cytron (replacement for my broken PICKit 2), Pickit 3, MikroC for PIC
dsPIC - MikroC for dsPIC, mikromedia board (dsPIC33)
AVR - AVR Dragon
Parallax - Prop tool
User avatar
Brian Griffin
Enthusiast
 
Posts: 403
Joined: Mon Jan 17, 2011 9:36 am

Re: MPLAB C Compiler VS Hi-Tech C PRO Compiler

Postby FloatingMachine » Fri Mar 18, 2011 11:15 am

The only RTOS I used b4 was the FreeRTOS. It supports PIC18F and above. Not sure for the others.
FloatingMachine
Newbie
 
Posts: 10
Joined: Wed Mar 16, 2011 10:10 am

Re: MPLAB C Compiler VS Hi-Tech C PRO Compiler

Postby robosang » Sun Mar 20, 2011 11:20 am

Been using HI-TECH for 16F and MPLAB C18 for PIC18F :D
robosang
Expert
 
Posts: 1239
Joined: Wed Jun 10, 2009 5:37 pm

Previous

Return to PIC Microcontroller

Who is online

Users browsing this forum: No registered users and 5 guests

cron