• AVR Freaks

AnsweredHot![Answered] XC8 free version versus pro version ANSWERED

Page: 123 > Showing page 1 of 3
Author
MOHAEGY
Starting Member
  • Total Posts : 55
  • Reward points : 0
  • Joined: 2020/05/27 11:33:24
  • Location: 0
  • Status: offline
2020/06/16 00:40:27 (permalink)
0

[Answered] XC8 free version versus pro version ANSWERED

When i use XC8 free version with the optimization feature disabled in this case its OK or i must pay for pro version 
with another words what is the limitations in XC8 free version 
NOTE:/ My project is a productive not student project
 
Thanks 
post edited by MOHAEGY - 2020/06/16 16:09:59
#1
JPortici
Super Member
  • Total Posts : 1091
  • Reward points : 0
  • Joined: 2012/11/17 06:27:45
  • Location: Grappaland
  • Status: online
Re: XC8 free version versus pro version 2020/06/16 00:49:32 (permalink)
+2 (2)
WHICH version of XC8?
since 2.10 you have -O0, -O1 and -O2 for free. -O3 and -Os are paid
 
ARE YOU SURE you need paid optimizations?
optimizations are always nice (and should be given for free IMHO, microchip's job is to sell silicon. I will happily pay for certified compilers, though) but may not be necessary. I've written a lot of "productive" programs without optimizations enabled.
this is just me, but i always enable -O1 and not higher, because debugging can get more difficult, usually if i need better performance in specific parts of the program, those parts will be written in assembly
#2
MOHAEGY
Starting Member
  • Total Posts : 55
  • Reward points : 0
  • Joined: 2020/05/27 11:33:24
  • Location: 0
  • Status: offline
Re: XC8 free version versus pro version 2020/06/16 01:28:11 (permalink)
0
I use MBLAB X IDE V5.3 with XC8 V2.10
Thanks Jportici for useful replay But what about "address qualifiers" option which option you use and why?
 
 
#3
LamdaElectronics
Assembly_For_Ever
  • Total Posts : 81
  • Reward points : 0
  • Joined: 2010/07/23 04:04:41
  • Location: Hellas-Greece
  • Status: offline
Re: XC8 free version versus pro version 2020/06/16 01:51:50 (permalink)
-1 (1)
I always REMOVE the optimization. Since your project is for a commercial use, I'm suggesting you to do the same. 
The hidden bugs are always behind these optimizations. Unless your project is time depending, in this case you should use Assembly, but where can find a decent Assembler??
#4
ric
Super Member
  • Total Posts : 27652
  • Reward points : 0
  • Joined: 2003/11/07 12:41:26
  • Location: Australia, Melbourne
  • Status: offline
Re: XC8 free version versus pro version 2020/06/16 02:03:17 (permalink)
+3 (3)
Robotics011
Thanks Jportici for useful replay But what about "address qualifiers" option which option you use and why?

That controls if the compiler obeys any qualifiers you use to force which ram bank is used for specific variables.
It's a little used option, and usually doesn't matter.

I also post at: PicForum
Links to useful PIC information: http://picforum.ric323.co...opic.php?f=59&t=15
NEW USERS: Posting images, links and code - workaround for restrictions.
To get a useful answer, always state which PIC you are using!
#5
JPortici
Super Member
  • Total Posts : 1091
  • Reward points : 0
  • Joined: 2012/11/17 06:27:45
  • Location: Grappaland
  • Status: online
Re: XC8 free version versus pro version 2020/06/16 02:07:10 (permalink)
+4 (4)
I honestly haven't found many compiler bugs in my life. In my experience failing to write good C (or writing C without knowing C or how compiler works) usually result in "bugs" introduced by optimizations.
This applies to all languages of course.
 
about address qualifiers, i leave the default one. I can still place data and const at absolute addresses and if i need data to be contigous i use structures.
according to the compiler manual (read it! it's really well written) that options applies to the __BANK(n) __FAR and __NEAR directives, never used them so i don't care.
#6
ric
Super Member
  • Total Posts : 27652
  • Reward points : 0
  • Joined: 2003/11/07 12:41:26
  • Location: Australia, Melbourne
  • Status: offline
Re: XC8 free version versus pro version 2020/06/16 02:11:13 (permalink)
+6 (6)
lamdaelectronics
I always REMOVE the optimization. Since your project is for a commercial use, I'm suggesting you to do the same. 
The hidden bugs are always behind these optimizations.

99 times out of 100, if enabling optimisation causes misbeviour, it's due to a bug in your code, making invalid assumptions.
 

I also post at: PicForum
Links to useful PIC information: http://picforum.ric323.co...opic.php?f=59&t=15
NEW USERS: Posting images, links and code - workaround for restrictions.
To get a useful answer, always state which PIC you are using!
#7
MOHAEGY
Starting Member
  • Total Posts : 55
  • Reward points : 0
  • Joined: 2020/05/27 11:33:24
  • Location: 0
  • Status: offline
Re: XC8 free version versus pro version 2020/06/16 02:25:35 (permalink)
0
Thanks to all its clear now and we can test the behavior of our project by build our program with optimization is disabled and test it then built our project with optimization is enabled and test it by this way we can  determined if we have BUGS  produced from our code or from compiler optimization 
am wright?
 
#8
ric
Super Member
  • Total Posts : 27652
  • Reward points : 0
  • Joined: 2003/11/07 12:41:26
  • Location: Australia, Melbourne
  • Status: offline
Re: XC8 free version versus pro version 2020/06/16 02:27:22 (permalink)
+3 (3)
Not necessarily. Some of your bugs may not show up with optimisation off.
 

I also post at: PicForum
Links to useful PIC information: http://picforum.ric323.co...opic.php?f=59&t=15
NEW USERS: Posting images, links and code - workaround for restrictions.
To get a useful answer, always state which PIC you are using!
#9
MOHAEGY
Starting Member
  • Total Posts : 55
  • Reward points : 0
  • Joined: 2020/05/27 11:33:24
  • Location: 0
  • Status: offline
Re: XC8 free version versus pro version 2020/06/16 02:28:09 (permalink)
0
A bout FREE or PRO version Iam confused now if so, why PRO version is =2000$ if the free version didn't have limitations
 
#10
ric
Super Member
  • Total Posts : 27652
  • Reward points : 0
  • Joined: 2003/11/07 12:41:26
  • Location: Australia, Melbourne
  • Status: offline
Re: XC8 free version versus pro version 2020/06/16 02:34:26 (permalink) ☼ Best Answerby MOHAEGY 2020/06/16 04:44:59
+3 (3)
The free version doesn't allow the highest optimisation levels. That is what you pay for.
 

I also post at: PicForum
Links to useful PIC information: http://picforum.ric323.co...opic.php?f=59&t=15
NEW USERS: Posting images, links and code - workaround for restrictions.
To get a useful answer, always state which PIC you are using!
#11
MOHAEGY
Starting Member
  • Total Posts : 55
  • Reward points : 0
  • Joined: 2020/05/27 11:33:24
  • Location: 0
  • Status: offline
Re: XC8 free version versus pro version 2020/06/16 02:51:19 (permalink)
0
OK thanks RIC 
"optimization goes to hell" the good programmer must optimize his code with him self 
 
#12
WeHongKongers
Super Member
  • Total Posts : 227
  • Reward points : 0
  • Status: offline
Re: XC8 free version versus pro version 2020/06/16 02:52:22 (permalink) ☄ Helpfulby MOHAEGY 2020/06/16 03:12:37
+1 (1)
Robotics011
When i use XC8 free version with the optimization feature disabled in this case its OK or i must pay for pro version 
with another words what is the limitations in XC8 free version 
NOTE:/ My project is a productive not student project
 Thanks 



You may claim a 30 days trial.
 
Free versiion: optimization level 0 to 2
Paid version: extra optimisation level 3 and s.
#13
MOHAEGY
Starting Member
  • Total Posts : 55
  • Reward points : 0
  • Joined: 2020/05/27 11:33:24
  • Location: 0
  • Status: offline
Re: XC8 free version versus pro version 2020/06/16 02:59:17 (permalink)
0
I see the paid version is very expensive MICROCHIP may be go to be a software developer too
hahaha
 
 
#14
MOHAEGY
Starting Member
  • Total Posts : 55
  • Reward points : 0
  • Joined: 2020/05/27 11:33:24
  • Location: 0
  • Status: offline
Re: XC8 free version versus pro version 2020/06/16 03:11:49 (permalink)
-1 (1)
THANKS to all 
 
#15
crosland
Super Member
  • Total Posts : 1989
  • Reward points : 0
  • Joined: 2005/05/10 10:55:05
  • Location: Warks, UK
  • Status: offline
Re: XC8 free version versus pro version 2020/06/16 03:14:06 (permalink)
+1 (1)
lamdaelectronics
The hidden bugs are always behind these optimizations. Unless your project is time depending, in this case you should use Assembly, but where can find a decent Assembler??

It's almost always (9.9%) hidden bugs in the code, not the compiler.
 
Why would you use buggy code in the hope that the bugs NEVER show without optimization?
 
Far better to build with optimization and fix the bugs.
#16
Hen
Junior Member
  • Total Posts : 69
  • Reward points : 0
  • Joined: 2018/10/24 04:01:44
  • Location: 0
  • Status: offline
Re: XC8 free version versus pro version 2020/06/16 03:16:31 (permalink)
+2 (2)
Cost is relative.
2000$ is no big deal if it get you high return on investment.
 
BTW, bugs are free in free versions and not in commercial versions.
#17
ric
Super Member
  • Total Posts : 27652
  • Reward points : 0
  • Joined: 2003/11/07 12:41:26
  • Location: Australia, Melbourne
  • Status: offline
Re: XC8 free version versus pro version 2020/06/16 03:27:19 (permalink)
+2 (2)
Plus you can hire the pro version for about $30 a month, so you can develop in the free one, and do your final testing/build on the PRO version for a fairly modest cost.

I also post at: PicForum
Links to useful PIC information: http://picforum.ric323.co...opic.php?f=59&t=15
NEW USERS: Posting images, links and code - workaround for restrictions.
To get a useful answer, always state which PIC you are using!
#18
RISC
Super Member
  • Total Posts : 5757
  • Reward points : 0
  • Status: offline
Re: XC8 free version versus pro version 2020/06/16 03:37:56 (permalink)
+2 (2)
Hi,
 
The choice to use or not the PRO version of XC8 compiler can be made easily depending upon the volume you will produce :
 
Example 1 : Your quantity is 1Ku
Let take the example where if you use free version you can fit your program into PIC18F46K42 (64K) and if you use PRO version it fits into PIC18F45K42 (32K).
PIC18F45K42T-I/MV / 1Ku on microchipdirect : $1.37
PIC18F46K42T-I/MV / 1Ku on microchipdirect : $1.26
For 1Ku you will save 0.11$ x 1Ku = 110$ => use of PRO compiler does not make sense...
 
Example 2 : your quantity is 500 Ku
PIC18F45K42T-I/MV assume price is as a guess $1.08
PIC18F46K42T-I/MV assume price is as a guess $1.00
For 500Ku you will save 0.08$ x 500Ku = 40K$....against 1100$ for workstation PRO version...maybe a good reason to buy the PRO version...Smile: Smile
 
Another reason to buy PRO version is that you need to optimize execution speed...but in general when this happens you should start looking at a more powerful device...
 
Other possibility, you buy the monthly license of PRO version (you can stop at any time) cost is 29.95$ / month 
 
So it really depends on your business case...
 
Regards
 
 
#19
MOHAEGY
Starting Member
  • Total Posts : 55
  • Reward points : 0
  • Joined: 2020/05/27 11:33:24
  • Location: 0
  • Status: offline
Re: XC8 free version versus pro version 2020/06/16 03:38:24 (permalink)
0
RIC, OK i totally agree with your suggestion we can make our project under free version and in the final stage we can pay for one month(30$)  to finalize our project under PRO version 
 Am wright?
#20
Page: 123 > Showing page 1 of 3
Jump to:
© 2020 APG vNext Commercial Version 4.5