XC8 PRO Compiler

Go To Last Post
12 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Here the other day I got a email from microchip about this:

MPLAB® XC8 PRO Compiler Reduces Code Size for

AVR® Devices

What is this actually? (I only care about the compiler it self not IDE etc.)

Is it based on GCC or ?

Does anyone use it ?

  

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

sparrow2 wrote:
Is it based on GCC ...
Yes with, IIRC, proprietary libraries.

sparrow2 wrote:
... or ?
MPLAB XC8 v2 for PIC is from LLVM.

sparrow2 wrote:
Does anyone use it ?
maybe Pro :

noinit section getting cleared by _do _clear_bss | AVR Freaks

 

edit :

https://www.avrfreaks.net/forum/come-join-us-mplab-now-supports-avrs?page=6#comment-2905431

edit2 :

open PDF

This compiler is an implementation of GCC version 5.4.0, binutils version 2.26, and uses avr-libc version 2.0.0.

 

"Dare to be naïve." - Buckminster Fuller

Last Edited: Fri. Jul 24, 2020 - 11:48 AM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 1

If it's same as it was like 10years ago with with xc8 compiler, the free version just added bloat to the binary so it got way bigger than it actually was and did not try to optimise anything. Then they sold the pro version which did not include bloat and it magically reduced the size by 50%, wonder why.

You probably can still find discussion about that somewhere, if they still do that I would not pay 1 cent for the pro version.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Dont worry, a lot has happened in 10 years wink

:: Morten

 

(yes, I work for Atmel, yes, I do this in my spare time, now stop sending PMs)

 

The postings on this site are my own and do not represent Microchip’s positions, strategies, or opinions.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 1

They still do it, so not much “progress” there.

 

 

(Possum Lodge oath) Quando omni flunkus, moritati.

"I thought growing old would take longer"

 

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

sparrow2 wrote:
Does anyone use it ?

All the people here, presumably ?

Top Tips:

  1. How to properly post source code - see: https://www.avrfreaks.net/comment... - also how to properly include images/pictures
  2. "Garbage" characters on a serial terminal are (almost?) invariably due to wrong baud rate - see: https://learn.sparkfun.com/tutorials/serial-communication
  3. Wrong baud rate is usually due to not running at the speed you thought; check by blinking a LED to see if you get the speed you expected
  4. Difference between a crystal, and a crystal oscillatorhttps://www.avrfreaks.net/comment...
  5. When your question is resolved, mark the solution: https://www.avrfreaks.net/comment...
  6. Beginner's "Getting Started" tips: https://www.avrfreaks.net/comment...
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

JoniS wrote:
... and did not try to optimise anything.
MPLAB XC8 for AVR has some optimization at zero price.

JoniS wrote:
You probably can still find discussion about that somewhere, ...
There's knowledge on MPLAB XC8 for PIC; 128KB USB PIC are at reasonable price that can be reduced by a factor of 2 for 32KB USB PIC (though smaller package)

JoniS wrote:
... I would not pay 1 cent for the pro version.
Likewise for proof-of-concept (bench test) and probably first prototype though would consider MPLAB XC8 Pro in a dongle form for further (beta test, initial production and so forth); there's a qualified functional safety MPLAB XC8.

 


https://www.avrfreaks.net/forum/come-join-us-mplab-now-supports-avrs?page=5#comment-2624586

XC3216/xc8-avr-info.txt at master · cv007/XC3216 · GitHub

Myths and legends of PIC microcontrollers | jaromir.sukuba | Hackaday.io

PIC18F97J94 - Microcontrollers and Processors

https://www.avrfreaks.net/forum/come-join-us-mplab-now-supports-avrs?page=6#comment-2834211

 

edit :

MPLAB® XC8 C Compiler Version 2.20 Release Notes for PIC® MCU

[go to 3.3. Version 2.05 for zero price optimization]

 

"Dare to be naïve." - Buckminster Fuller

Last Edited: Tue. Jul 28, 2020 - 12:49 AM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Ok I keep my WinAVR-20100110 in many cases that seem to be the best GCC for AVR (the only real problem I see is chips with more than 128k flash)

 

Add

And the 16 reg versions, that I never have used.

Last Edited: Mon. Jul 27, 2020 - 06:58 PM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 1

All I know is MPLAB is NetBeans, and AS7 is Microsoft Visual Studio. They both (IDE) have a lot of toolchains bolted on and take to much time to start (my computer boots faster than those things load). I would like them to stop messing with IDEs and just do the toolchain and debuggers as stand-alone programs that can be compiled to run on anything (Win, Mac, Lin, Containers, for x86 [32 and 64bit] and Arm [32 and 64] ). If I want to use NetBeans because I have learned how to set it up for other projects, I can also do so for Microchips toolchain. If I want to use VScode... well anyway, it all looks like a lot of wheel-spinning to me.

my projects: https://github.com/epccs

Debugging is harder than programming - don’t write code you can’t debug! https://www.avrfreaks.net/forum/help-it-doesnt-work

Last Edited: Tue. Jul 28, 2020 - 08:11 AM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

ron_sutherland wrote:
... and debuggers as stand-alone programs that can be compiled to run on anything (Win, Mac, Lin, Containers, for x86 [32 and 64bit] and Arm [32 and 64] ).
MDB is available.

Microchip Command-line Debugger

MDB Reference - Developer Help

MDB: The Microchip Debugger - Developer Help

MPLAB X SDK For MPLAB X IDE | opensource4pic

 

edit :

P.S.

Dockerfile for MPLAB X IDE/IPE and toolchains | Microchip

 

"Dare to be naïve." - Buckminster Fuller

Last Edited: Tue. Jul 28, 2020 - 12:37 AM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Wonder if they'd be happy i avr-gcc goes "down"

https://www.eevblog.com/forum/mi...

 

 

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

 

MDB is available.

Release Notes for MDB Command Line Interface

MPLAB® X IDE v5.40

 

May 14, 2020

...

 

4        Device Support

Currently, MDB supports only PIC devices. 

...

via http://ww1.microchip.com/downloads/en/DeviceDoc/mplabx-ide-release-notes-r1-v5.40.zip

 

"Dare to be naïve." - Buckminster Fuller