alien
Junior Member
Offline
Posts: 56
Thank You
-Given: 30
-Receive: 7
|
|
« on: August 29, 2022, 01:20:40 13:20 » |
|
Dear all , Have anyone here made an effort to compare between these two C compilers (latest versions) as mentioned in the subject line above (CC5x Vs XC8). As per my experience CC5x is the best c compiler (with a little extra learning curve) in terms of " Code optimisation " BUT at the same time CC5x supports limited complexity statements / expressions , one can not make complex single line statements/expressions in CC5x but will have to spit a complex statement/expression into few smaller simple statements (and may require some extra temporary variables) on the other hand C compilers like XC8 can support a good level of single line complex C statements BUT with optimisation levels which are far lower than CC5x . Also there seems to be not much interest in CC5x here in our beloved forum but on the other hand we have full fledge forum "pinned" threads on XC8 and several other C compilers . I think CC5x too deserves its space here .
|
|
« Last Edit: August 29, 2022, 01:33:55 13:33 by alien »
|
Logged
|
|
|
|
pickit2
Moderator
Hero Member
Offline
Posts: 4666
Thank You
-Given: 833
-Receive: 4319
There is no evidence that I muted SoNsIvRi
|
|
« Reply #1 on: August 29, 2022, 02:09:05 14:09 » |
|
Looking at the pinned topics CC5x is pinned.
|
|
« Last Edit: August 29, 2022, 02:15:17 14:15 by pickit2 »
|
Logged
|
Note: I stoped Muteing bad members OK I now put thier account in sleep mode
|
|
|
alien
Junior Member
Offline
Posts: 56
Thank You
-Given: 30
-Receive: 7
|
|
« Reply #2 on: August 29, 2022, 02:16:17 14:16 » |
|
Am I missing something ?
|
|
|
Logged
|
|
|
|
pickit2
Moderator
Hero Member
Offline
Posts: 4666
Thank You
-Given: 833
-Receive: 4319
There is no evidence that I muted SoNsIvRi
|
|
« Reply #3 on: August 29, 2022, 06:09:52 18:09 » |
|
Sorry I misread that as CCS 5x, but then if you search for CC5x there is only one post. so ask the mod O2 to Pin it. but I see no reason to pin it.
|
|
|
Logged
|
Note: I stoped Muteing bad members OK I now put thier account in sleep mode
|
|
|
alien
Junior Member
Offline
Posts: 56
Thank You
-Given: 30
-Receive: 7
|
|
« Reply #4 on: August 29, 2022, 08:53:05 20:53 » |
|
but then if you search for CC5x there is only one post.
This is the exact reason why I started this thread , as I can remember there was some work done on CC5x few years ago by one forum member " KCSOFT " and thereafter no one came up with any solution for CC5x . I believe that once someone do some serious work using CC5x and gets the feeling of versatility and efficiency this wonderful compiler offers then one will never look back at any other C compilers (except situations where some fancy readymade stuff like inbuilt libraries / wrapper functions etc are required ) .
|
|
|
Logged
|
|
|
|
pickit2
Moderator
Hero Member
Offline
Posts: 4666
Thank You
-Given: 833
-Receive: 4319
There is no evidence that I muted SoNsIvRi
|
|
« Reply #5 on: August 30, 2022, 12:41:44 00:41 » |
|
if members wanted CC5x then it would be an active topic. but I don't think it will ever get a sticky tab.
|
|
|
Logged
|
Note: I stoped Muteing bad members OK I now put thier account in sleep mode
|
|
|
sam_des
Senior Member
Offline
Posts: 256
Thank You
-Given: 128
-Receive: 151
|
|
« Reply #6 on: August 30, 2022, 06:39:35 06:39 » |
|
This is the exact reason why I started this thread , as I can remember there was some work done on CC5x few years ago by one forum member " KCSOFT " and thereafter no one came up with any solution for CC5x . I believe that once someone do some serious work using CC5x and gets the feeling of versatility and efficiency this wonderful compiler offers then one will never look back at any other C compilers (except situations where some fancy readymade stuff like inbuilt libraries / wrapper functions etc are required ) After using the RED edition by KCSOFT, I switched to CC5X completely. In fact I still have active licenses of both CC5X & CC8E, even though over the years I have switched to ARM. Its indeed a fantastic compiler once you get used to its quirks & not being ANSI compliant. Its stable, produces reliable code & its optimizations are better than even xc8 & far better than CCS. But you've to be aware of underlying architecture to take advantage of them. Of course lack of ready-made peripheral libraries pushes it down the user list. BTW, for anyone interested, license costs are way lower than other compilers & You get considerable discounts if you purchase multiple licenses simultaneously. sam_des
|
|
|
Logged
|
Never be afraid to do something new. Remember Amateurs built the Ark, Professionals built the Titanic !
|
|
|
Wilksey
Cracking Team
Senior Member
Offline
Posts: 413
Thank You
-Given: 161
-Receive: 2549
|
|
« Reply #7 on: August 30, 2022, 04:07:06 16:07 » |
|
Is the "Test" version the full version? Does anyone have a working copy, all links are dead in the original thread, would be interested to see what it does compared to XC8.
|
|
|
Logged
|
|
|
|
alien
Junior Member
Offline
Posts: 56
Thank You
-Given: 30
-Receive: 7
|
|
« Reply #8 on: August 30, 2022, 04:50:21 16:50 » |
|
Is the "Test" version the full version? Does anyone have a working copy, all links are dead in the original thread, would be interested to see what it does compared to XC8.
Yes the "Test version" is the full extended version with restriction which renders this as totally non productive for actual "production" . The ASM files labels generated are replaced with fixed text instead of the actual label names .Please refer attached image ..
|
|
|
Logged
|
|
|
|
tomywong
Active Member
Offline
Posts: 140
Thank You
-Given: 101
-Receive: 212
|
|
« Reply #9 on: August 30, 2022, 06:05:20 18:05 » |
|
Is the "Test" version the full version? Does anyone have a working copy, all links are dead in the original thread, would be interested to see what it does compared to XC8.
I've the red version if you need ? I will try to find it from my old HD. (It is very old v3.2N, but is full version)
|
|
|
Logged
|
|
|
|
Wilksey
Cracking Team
Senior Member
Offline
Posts: 413
Thank You
-Given: 161
-Receive: 2549
|
|
« Reply #10 on: August 30, 2022, 08:12:29 20:12 » |
|
Hi tommywong, yes please, just want to try it not too worried if it is a bit outdated, the latest is only 3.8 I think
|
|
|
Logged
|
|
|
|
alien
Junior Member
Offline
Posts: 56
Thank You
-Given: 30
-Receive: 7
|
|
« Reply #11 on: August 30, 2022, 09:25:55 21:25 » |
|
Hi tommywong, yes please, just want to try it not too worried if it is a bit outdated, the latest is only 3.8 I think
I am very much sure that even though that is very old version BUT you will be surprised to see that "old version" will still beat the latest XC8 in code speed/optimisation hands down (although I have never used this XC8 stuff but this is my gut feeling (after having observed for long on how CC5x compiles/generates the code )) .I would advice to read the compiler manual cover to cover many times ,then only you will be able to squeeze out the maximum juice out of CC5x .
|
|
|
Logged
|
|
|
|
Wilksey
Cracking Team
Senior Member
Offline
Posts: 413
Thank You
-Given: 161
-Receive: 2549
|
|
« Reply #12 on: August 30, 2022, 09:38:00 21:38 » |
|
alien, are you comparing it against XC8 pro or XC8 free? It also depends on how well it does compiling the code, I think I saw something that said it wasn't fully compliant, so we'll see.
|
|
|
Logged
|
|
|
|
alien
Junior Member
Offline
Posts: 56
Thank You
-Given: 30
-Receive: 7
|
|
« Reply #13 on: August 30, 2022, 09:51:36 21:51 » |
|
alien, are you comparing it against XC8 pro or XC8 free? XC8 pro hopefully It also depends on how well it does compiling the code, I think I saw something that said it wasn't fully compliant, so we'll see.
Yes as this is non ANSI compliant ( that's ok and acceptable on a weird architecture like Microchip Midrange )
|
|
|
Logged
|
|
|
|
tomywong
Active Member
Offline
Posts: 140
Thank You
-Given: 101
-Receive: 212
|
|
« Reply #14 on: August 31, 2022, 11:59:56 11:59 » |
|
Hi tommywong, yes please, just want to try it not too worried if it is a bit outdated, the latest is only 3.8 I think
Here it is. At the moment, I still using it. It compile the source to smallest hex file. Very good ! CC5X Test Edition don't generate hex file, instead it generate asm source file. But, because the labels not complete. You can not assemble the source file. Long time ago, KCSOFT cracked it. But I lose the file.
|
|
|
Logged
|
|
|
|
Wilksey
Cracking Team
Senior Member
Offline
Posts: 413
Thank You
-Given: 161
-Receive: 2549
|
|
« Reply #15 on: August 31, 2022, 02:08:13 14:08 » |
|
Oh does it not contain the patch?
Posted on: August 31, 2022, 01:39:37 13:39 - Automerged
This version doesn't generate ASM but does generate HEX?
|
|
|
Logged
|
|
|
|
tomywong
Active Member
Offline
Posts: 140
Thank You
-Given: 101
-Receive: 212
|
|
« Reply #16 on: August 31, 2022, 02:59:56 14:59 » |
|
Oh does it not contain the patch? No, the red version is something like full version. No need to patch. Posted on: August 31, 2022, 01:39:37 13:39 - Automerged
This version doesn't generate ASM but does generate HEX?
For red version, you can try from command line : cc5x -L sample1.c It will generate lst, hex and occ files. For v3.8 test version, try : cc5x -L sample1.c it will generate asm, lst, occ files. You can compare the lst file from red version and asm file from v3.8 test version. All label will be M000, so, it can not compile.
|
|
« Last Edit: August 31, 2022, 03:59:01 15:59 by tomywong »
|
Logged
|
|
|
|
Wilksey
Cracking Team
Senior Member
Offline
Posts: 413
Thank You
-Given: 161
-Receive: 2549
|
|
« Reply #17 on: August 31, 2022, 03:56:10 15:56 » |
|
Oh I see, so the latest 3.8 CAN output hex?
|
|
|
Logged
|
|
|
|
tomywong
Active Member
Offline
Posts: 140
Thank You
-Given: 101
-Receive: 212
|
|
« Reply #18 on: August 31, 2022, 04:01:04 16:01 » |
|
Oh I see, so the latest 3.8 CAN output hex?
Sorry, my mistake, v3.8 test version can not generate hex file. v3.8 free version can generate hex but it is not full optimization.
|
|
|
Logged
|
|
|
|
Wilksey
Cracking Team
Senior Member
Offline
Posts: 413
Thank You
-Given: 161
-Receive: 2549
|
|
« Reply #19 on: August 31, 2022, 11:25:03 23:25 » |
|
Do you have the original 3.2N package?
|
|
|
Logged
|
|
|
|
tomywong
Active Member
Offline
Posts: 140
Thank You
-Given: 101
-Receive: 212
|
|
« Reply #20 on: September 01, 2022, 01:10:21 01:10 » |
|
Do you have the original 3.2N package?
No, sorry. Maybe you can ask user KCSOFT for orginal/cracked test version.
|
|
|
Logged
|
|
|
|
Wilksey
Cracking Team
Senior Member
Offline
Posts: 413
Thank You
-Given: 161
-Receive: 2549
|
|
« Reply #21 on: September 01, 2022, 03:08:58 03:08 » |
|
No, sorry. Maybe you can ask user KCSOFT for orginal/cracked test version.
Nice idea but they were last active 2016, so I doubt i'll get a reply! Do you know what the "RED" edition is? Is it the "test" version patched for outputting hex and incrementing the labels or have they changed the test version to disable HEX output on the later revisions?
|
|
|
Logged
|
|
|
|
sam_des
Senior Member
Offline
Posts: 256
Thank You
-Given: 128
-Receive: 151
|
|
« Reply #22 on: September 01, 2022, 05:58:43 05:58 » |
|
Hi, CC5X Editions: - Free : 32k Flash Supported, But some/all optimizations disabled, No Support for 24/32-BIT integer, 16/32-BIT Floating Point, 16/24/32-BIT Fixed Point, Limited support for Enhanced Core, Generates final HEX & all other files.
- Test: Everything supported as per Standard License, No HEX file generated, ASM file generated but can't be assembled to generate HEX file.
- RED: Everything supported as per Standard License except,only up to 8k Flash, only 16-BIT integer & 24-BIT Floating Point math supported. Most optimizations are available & generates final HEX file. No support for Enhanced Core as its quite old from 2006.
This 3.2N RED edition might be was for some special edition for some particular client or released as demo with limits, but its official as per documentation & EXE file clearly indicates. Also RED is not available publicly from CC5X website which offers only STANDARD & EXTENDED licenses. Hope this helps. sam_des
|
|
« Last Edit: September 01, 2022, 06:04:23 06:04 by sam_des »
|
Logged
|
Never be afraid to do something new. Remember Amateurs built the Ark, Professionals built the Titanic !
|
|
|
Wilksey
Cracking Team
Senior Member
Offline
Posts: 413
Thank You
-Given: 161
-Receive: 2549
|
|
« Reply #23 on: September 01, 2022, 10:33:16 10:33 » |
|
sam_des thanks, so no hope of getting a later RED version in that case? It says when you obtain a license they give you a txt file, but I presume they also send you a "full" exe?
|
|
|
Logged
|
|
|
|
sam_des
Senior Member
Offline
Posts: 256
Thank You
-Given: 128
-Receive: 151
|
|
« Reply #24 on: September 01, 2022, 02:30:43 14:30 » |
|
so no hope of getting a later RED version in that case? Most Probably no. It says when you obtain a license they give you a txt file, but I presume they also send you a "full" exe Yes. EXE for Licensed Setup is different from Free/Test edition setups. sam_des
|
|
|
Logged
|
Never be afraid to do something new. Remember Amateurs built the Ark, Professionals built the Titanic !
|
|
|
|