Hi Guys,
Here some results from my experiences with using different XC8 compilers.
At this moment i'm working on a small PIC project. At this moment it is using up to 95% of it's programm space with the standard Flowcode XC8 compiler. I also need to put in a bootloader, so i needed a compiler with more performance.
I licensed this week a XC8-Pro license from MicrosoftDirect.
I installed this XC8 (V2.10) compiler and the license .
It took a while to get it running in FC but with the help of the Matrix FC8 forum i managed.
After compiling of the project i was disappointed about the result. I gained 10%. Went from 95 to 84%.
As you compile with the standard compiler you get the message that a Pro compiler is more productive in speed and in used space.
Now the interesting bit...
I switched back to the standard Flowcode compiler and compiled the project again.
To my suprise i get a result of 65% used programm space!
Wow, this is where i'm looking for but how has this become while earlier the same compiler did 95%..
As you can see in the printout below, the standard FC compiler behaves like a pro compiler with license.
I checked the License type online and "Node Configuration" means a standalone license.
Don't ask how this has become like this...
-----------------------------------------------------------------------------------------------------------------------------------------------------
https://www.matrixtsl.com
Launching the compiler...
C:\Program Files (x86)\Flowcode\Common\Compilers\pic\bin\xc8.exe --CHIP=16F18857 "V13_20191227.c"
Microchip MPLAB XC8 C Compiler (PRO Mode) V1.45
Build date: Nov 15 2017
Part Support Version: 1.45
Copyright (C) 2017 Microchip Technology Inc.
License type: Node Configuration
Memory Summary:
Program space used 5403h ( 21507) of 8000h words ( 65.6%)
Data space used 2F7h ( 759) of FF0h bytes ( 18.6%)
EEPROM space used 0h ( 0) of 100h bytes ( 0.0%)
Data stack space used 0h ( 0) of CF0h bytes ( 0.0%)
Configuration bits used 5h ( 5) of 5h words (100.0%)
ID Location space used 0h ( 0) of 4h bytes ( 0.0%)
Launching the linker/assembler...
C:\Program Files (x86)\Flowcode v8\tools\DoNothing\DoNothing.exe
FINISHED
-----------------------------------------------------------------------------------------------------------------------------------------------------
These are the results with the latest XC8 compiler V2.10:
-----------------------------------------------------------------------------------------------------------------------------------------------------
https://www.matrixtsl.com
Launching the compiler...
C:\Program Files (x86)\Microchip\xc8\v2.10\bin\xc8.exe --CHIP=16F18857 "V13_20191227.c"
C:\PROGRA~2\MICROC~1\xc8\v2.10\pic\bin\picc --CHIP=16F18857 V13_20191227.c
Microchip MPLAB XC8 C Compiler V2.10
Build date: Jul 30 2019
Part Support Version: 2.10
Copyright (C) 2019 Microchip Technology Inc.
License type: Node Configuration
Memory Summary:
Program space used 6BE5h ( 27621) of 8000h words ( 84.3%)
Data space used 322h ( 802) of 1000h bytes ( 19.6%)
EEPROM space used 0h ( 0) of 100h bytes ( 0.0%)
Data stack space used 0h ( 0) of CDCh bytes ( 0.0%)
Configuration bits used 5h ( 5) of 5h words (100.0%)
ID Location space used 0h ( 0) of 4h bytes ( 0.0%)
Launching the linker/assembler...
C:\Program Files (x86)\Flowcode v8\tools\DoNothing\DoNothing.exe
FINISHED
-----------------------------------------------------------------------------------------------------------------------------------------------------
So, an interesting experience with an unexpected result. I keep the license but using the FC standard compiler. Weird..
FC people:
I took me some time to find out how to configer all compiler settings.
My advice to update the "Managing Compiler Options" in the help option with usefull examples.