Sonsivri

Electronics => Pic C Languages => Topic started by: chyun3 on February 04, 2007, 09:13:25 09:13



Title: CCS, HI-TechC, MikroC , MPLAB C.....Which C Compiler is the BEST???
Post by: chyun3 on February 04, 2007, 09:13:25 09:13
Hello....
Since I new here , I wonder which C Compiler is most widely used and work the best...
Pls stated out the Compiler u r using and its' advantage and disadvantage ;D


Title: Re: CCS, HI-TechC, MikroC , MPLAB C.....Which C Compiler is the BEST???
Post by: tavioman on February 05, 2007, 09:36:41 09:36
There is a lot of compare of various PIC C Compiler on this site. Please use search..


Title: Re: CCS, HI-TechC, MikroC , MPLAB C.....Which C Compiler is the BEST???
Post by: tavioman on February 05, 2007, 09:42:26 09:42
BTW, I'm using CCS v3.249. It's easy to use and works OK.
If you want a professional C Compiler you should use Hi-Tech C or IAR. They are full ANSI compliant but that also mean that you don't have any MCU Specific functions. You should build your own.
In CCS C there are many PIC specific functions, like:
set_timer(), set_pwm_duty, etc...


Title: Re: CCS, HI-TechC, MikroC , MPLAB C.....Which C Compiler is the BEST???
Post by: raham on February 06, 2007, 09:48:52 09:48
use of ease and with many driver libraries i prefer the ccs as best and if your project is a comercial industry standard product i prefer hitech and if it is for pic18 and dspic i prefer mplabc because it from their own product microchip. :)Use ccs for basic,easy, & quick projects.


Title: Re: CCS, HI-TechC, MikroC , MPLAB C.....Which C Compiler is the BEST???
Post by: Zaphod Beeblebrox on February 07, 2007, 07:23:12 19:23
Hmm, funny question. You might use a search feature on this forum...


Title: Re: CCS, HI-TechC, MikroC , MPLAB C.....Which C Compiler is the BEST???
Post by: Cesar on June 29, 2007, 02:01:50 14:01
Hi,

Tavioman is right IAR is professional, and CCS is for quick, simple and no compromise...
I never tried HiTech.....

See you,


Title: Re: CCS, HI-TechC, MikroC , MPLAB C.....Which C Compiler is the BEST???
Post by: nolortonman on June 29, 2007, 04:31:54 16:31
Hi tech... some users said its a repeated question..


Title: Re: CCS, HI-TechC, MikroC , MPLAB C.....Which C Compiler is the BEST???
Post by: mitsos on July 02, 2007, 09:33:23 21:33
Hi
in this topic we concern only for Microchip PICs
as regards the language: C is still the best as the most engineers agree
so from the available C compilers
the "winner" for the most pics 12Fxxx,16Fxxx
is the one from Hitech, I consult to download the others compilers for this reason--> to steal a possibly smart idea from the included examples
IAR has powerful compilers but support very little types from the above series

as regards the 18Fxxx,and 30Fxxx (and other dsPIC types)
the first tools that you must think to try -and are "free"- are the two Microchip compilers
next it is worthing to try the Hitech and IAR tools

regards
mitsos

and if you talking next for AVR families
IAR compiler is possibly the best


Title: Re: CCS, HI-TechC, MikroC , MPLAB C.....Which C Compiler is the BEST???
Post by: aj49m on July 05, 2007, 05:22:30 17:22
hi-tech is better  ;)


Title: Re: CCS, HI-TechC, MikroC , MPLAB C.....Which C Compiler is the BEST???
Post by: darksky on July 13, 2007, 07:30:07 19:30
Although buggy - I like CCS.





Title: Re: CCS, HI-TechC, MikroC , MPLAB C.....Which C Compiler is the BEST???
Post by: meo_udon on September 01, 2007, 05:06:10 17:06
I like PICC but PICC18 has some problem.


Title: Re: CCS, HI-TechC, MikroC , MPLAB C.....Which C Compiler is the BEST???
Post by: Tre on September 01, 2007, 05:29:51 17:29
I've done many large projects in both CCS and HiTech.  I personally prefer CCS because it's very easy to get going with the built-in functions.  HiTech, as mentioned before, is an ANSI compiler so it doesn't have any built-in features specifically for the PIC like CCS does.  I'd give it a try, I doubt you'll regret it.


Title: Re: CCS, HI-TechC, MikroC , MPLAB C.....Which C Compiler is the BEST???
Post by: Tre on September 01, 2007, 05:31:55 17:31
Sorry, forgot to mention, I would stick with a 3.xxx version until the kinks all get worked out of 4.xxx.  They are using their customers as beta testers so don't be so quick to upgrade, unless you specifically need something from a new version.


Title: Re: CCS, HI-TechC, MikroC , MPLAB C.....Which C Compiler is the BEST???
Post by: digitalmg on September 01, 2007, 08:02:54 20:02
As a hobby use CCS or MikroC,for profesional project PICC18 or HI-Tech,IAR


Title: Re: CCS, HI-TechC, MikroC , MPLAB C.....Which C Compiler is the BEST???
Post by: mcr on September 02, 2007, 05:38:42 05:38
This question is eternal.

The best compiler is the one you know how to use  :D

I'm starting to pass from PBP to CCS and it's starting from scratch. Why CCS? Because it has many functions, and if you know pic architecture and assambler, one shouldn't have a problem with it (I hope!  ;D )


If you don't know C (like me) use CCS, if you know C, use MPLAB C18 or 30.


Cannot provide with anything more because those are the only ones that I've tried.


Title: Re: CCS, HI-TechC, MikroC , MPLAB C.....Which C Compiler is the BEST???
Post by: alex on September 03, 2007, 09:39:05 21:39
I did tried CCS, IAR and official microchip C18 and C30. I must agree that CCS is most user friendly with a lot of C files for support but on the other side you get better (smaller) code with either two. So you should try each and then decide which one is right for you.
                                                                  Alex


Title: Re: CCS, HI-TechC, MikroC , MPLAB C.....Which C Compiler is the BEST???
Post by: bluex on September 04, 2007, 05:39:43 05:39
CCS is the best
Microchip official compiler(C18) is bad
Why is C18 from Microchip bad ? because it's not commercial ? because it's free (in its student edition)?
It does all what we can excpect from a very good compiler. It has a set of nice libs and is updated regularly. First versions had bugs but it's getting corrected in each version and it integrates nicely under mpLab.
Even in its first version it was better ans more stable than the actual CCS compiler!
Why do to think it's bad? because it has not a special lib for comm with 24C16 ? do the effort to learn I2C and you'll communicate with any 24Cxx using C18 I2C or Software I2C lib that are provided. The same can be said for SPI or MW memories, or SPI/I2C sensors (temp, Dallas iButton, ....) the libs of C18 are very well done. It has all the set of tool we need for proefessionnal developments like a linker (that does work unlike CCS one), a librarian,... and it's able to generate retargetable code.
The best compiler is the compiler you know very well. C18 is like any other compiler, with its drawbacks and its set of bugs (very few in last versions, so few that a hobbyst will never see them). CCS instead has 10022929383838 lib that does nothing. Libs that use its I2C lib to communicate with an I2C device. I can not call that libs. I call them Samples or Examples, and most of them are so badly written. The compiler itself has 9989329938747477 bug and the linker is inexistant. The existing one is not even in alpha stage. The librarian is inexistant. The dev environment is ugly. The compiler is not case sensitive. Really all bad things we can find in a compiler.

Compare the set of corrected and discovered bugs in each version of C18 and the huge list of CCS!
I can give you quicly a set of sources that shows bugs in CCS. How many body in this forum can give me at least 2 or three examples thats shows bugs in C18?

Regards


Title: Re: CCS, HI-TechC, MikroC , MPLAB C.....Which C Compiler is the BEST???
Post by: iso on September 04, 2007, 07:47:34 07:47
why C18 or iar  hasnt got bugs?Becuse hasnt any spesific fonctions.is there any bug C fonctions of CCS  compiler .And CCS always anonce every single bugs of their compilers.They always developed compilers and fix bugs.if we use mcu, a compiler must include mcu fonctions.If doesnt include This case it is called low level compiler like asambler.if you would not write a program, you dont any error.if ccs wn'nt include spesific functions be sure it will be less bugy then iar or hi-tech. ::)


Title: Re: CCS, HI-TechC, MikroC , MPLAB C.....Which C Compiler is the BEST???
Post by: naoib on September 04, 2007, 02:33:40 14:33
I start with C2C but now I prefer CCS (3.249) because it's very easy to get going with the example, built-in functions and ICD is easy to use with high speed (U40) and real cheap to buy or very simple to make (clone). Some time isn't very confortable to control new hardware, if applications work all is ok but is not easy to understand what is happen if the applications don't work. In this situation built-in functions is not our friend.


Title: Re: CCS, HI-TechC, MikroC , MPLAB C.....Which C Compiler is the BEST???
Post by: bluex on September 04, 2007, 04:51:33 16:51
why C18 or iar  hasnt got bugs?Becuse hasnt any spesific fonctions.is there any bug C fonctions of CCS  compiler .And CCS always anonce every single bugs of their compilers.They always developed compilers and fix bugs.if we use mcu, a compiler must include mcu fonctions.If doesnt include This case it is called low level compiler like asambler.if you would not write a program, you dont any error.if ccs wn'nt include spesific functions be sure it will be less bugy then iar or hi-tech. ::)

No Iso, sorry but when I speak about bugs it's not samples (mis-named drivers by CCS) bugs, these are not bugs for me. I speak about bugs in the compiler core itself. Bugs in floating point support, in pointers arithmetic, in negating signed numbers, in reading/writing EEprom code space (because of pointer arithmetic), bugs in elementary core functions for a C compiler like malloc, bus in functions call from other functions ... all these are stupid ugly bugs .. nothing related to samples and examples.
C18 has also some bugs, but not as much as CCS. I never seen a compiler as buggy as CCS one.

Regards


Title: Re: CCS, HI-TechC, MikroC , MPLAB C.....Which C Compiler is the BEST???
Post by: Cesar on September 04, 2007, 09:56:21 21:56
Why is C18 from Microchip bad ? because it's not commercial ? because it's free (in its student edition)?
It does all what we can excpect from a very good compiler. It has a set of nice libs and is updated regularly. First versions had bugs but it's getting corrected in each version and it integrates nicely under mpLab.
Even in its first version it was better ans more stable than the actual CCS compiler!

I Agree with BlueX in some points.
 - C18 from Microchip works fine, but I just use version 2.2 or later, a lot of people says that was very bad in the lower versions...  :o
 - Any PIC compiler can work fine under MPLab (I used IAR, CCS, CC5X and C18), just require some patient.
 - Any C compiler for microchip PIC is better them CCS  ;D

See you,


Title: Re: CCS, HI-TechC, MikroC , MPLAB C.....Which C Compiler is the BEST???
Post by: bluex on September 04, 2007, 10:17:05 22:17
I Agree with BlueX in some points.
 - C18 from Microchip works fine, but I just use version 2.2 or later, a lot of people says that was very bad in the lower versions...  :o
I also never used version before 2.0. But from this version and until version 3.x it's really becoming very very well. And all bugs I know (that most users encounters) are really bugs related to very advanced features and in really very special conditions... not in standard additions and function call, or in memory allocation ... or worse, in pointer arithmetic, when we know that C is really done for that kind of purpose!

- Any C compiler for microchip PIC is better them CCS  ;D

Very fine this one... Very fine ....  ;D ;D ;D


Title: Re: CCS, HI-TechC, MikroC , MPLAB C.....Which C Compiler is the BEST???
Post by: gsosa2000 on September 04, 2007, 10:51:28 22:51
I not agree with BlueX,  I use the c18 and it´s better that ccs...
 


Title: Re: CCS, HI-TechC, MikroC , MPLAB C.....Which C Compiler is the BEST???
Post by: kmiha on September 04, 2007, 10:54:07 22:54
I used both CCS, HI-Tech, Mplab C18.

CCs is good for beginers in C.
HI-Tech and C18 are for professionals that wants to have the control.
C18 also co-operates with visual initializer of MPLAB.


Title: Re: CCS, HI-TechC, MikroC , MPLAB C.....Which C Compiler is the BEST???
Post by: paulosa on September 05, 2007, 01:49:25 01:49
 ;)HITECH
PICC18-PRO V9.61, this is more power!.


Title: Re: CCS, HI-TechC, MikroC , MPLAB C.....Which C Compiler is the BEST???
Post by: bluex on September 05, 2007, 09:10:25 09:10
I agree with the fact that HITEC does very good and very nice C compilers. They do only C compilers and they do them very well.
But compared to C18, Hitec compiler is
- very Expensive,
- and has no libraries (C18 has LCD/I2C/SPI/MW/OW/..../SOFT I2C/SOFT SPI/...) for hardware management :(

Regards
Bluex


Title: Re: CCS, HI-TechC, MikroC , MPLAB C.....Which C Compiler is the BEST???
Post by: cae on September 05, 2007, 10:10:03 10:10
I have used CCS, HI-Tech, MikroC and MicroChip C, and I find they all have their good and bad points.
In the end I think it all comes down to the individual using it, and sometimes the code they are working on as to which is the best.


Title: Re: CCS, HI-TechC, MikroC , MPLAB C.....Which C Compiler is the BEST???
Post by: ze_tr on September 06, 2007, 07:05:28 07:05
The best compiler is ccs c compiler if you want flexible c codes (buil-in functions, by using stream multiple serial ports, hw/sw i2c,...), on the other side there is no guaranty that current bugs will be fixed in the next version, or new bugs will not be introduced while fixing the existing bugs or adding new features to the compiler.

One of the best solution may be to modify the opensource driver codes for all compiler version, and use them with any compiler you like.

At the moment I am using CCS C Compiler and if spare some time I will try to use C18 and move to C18 permanently.


Title: Re: CCS, HI-TechC, MikroC , MPLAB C.....Which C Compiler is the BEST???
Post by: mmladenovic on September 06, 2007, 07:46:54 07:46
HI,
C18 is the best compiler.

Best regards
Milan 


Title: Re: CCS, HI-TechC, MikroC , MPLAB C.....Which C Compiler is the BEST???
Post by: jimbies on September 06, 2007, 03:20:32 15:20
Hi,

I agree with mmladenovic. MPLAB C18/C30 is the best, especially if you
are using ICD2.


Title: Re: CCS, HI-TechC, MikroC , MPLAB C.....Which C Compiler is the BEST???
Post by: trocse on September 07, 2007, 11:31:15 11:31
Ok C18 is good. what can be use if you want to write code for pic12 , pic16 ,pic24 series.must we buy and learn another compiler for all series which same producer mcu's? ha?  ??? ::)


Title: Re: CCS, HI-TechC, MikroC , MPLAB C.....Which C Compiler is the BEST???
Post by: bluex on September 07, 2007, 02:47:10 14:47
Ok C18 is good. what can be use if you want to write code for pic12 , pic16 ,pic24 series.must we buy and learn another compiler for all series which same producer mcu's? ha?  ??? ::)

1- I prefer to pass time to learn another compiler instead of using a buggy one
2- Why stick with 12 and 16xx series when 18Fxx series is cheaper and by far better  (more ram, more rom, more speed, better architecture, same pinout).

Regards


Title: Re: CCS, HI-TechC, MikroC , MPLAB C.....Which C Compiler is the BEST???
Post by: AntiBG on September 08, 2007, 07:30:50 07:30
MikroC, 100% recommend.... The Best


Title: Re: CCS, HI-TechC, MikroC , MPLAB C.....Which C Compiler is the BEST???
Post by: kriang on September 12, 2007, 03:59:20 15:59
Yes, I started with CCS , I feel it easy and faster (small code) because i don't expert in C. I will try for Hitech with big code. that is mind.  :D


Title: Re: CCS, HI-TechC, MikroC , MPLAB C.....Which C Compiler is the BEST???
Post by: jivega on September 30, 2007, 06:36:16 06:36
Hi-TechC is for me, the best compiler. Not include functions and drivers, but the code is highly optimized in size of final HEX file.


Title: Re: CCS, HI-TechC, MikroC , MPLAB C.....Which C Compiler is the BEST???
Post by: Robi on September 30, 2007, 11:24:16 11:24
1- I prefer to pass time to learn another compiler instead of using a buggy one
Its up to you.

2- Why stick with 12 and 16xx series when 18Fxx series is cheaper and by far better  (more ram, more rom, more speed, better architecture, same pinout).
Why don't you address such a question to Microchip ? To me, the small the application the smallest the controller. Did you ever see 18Fxx in 6 or 8-pin version ?   


Title: Re: CCS, HI-TechC, MikroC , MPLAB C.....Which C Compiler is the BEST???
Post by: bluex on October 01, 2007, 10:02:16 10:02
To me, the small the application the smallest the controller. Did you ever see 18Fxx in 6 or 8-pin version ?   


How many 8 pin 10Fxxx series can you seriously program using a HLL such as CCS ??? these pics are done only for ASM programming. Even if you use CCS for doing a button debounce, u can do that with ASM in some few lines of asm...


Title: Re: CCS, HI-TechC, MikroC , MPLAB C.....Which C Compiler is the BEST???
Post by: sonsivritwchen on October 21, 2007, 03:48:19 15:48
I like the int24 math in CC5x and bytecraft mpc compilers. But they are not very attractive for the user interface and device wizard.


Title: Re: CCS, HI-TechC, MikroC , MPLAB C.....Which C Compiler is the BEST???
Post by: quark576 on October 21, 2007, 05:24:53 17:24
I use CCS sometimes and I consider good and reliable.


Title: Re: CCS, HI-TechC, MikroC , MPLAB C.....Which C Compiler is the BEST???
Post by: charnyutk on October 23, 2007, 05:23:00 05:23
All of them was excellence,but I was used c30 for a long time.^^


Title: Re: CCS, HI-TechC, MikroC , MPLAB C.....Which C Compiler is the BEST???
Post by: Binary9Gbit on October 30, 2007, 01:47:24 01:47
 ;) ccs very good


Title: Re: CCS, HI-TechC, MikroC , MPLAB C.....Which C Compiler is the BEST???
Post by: kcid on October 30, 2007, 03:49:12 15:49
I think, all compilers are good, but CCS have many interesting tools that make the best...


Title: Re: CCS, HI-TechC, MikroC , MPLAB C.....Which C Compiler is the BEST???
Post by: picfan on October 31, 2007, 12:23:33 12:23
I am newbie, HI-TechC is too hard for me. I use CCS.
Picfan


Title: Re: CCS, HI-TechC, MikroC , MPLAB C.....Which C Compiler is the BEST???
Post by: iso on November 01, 2007, 04:00:06 16:00
i m using ccs by years.i made a lot of commercial  project (big and small) with ccs picc . Sometimes i tried to use other compilers,(hi-tech, microchip ,iar ,fored wizc, microelectronica etc..) but i never realized a small project all of these compilers.i had a problem every trying and i returned to ccsc.why?any idea for this stuations. ??? :(


Title: Re: CCS, HI-TechC, MikroC , MPLAB C.....Which C Compiler is the BEST???
Post by: jamen on December 08, 2007, 01:16:31 01:16
;)HITECH
PICC18-PRO V9.61, this is more power!.

HI: friend .can you upload the download link .include path file.thank you.


Title: Re: CCS, HI-TechC, MikroC , MPLAB C.....Which C Compiler is the BEST???
Post by: sonsivritwchen on December 08, 2007, 12:30:56 12:30
The merit of CCS is its abundant function for doing simple projects. But the worst part in CCS is the ambiguities in the documentation, when a user try to program some thing not in common place.


Title: Re: CCS, HI-TechC, MikroC , MPLAB C.....Which C Compiler is the BEST???
Post by: piscopatos on December 08, 2007, 03:24:45 15:24
hi-tech or ccs or others are not the programs just 2 ppl sit down wrote thm,thr are big thy are huge. so i dont think it is a good idea to discuss which is best. with ccs and hi-tech it is like talkin about same thing in 2 different ways.my recomendation is to start with one of thm and stick with it, and whn u become a pro on one of those u wont have major problems with writin a code with another c program.


Title: Re: CCS, HI-TechC, MikroC , MPLAB C.....Which C Compiler is the BEST???
Post by: Halcon67 on December 12, 2007, 12:45:27 12:45
I experiment with MikroC and think that is good for hobby use. Hi-TechC is complicated for me.


Title: Re: CCS, HI-TechC, MikroC , MPLAB C.....Which C Compiler is the BEST???
Post by: Orcino Borges on December 12, 2007, 08:55:51 20:55
 I use a CCS , but i a learning a C18 this is a ANSI

                           Orcino


Title: Re: CCS, HI-TechC, MikroC , MPLAB C.....Which C Compiler is the BEST???
Post by: mr_sri on December 13, 2007, 06:14:21 06:14
I like CCS, because a lot of library and example, so we can use it easily. For compiler comparation,  you can see this link...
http://www.ccsinfo.com/content.php?page=newcompilercomp


Title: Re: CCS, HI-TechC, MikroC , MPLAB C.....Which C Compiler is the BEST???
Post by: Tre on December 13, 2007, 07:04:17 07:04
I have used C18, PICC, and CCS quite extensively.  I actually prefer CCS despite it's non-ANSI syntax.  It is extremely easy to get up and running and there is more of a C like feel than C18 and PICC.  PICC and C18 seem like ASM macros to me!


Title: Re: CCS, HI-TechC, MikroC , MPLAB C.....Which C Compiler is the BEST???
Post by: engr.humair on December 13, 2007, 01:18:51 13:18
It depends upon the avaliablity of Information on each compiler


Title: Re: CCS, HI-TechC, MikroC , MPLAB C.....Which C Compiler is the BEST???
Post by: fuflogen on December 13, 2007, 03:59:42 15:59
imho CCS (not PCD) is the best for fast start programming,
now I have to use C18 compiler but I like CCS, it's "more user friedly" I think...


Title: Re: CCS, HI-TechC, MikroC , MPLAB C.....Which C Compiler is the BEST???
Post by: reynaldo on December 15, 2007, 12:48:59 00:48
i'm using mikroc.it has got wide library.i used hi-tech previously,but it is hard for beginning.


Title: Re: CCS, HI-TechC, MikroC , MPLAB C.....Which C Compiler is the BEST???
Post by: emulento on December 15, 2007, 02:08:44 02:08
PICC from CCS rules.


Title: Re: CCS, HI-TechC, MikroC , MPLAB C.....Which C Compiler is the BEST???
Post by: spkt on December 15, 2007, 03:47:14 03:47
i think that CCS is so wonderful for beginner


Title: Re: CCS, HI-TechC, MikroC , MPLAB C.....Which C Compiler is the BEST???
Post by: avlober on December 17, 2007, 10:27:00 10:27
I always use de IAR Compiler, es very clean, but it don´t support all micros ;(


Title: Re: CCS, HI-TechC, MikroC , MPLAB C.....Which C Compiler is the BEST???
Post by: lyk on January 06, 2008, 05:50:22 17:50
Begin with MickoC, very easy program in studying!  :)


Title: Re: CCS, HI-TechC, MikroC , MPLAB C.....Which C Compiler is the BEST???
Post by: suresh kumar on January 07, 2008, 12:43:01 12:43
i use mikroc i havnt had a problem so far.


Title: Re: CCS, HI-TechC, MikroC , MPLAB C.....Which C Compiler is the BEST???
Post by: memed500 on January 10, 2008, 11:56:21 11:56
microc very useful.


Title: Re: CCS, HI-TechC, MikroC , MPLAB C.....Which C Compiler is the BEST???
Post by: leandrohuff on January 10, 2008, 04:24:24 16:24
CC5x create code with very good optimization, easy integration with MPLAB or other free editor tools.


Title: Re: CCS, HI-TechC, MikroC , MPLAB C.....Which C Compiler is the BEST???
Post by: WAYNE25 on January 23, 2008, 11:22:25 11:22
Hi,i think mplab y ccs c are the best


Title: Re: CCS, HI-TechC, MikroC , MPLAB C.....Which C Compiler is the BEST???
Post by: ZioFester on January 23, 2008, 12:08:47 12:08
Hello,
i use C30, C18, HT but now i use MikroC. C18 and C30 are very good but they have not clear documentation. bye ;)   


Title: Re: CCS, HI-TechC, MikroC , MPLAB C.....Which C Compiler is the BEST???
Post by: shobits1 on January 24, 2008, 06:58:04 18:58
Quote
use of ease and with many driver libraries i prefer the ccs as best and if your project is a comercial industry standard product i prefer hitech and if it is for pic18 and dspic i prefer mplabc because it from their own product microchip. :)Use ccs for basic,easy, & quick projects.

I agree with raham, but i prefer hitech :)


Title: Re: CCS, HI-TechC, MikroC , MPLAB C.....Which C Compiler is the BEST???
Post by: CDT on January 29, 2008, 11:15:03 11:15
CCS is my choice(version 4.058)


Title: Re: CCS, HI-TechC, MikroC , MPLAB C.....Which C Compiler is the BEST???
Post by: ZioFester on January 29, 2008, 12:51:17 12:51
Hi,
With MikroC there are many already ready bookcases and in more the compatibility with the C is maintained. The various CCS has BUG experiments to you son arrived to version 4,20 and has changed. MickroC works well and answers perfectly to the requirements. If they need other bookcases they can create or copy from other compilers.
To fine the compilers son nearly all bonds but on blot some to 8-bit see them waste to you. I only use them in order to implement complex functions like those logical mathematics or. For the rest I go in Assembler. Language C I see more to it adapted for machine which 16-32-bit PIC24-dsPIC30-dsPIC33 type and new model PIC32 or ARM acrchitecture. For these structures it nearly needs completely a language to high level.
For the PIC18 already the speech changes. The PIC18 is a machine with more complex structure and difficultly the more complex management of the stack and the PC regarding the PIC16 can be managed from a assembler in how much is structures type, therefore one language C is one optimal solution.
At the moment language C that it supports of the BEES in order to manage a RTOS is the CCS but many of the RTOS in Internet supply already these bookcases. as an example the PICOS18 is one of these. For the PIC18 the C18 is written in C using.
Now the speech is divided in 2: if you must manage the machine directly or if you must manage it through a RTOS. Based on these considerations you see which he is compiler C more adapted ;)
Gone and programmed... ;) most possible...  8)

Posted on: January 29, 2008, 01:47:47 13:47 - Automerged

In order to render account you of what I have said visited care RTOS the address = http://www.picos18.com/ . I have not still tried this several RTOS but it seems good and full of Driver for peripheral the ready ones to be it uses you. Bye  ;)


Title: Re: CCS, HI-TechC, MikroC , MPLAB C.....Which C Compiler is the BEST???
Post by: etm503 on January 29, 2008, 02:46:41 14:46
I personally have used CCS for all projects, basic and commercial alike. Only problem are the bugs and the many revisions which are hard on each others' heels. I currently find a challenge with CCS when I have multiple interupt handling like I2C, RS232 on Uart and external interupts on B0 taking place concurrently. Not sure if this compiler limitation or just my programming skills, but I have tried many options.


Title: Re: CCS, HI-TechC, MikroC , MPLAB C.....Which C Compiler is the BEST???
Post by: fdx on January 31, 2008, 04:14:50 04:14
i use ccs c


Title: Re: CCS, HI-TechC, MikroC , MPLAB C.....Which C Compiler is the BEST???
Post by: wnmaximino on January 31, 2008, 07:44:17 19:44
I like MikroC because MMC library!
Very easy to beginner!


Title: Re: CCS, HI-TechC, MikroC , MPLAB C.....Which C Compiler is the BEST???
Post by: rtm on February 03, 2008, 02:56:05 14:56
I have used HT-PIC PICC - it was stable. But PICC18 makes a lot of problem to me - too many bugs, I have to check a lot of old versions before I found correct one.



Title: Re: CCS, HI-TechC, MikroC , MPLAB C.....Which C Compiler is the BEST???
Post by: engvidal on February 04, 2008, 11:32:20 11:32
 :) to fast learning, ccs is the better. I use it to teach pic.


Title: Re: CCS, HI-TechC, MikroC , MPLAB C.....Which C Compiler is the BEST???
Post by: TA5CT on February 04, 2008, 04:57:15 16:57
I like C. is it not important which kind of use to compiler editor? They have many different superiority for them. But all compiler's language type is C.


Title: Re: CCS, HI-TechC, MikroC , MPLAB C.....Which C Compiler is the BEST???
Post by: chronus on February 05, 2008, 12:12:58 00:12
Having tried all the of the compilers mention in the topic, I find CCS by far the best (aside from some annoying bugs). The generated hex is MUCH smaller than what HI-TECHs packages can do, and the seamless integration into MPLAB allows me to keep using my ICD2 without purchasing additional hardware.

I just wish CCS would abandon their attempts to create a gui (version 4 is pretty ugly), and just make the compiler an Eclipse plugin. This way the linux version could have a gui, and moreover they could port it to mac too!

What are users experiences here with the command line linux CCS compiler? good .. bad?


Title: Re: CCS, HI-TechC, MikroC , MPLAB C.....Which C Compiler is the BEST???
Post by: baba on February 10, 2008, 08:14:21 08:14
I use CCS 3.x and it is good enough for my simple applications. I think that it is good for a beginner and a lot of functions are directly available like rs232.


Title: Re: CCS, HI-TechC, MikroC , MPLAB C.....Which C Compiler is the BEST???
Post by: Orcino Borges on February 13, 2008, 05:05:37 17:05
Hi, i tested MikroC and is very good and more cheap.


Title: Re: CCS, HI-TechC, MikroC , MPLAB C.....Which C Compiler is the BEST???
Post by: mabd on February 15, 2008, 08:03:54 08:03
what about optimization and code genration?
I think MPLAB C is very good whatever mikroC more friendly


Title: Re: CCS, HI-TechC, MikroC , MPLAB C.....Which C Compiler is the BEST???
Post by: oinan on February 17, 2008, 06:44:59 18:44
I used CC5X C and Hi-Tech C They're similar to ANSI C...

Posted on: February 17, 2008, 07:36:09 19:36 - Automerged

CCS C seems very useful has got many libraries but too different from ANSI C... and urges to memorize commands... but graph lcd libraries, ds memories, etc. makes its using necessary


Title: Re: CCS, HI-TechC, MikroC , MPLAB C.....Which C Compiler is the BEST???
Post by: JCC on February 22, 2008, 11:35:43 23:35
MikroC because its easy to use and nice interface for beginner


Title: Re: CCS, HI-TechC, MikroC , MPLAB C.....Which C Compiler is the BEST???
Post by: fastlink30 on February 23, 2008, 09:45:07 09:45
ccs for me, simple & quick to use


Title: Re: CCS, HI-TechC, MikroC , MPLAB C.....Which C Compiler is the BEST???
Post by: overmind on May 05, 2008, 09:46:06 09:46
CCS C is really a great tool.. they also have have a wonderful forum site in www.ccsinfo.com/forum to help you if you encounter some problems..


Title: Re: CCS, HI-TechC, MikroC , MPLAB C.....Which C Compiler is the BEST???
Post by: manoon on May 14, 2008, 02:32:59 14:32
Dear all,
Do you have the CD key for MPLAB C18 if have let me know.
Thank


Title: Re: CCS, HI-TechC, MikroC , MPLAB C.....Which C Compiler is the BEST???
Post by: mbandala on May 14, 2008, 03:48:46 15:48
Dear all,
Do you have the CD key for MPLAB C18 if have let me know.
Thank


CD key?

You don't need one, just check here...

http://www.sonsivri.com/forum/index.php?topic=2374.0


Title: Re: CCS, HI-TechC, MikroC , MPLAB C.....Which C Compiler is the BEST???
Post by: ronbreukers on May 14, 2008, 08:51:50 20:51
I am using CCS PCWHD 4.068 to program PIC24. However I lost already a lot of time to find and correct for bugs in the compiler. I could not get the RTC working, The interrupt failed etc. However for the PIC 18 and PIC 16 it works OK.
By the way I am looking urgently for an upgrade to this compiler...
I compared efficiency against assembly for a PIC 16F689 and programmed the same software in assembly and in C. The version in C was about 35% larger than the assembly language version. (4K in C against 3K in assembly)
I have no experience with other compilers, but my rule is for processors smaller than 4K, use assembly.


Title: Re: CCS, HI-TechC, MikroC , MPLAB C.....Which C Compiler is the BEST???
Post by: HTAluvBeBeo on May 17, 2008, 04:38:10 04:38
Actually, a software written by CCS C cost more sapce of PIC than Compilers from Microchip. But CCS and Mikro C is more easy in than C18, C30.
Some experts advised me to learn C18, C30 for an efficient software.
I have the similar problem than ronbreukers with RTC  when using C languagle, but I can reslove it with MPLAB ASM.

In conclusion: In my opinion, CCS C and MikroC are both easy in use and very suitable for newbies or simply applications
MPLAP C would serve better but more difficult to use


Title: Re: CCS, HI-TechC, MikroC , MPLAB C.....Which C Compiler is the BEST???
Post by: juliano_cps on May 18, 2008, 02:10:36 02:10
By the time that I have used CCS it have a lot of bugs... new releases every week... but, there are a lot of embeded functions, good for the starting users.

Now I use Hi-Tech PICC, it is a full ANSI C compiler... almost bug free... so it's my professional choice.



Title: Re: CCS, HI-TechC, MikroC , MPLAB C.....Which C Compiler is the BEST???
Post by: smainj on June 17, 2008, 10:30:07 22:30
the Best compiler is MPASM from microchip  ;D


Title: Re: CCS, HI-TechC, MikroC , MPLAB C.....Which C Compiler is the BEST???
Post by: mbandala on June 17, 2008, 11:27:48 23:27
the Best compiler is MPASM from microchip  ;D

Yes, MPASM is excellent, but is not a C or any other kind of compiler. MPASM stands for Microchip Assembler.


Title: Re: CCS, HI-TechC, MikroC , MPLAB C.....Which C Compiler is the BEST???
Post by: smainj on June 18, 2008, 02:21:13 14:21
when i need power im use  it with MikroC im write asm{ my code } 


Title: Re: CCS, HI-TechC, MikroC , MPLAB C.....Which C Compiler is the BEST???
Post by: ta2lt on June 18, 2008, 02:30:29 14:30
I use ccs but all complier usefull


Title: Re: CCS, HI-TechC, MikroC , MPLAB C.....Which C Compiler is the BEST???
Post by: elcielo on June 20, 2008, 03:45:33 15:45
compile code size ?


Title: Re: CCS, HI-TechC, MikroC , MPLAB C.....Which C Compiler is the BEST???
Post by: eeyrw on July 23, 2008, 05:42:49 17:42
I like CCS.It's easy.


Title: Re: CCS, HI-TechC, MikroC , MPLAB C.....Which C Compiler is the BEST???
Post by: toml on July 24, 2008, 03:40:48 03:40
When you consider which compiler is the best?
Maybe, you should ask whether that compiler can produce debug code for MPLAB,
so that you can debug programs inside MPLAB by using ICD or ReadIce. (affordable debuggers)

Secondly, check whether the compiler you choose provide enough libraries to ease the
common hardware problems.  MikroC is one of the best provides her own libraries to let
you to connect to RS232, CAN, MMC and ethernet etc.  You don't need to
search the useful libraries around, or write them from scratch.

No matter which compiler you choose, try hard and put some time to get familiar with that compiler,
then you may become one of the best engineer at the later time. ;D ;D ;D



Title: Re: CCS, HI-TechC, MikroC , MPLAB C.....Which C Compiler is the BEST???
Post by: sunskier on August 06, 2008, 01:51:40 01:51
I am new too.
Because nobady could teach me, so I went to Microchip RTC to learn.
I use MPLAB C18 , but freeware is best...


Title: Re: CCS, HI-TechC, MikroC , MPLAB C.....Which C Compiler is the BEST???
Post by: etm503 on August 16, 2008, 02:22:29 14:22
I also think that the answer depends on which compliler one started on.
I started on CCS and it has proved more than adequate for my needs. I sometimes look at hi-tech and mikroc to learn a thing or two from their examples.


Title: Re: CCS, HI-TechC, MikroC , MPLAB C.....Which C Compiler is the BEST???
Post by: alpha on August 16, 2008, 03:40:13 15:40
ccs,mikroc provides many built in libraries to control different types of peripherals


Title: Re: CCS, HI-TechC, MikroC , MPLAB C.....Which C Compiler is the BEST???
Post by: sunskier on August 18, 2008, 07:02:53 07:02
i think all of them are good.
The most important thing is ...Do you have friends who knew PIC C language.
When u have problems u can ask them.
If u can't find anyone to ask, try to find some things at microchip website.
I also prefer C18 , because u can find source code, application notes, C user guide, a lot things at there.
My friend uses MikroC. He say MikroC has a lot of lib,easy to use...etc.
So, up to u.


Title: Re: CCS, HI-TechC, MikroC , MPLAB C.....Which C Compiler is the BEST???
Post by: bilalkaraaslan on July 22, 2009, 09:28:08 09:28
you are new user so you can use CCS C or Mikro C. i think for profesional project you must use PICC18 or HI-Tech,IAR.


Title: Re: CCS, HI-TechC, MikroC , MPLAB C.....Which C Compiler is the BEST???
Post by: chyun3 on August 09, 2009, 04:38:24 04:38
Hi guys,

I'm the one that started this thread, hihi.

My first PIC compiler is CCS, this is the compile that provide many "encapsulate" function (mean you only knew how to call that function, but you cannot modify/access to the function).

After that in my new company, i start to use the Hi-Tech compiler. Everything from the register setting to function have start writen from scratch.

Then i realized something, it maybe easier to startup using CCS, however it is quit dangerous since we don't know how the build-in function is written. When there is a fault, we will be in a confusion state asking is that built-in function that cause the bug & we unable to check this.

So basically what my advise is..., for the beginner, if time isn't the constraint, use Hitech or C18...it may take longer time to master it, but it is worth.

Above is just my opinion


Title: Re: CCS, HI-TechC, MikroC , MPLAB C.....Which C Compiler is the BEST???
Post by: arash_tah on August 09, 2009, 05:10:14 05:10
MPLAB ir very original no bug and no limitation that's professional comppiler I strongly recomend you to use that


Title: Re: CCS, HI-TechC, MikroC , MPLAB C.....Which C Compiler is the BEST???
Post by: BharatSujanani on August 10, 2009, 01:14:52 13:14
I have used MPLAB c18 and Hitech pro pic 16, but as my experience MPLAB C18 is stable and more optimizer.
HItech is more unstable from one to next patch level update are giving very big difference after size of compiled code.

Therefore observing all issues MPLAB compilers are better choice.


Title: Re: CCS, HI-TechC, MikroC , MPLAB C.....Which C Compiler is the BEST???
Post by: chenyi.com on October 09, 2009, 03:57:12 15:57
ccs very good


Title: Re: CCS, HI-TechC, MikroC , MPLAB C.....Which C Compiler is the BEST???
Post by: preatorian on October 27, 2009, 05:34:07 17:34
Hi all,
That question sound to me like: "Which food is the best?" :) well, the common answear is ... depends on many things. If you are new in programming pics with C, I can advice you to start with CCS, then when you begin to find it "hard to deal with" move to microchip's compilers if you use 18F and above series, else move to HiTech.
Regards


Title: Re: CCS, HI-TechC, MikroC , MPLAB C.....Which C Compiler is the BEST???
Post by: medik on October 27, 2009, 10:19:16 22:19
Well, I have the  privilege to have used some C compilers mikroC and CCS C are good for beginners like me. I find microchip C18 unattractive and think it's difficult to learn (because I hadn't looked into it). I prefer mikroC to CCS C for the ease of LCD implementation.

Which ever you use often will definitely be your best.   


Title: Re: CCS, HI-TechC, MikroC , MPLAB C.....Which C Compiler is the BEST???
Post by: koky on March 25, 2014, 07:42:53 07:42
i have leave Mikroe vs Xc
i have buy original Mikroc and mikropro programmer
mikroprogrammer give always a lot of error
in the last is impossible to program 12F1840.
I have try program it with realice of mikrochip and go as a dream
Xc is little more complicated, but is the best investment


Title: Re: CCS, HI-TechC, MikroC , MPLAB C.....Which C Compiler is the BEST???
Post by: TucoRamirez on March 25, 2014, 09:06:37 09:06
mikroC to me is not giving me troubles yet, maybe some built in libs using more space than expected, but, it's my fault to be lazy sometimes...  i don't have the mikroprogrammer , i have my cheapo pickit3 clone and is working good , so i use mois of the time mikroC,  anyway, XC is the standard goodie for my serious stuff,


Title: Re: CCS, HI-TechC, MikroC , MPLAB C.....Which C Compiler is the BEST???
Post by: user77 on May 10, 2014, 10:43:49 22:43
I think if you are totally newbie the best compromise is CCS it very similar to C ansi and for me has a good compiler.
This it was my experience...


Title: Re: CCS, HI-TechC, MikroC , MPLAB C.....Which C Compiler is the BEST???
Post by: pickit2 on May 10, 2014, 11:56:19 23:56
I don't believe we are still having pissing contests, the best is the one you can use or spend time learning.


Title: Re: CCS, HI-TechC, MikroC , MPLAB C.....Which C Compiler is the BEST???
Post by: Vineyards on May 11, 2014, 12:51:07 00:51
I am a licensed user of MikroC and I can say as a compiler it is worth its salt. It comes with precompiled libraries which means you can't modify them or learn from them. You can just study the provided examples. This is of course  a serious limitation however that being said if you have the skill and knowledge you can always write your own libraries. IDE is a bit quirky, takes a long time to load, may behave differently from one OS to another. Once it is loaded however, it compiles code in a snap. It is not intended to be compatible with Proteus. On numerious occassions what worked in real hardware did not work in the simulator. It is especially so if software SPI etc is used.

CCS uses lots of macros to do hardware settings etc. I find that uninspiring. They say it is a good compiler but I haven't tried it extensively.
 


Title: Re: CCS, HI-TechC, MikroC , MPLAB C.....Which C Compiler is the BEST???
Post by: Nicolina1988 on August 23, 2014, 02:38:41 14:38
After reading this topic I am still not sure which one is the best and easy for beginners.
I am starting with CCS and it looks nice IDE, at least straight forward to install and run with !
Thank you.


Title: Re: CCS, HI-TechC, MikroC , MPLAB C.....Which C Compiler is the BEST???
Post by: metal on August 24, 2014, 06:28:51 06:28
u'r still young :- )

try 'em all and decide for urself..


Title: Re: CCS, HI-TechC, MikroC , MPLAB C.....Which C Compiler is the BEST???
Post by: jellybean442 on August 31, 2014, 07:42:15 19:42
u'r still young :- )

try 'em all and decide for urself..

Most, if not all, compilers have time-limited and/or feature-limited trial versions available. Some compilers require an email or message to get a trial key, but that's not a big deal. It's worthwhile to get the trial versions and play around with them before committing to purchase.

You may want to avoid downloading and installing all trials at once, since it will take a bit of time to get to know each particular compiler; therefore, make a list of compilers that you're interested in just go down the list as you try them out. Some trials expire based on the date of download, whereas others may expire based on installation date.

Also, don't forget to visit the company forums for each particular compiler, since you can get an idea of what kinds of issues you may run into with that compiler, and you can also see how quickly the company responds to bug fixes and feature requests.


Title: Re: CCS, HI-TechC, MikroC , MPLAB C.....Which C Compiler is the BEST???
Post by: CocaCola on September 01, 2014, 02:35:25 02:35
Also, don't forget to visit the company forums for each particular compiler, since you can get an idea of what kinds of issues you may run into with that compiler, and you can also see how quickly the company responds to bug fixes and feature requests.

In addition to bug, when you are a newbie if the compiler has a huge community driven forum you can garnish a TON of tricks, work arounds and basic source code to build upon...  While on the flip side if you are new and the compiler has no or a small user community you could be left learning mostly from trial, error or hoping their manuals are well written...


Title: Re: CCS, HI-TechC, MikroC , MPLAB C.....Which C Compiler is the BEST???
Post by: jcddcjjcd on September 30, 2014, 01:01:16 01:01
I switched from MPLAB to MPLABX when it came out and found it a revelation. I work daily in Android Studio, Visual Studio and MPLABX and find them all excellent. MPLABX being NetBeans is right up there with the others.  I waited to try XC8 until recently and after getting my head around what was needed to convert my code from C18 I found it very good.
The strangest things can cause it to crash however it offers good warnings. The thing is to not try too much at once so you can have a better idea of where problems arise.
Compared to C18 it is as if you are woking in a higher level compiler, not like C# but it does take care of a lot of details for you.
For example the automatic placement of variable is great, no more rom const just const. Also not having to manage the linker is very nice, its all automatic.
Code reduction is quite a bit better, I converted 10 projects and all showed improvement.
Another bonus it the automatic saving of variable when going into and out of interrupts. All projects showed an improvement in the time to get in and out.
All in all I feel I have moved ahead in making the switch.
What I found the most strange was that missing a header file include is often enough to crash the compiler without warning. Also yesterday I wanted to check something so I had a while(1){NOP()} to stop things just after getting into main and that also crashed the compiler.
I first tried coding in the CCI mode but found the constraints were making conversion from C18 too difficult.

I can't say which is the best out of all the compilers mentioned so far but I can say that moving to XC8 is well worth it.
Regards,
John.


Title: Re: CCS, HI-TechC, MikroC , MPLAB C.....Which C Compiler is the BEST???
Post by: Vineyards on September 30, 2014, 09:26:36 09:26
In my opinion the existence of multiple platforms to choose from is essentially good. One drawback however is having to master a new set of rules which should become obsolete in a matter of a few years. Presently, I code in MikroC and do the PC side in Visual Studio and C#. A friend of mine works with Delphi and works on the AVR platform. For any two users like us information exchange is minimal. Although we are doing similar things our worlds are alien to each other and we generally have no time to learn about from each other's experience. I already find Visual C# a sharp enough a deviation from my routine PIC coding experience.

I would prefer a microcontroller compiler to work as a module of one of the existing universal standard PC development environments. That is to say the IDE should ideally be the same. I also would like to remember the same rules for each environment. Presently there is no compiler doing that.



Posted on: September 30, 2014, 10:24:02 10:24 - Automerged

You may find me conservative but our world is a world of rules, methods and processes. Taking too much liberation is rarely good. That is why we still use those 8 bit processors sticking to the same topology as 30 years ago.


Title: Re: CCS, HI-TechC, MikroC , MPLAB C.....Which C Compiler is the BEST???
Post by: jartur on November 17, 2014, 10:28:31 10:28
I think, CCS is better with MPLAB Plug-ins and PICKIT 3 ;) is good for PIC12 PIC16 PIC18 with another family have some bugs


Title: Re: CCS, HI-TechC, MikroC , MPLAB C.....Which C Compiler is the BEST???
Post by: Magnox on November 17, 2014, 07:37:12 19:37
I'm pretty sure this thread should be renamed to "I want to increase my post count"

(which I've just done myself I suppose...)


Title: Re: CCS, HI-TechC, MikroC , MPLAB C.....Which C Compiler is the BEST???
Post by: pickit2 on November 18, 2014, 12:54:14 00:54
:) pissing contest is first thought...

Posted on: November 18, 2014, 01:52:13 01:52 - Automerged

opps I said this in the past...


Title: Re: CCS, HI-TechC, MikroC , MPLAB C.....Which C Compiler is the BEST???
Post by: TucoRamirez on November 18, 2014, 07:05:04 07:05
i never tried to "piss" with IAR-ewb for pic... any one of us did?


Title: Re: CCS, HI-TechC, MikroC , MPLAB C.....Which C Compiler is the BEST???
Post by: Vineyards on November 18, 2014, 02:03:16 14:03
What is this: an Inquisition Court?


Title: Re: CCS, HI-TechC, MikroC , MPLAB C.....Which C Compiler is the BEST???
Post by: fantomex on February 26, 2015, 12:07:17 12:07
For the longest time I've abandoned Hi-Tech C due to an old bug it had where the compiler had broken switch statements. It took me countless hours to find out that the compiled code was incorrect and I ragequit on H-T C. With microchip taking over and replacing C18 for XC8 I've started using the rebrand much to my satisfaction. I really like XC8 now, especially for PIC18 devices. My biggest problem with it now is indirect addressing on PIC16F.

Code:
*w++ = PORTA;
Compiles to only 22 instructions (in pro mode)!! On PIC18 it's just 5. Other than that I'm actually quite satisfied.

I've used CSS before but found it really dumb. Code like
Code:
#use rs232(baud=119200, bits=8, UART1, SYNC_SLAVE) 
just feels like glorified BASIC. Then again, built-in niceties just like these helped supernoob me to get some stuff working at least.