This document describes how to use the MPLAB XC8 C Compiler. The manual layout is as follows: • Chapter 1. Compiler Overview. And require a serial number to enable them. Free mode is available for unlicensed customers. The basic compiler operation, supported devices and available.
MPLAB ® XC Compiler Optimizations The optimizations found on MPLAB ® XC C Compilers provide code size reductions and speed enhancements that benefit your design projects. PRO license is available for designs that require maximum code reductions and best performance. The MPLAB ® XC C Compiler contains a free, 60-day trial of a PRO license for evaluation when activated.
MPLAB ® XC C Compiler Licenses – Go PRO Need to optimize your code size reduction or get better speed from your project’s software? PRO licenses are available to unlock the full potential of the MPLAB XC C compiler’s advanced-level optimizations. See our list of flexible licensing options in the Features section below. Dongle License The MPLAB ® XC Dongle License is a plug-and-play license that can be used interchangeably among workstations and users. These installation files update a previously installed compiler with information it needs to support more recent Microchip devices.
Part Support Patches • Will update new device-specific information: header files, linker scripts and memory configuration files. • Will not add new functionality or optimizations to your compiler • Will not provide corrections to the compiler's operation Part support patches allow for the selection of new devices not provided originally by the compiler, and use those devices' SFRs and other features in a project.
A part support patch is only needed when using a device that is not available in a compiler. Part-support patch file names include a corresponding compiler version number. If the patch file is used to update the corresponding compiler, then all added parts will work.
Installer Inseminator Sims 2. Part-support patches can be applied an older compiler, but not all devices added by the patch are guaranteed to work in the older compiler. Any support for new devices added by a part support patch will be incorporated into all subsequent compiler releases. Once an update to a more recent compiler version is completed, part support patches will no longer be needed for those devices.
For example, if version 1.30 part support patch is applied to version 1.30 compiler to use a new device, the device-specific information contained in the patch will already be present in the subsequent 1.31 compiler release. The compiler's release notes list new devices that it supports. Part-support patches have their own release notes, indicating all the devices the support. Part-support updates are available free of charge - no HPA is required. Questions • • • • • • • • • • • • • • Answers • How many machines can the MPLAB ® XC license be installed on? • The Workstation License can be installed on 3 machines for a single user. The license will support a MPLAB XC8, XC16, or XC32 compiler.
• The Network Server License runs from a server (one of the machines in the network) and can enable the PRO or STD mode of the compiler on multiple machines across different locations. TheNetwork license has two components, the network server and the network client. The network server can distribute the license files to one of the client machines connected to it. The network clients consist of the compilers, configured to check out the licenses from the license server.
• When a client connects to the server, it checks to see if a license is available. If so, it will claim the license and place a lock on it. While that lock is in place, no other clients can claim the license. The lock will automatically be released one hour after the 'locking' client last uses the license. Other network clients will need to wait that hour before they can claim and place a lock on the license.
There is no limit on the number of users that can install the Network Server License. • Site licenses run from a server and can be installed on multiple machines, similar to the network license. However, there is no one hour locking after a client last uses the license, instead the license is locked by the number of seats purchased. • A Subscription license can be installed on a workstation machine. A Subscription license allows one user per license and is available only in PRO mode edition. • The XC license can be installed on every major platform, including Linux, Windows, and Mac OS X 32-bit and 64-bit versions. If a virtual machine is required, an additional license will be needed, which can be purchased here:.
What are the minimum system requirements for installation of the MPLAB XC Compilers? Microsoft Windows 7 Professional/Windows 8/Windows 10 • Processor: 800 MHz Intel Pentium III or equivalent • Memory: 512 MB Ubuntu 9.10: • Processor: 800 MHz Intel Pentium III or equivalent • Memory: 512 MB Macintosh OS X 10.5 Intel: • Processor: Dual-Core Intel (32 or 64-bit) • Memory: 512 MB Other Configurations The compiler may also run on the various other Linux distributions such as Oracle Enterprise Linux 5, Ubuntu 8.x and 10.04, Red Hat Enterprise Linux and many others. • What are the different modes that the MPLAB XC Compiler offers? What are the typical optimization levels of the different modes of the compiler? Yes, MPLAB XC compilers can be operated in different modes: PRO, Standard** and Free*. The difference between these modes is: PRO Standard** Free* All devices and memory supported All devices and memory supported All devices and memory supported Optimized 50% better than Free Optimized 20-25% better than Free Minimal optimization Commercial use permitted Commercial use permitted Commercial use permitted *Free comes with a 60-day evaluation of the PRO compiler that can be turned on whenever you like.
**Standard mode compiler licenses are no longer sold. However, they are still supported. • How can I purchase a compiler? • Is it possible to reset my MPLAB ® XC Compiler license so that I can install it on other machines? Resetting an MPLAB XC Compiler License is not possible. A Workstation License can be installed on 3 machines.
If you wish to install it on more machines, it is recommended that you purchase another license. The key is tied to the MAC address of the computer. Therefore, you will be able to uninstall and re-install the installation with no issues on the same machine. However, if you have a problem with one of the machines the license is installed on, or need to upgrade that machine, contact for assistance. • How can I register my newly purchased MPLAB XC compiler license key?
If you purchased your license through Microchip Direct, the MPLAB XC activation key will automatically be registered to your Microchip Direct account. However, if you purchased through a distributor, you must create a mySoftware account at:. If you already have a Microchip Direct account, you will also have a mySoftware account. Use your Microchip Direct login credentials to access the account at www.microchip.com/mysoftware. If you do not have a Microchip Direct account, you will need to create a mysoftware account.
Once you are inside your mysoftware account, click on ‘Activate and Register MPLAB software’ listed as a link on the left side column of selections and follow the instructions to activate and register the license. • My HPA is not active. Can I upgrade to a newer release of my compiler? Please update your HPA to be able to upgrade to the PRO or STD mode of the latest MPLAB XC compilers, and to access new features and enhancements.To renew your HPA, please refer to the following link: Note: If your HPA is not active, you can still upgrade to the newer release of the compiler with only FREE mode optimizations (PRO and STD mode will not be available for use with the newer release if your HPA has ended).
You are also entitled to part support release of the compiler. The part support release consists of support files for the newer parts introduced with the newer compiler release and needs to be installed on top of your compiler installation. Keep in mind that these support files do not provide any new features or contain any additional compiler architectural enhancements that may be needed for new devices. • Can the compiler license be activated through a command line? No, command line activation is no longer supported. • Why am I encountering issues evaluating the licenses?
Evaluation mode provides PRO mode optimizations for 60 days and returns to Free mode optimizations after 60 days. If you are encountering issues using the evaluation license, please check the following: • Check the status of your evaluation MPLAB XC License by executing the command: xclm –demostat This command shows the number of days left on the Evaluation license. Evaluation licenses are valid up to 60 days and cannot be evaluated any further after this time frame. After the evaluation period, you may purchase a MPLAB XC compiler from MicrochipDirect or a distributor if you want to maintain the same PRO optimization features. The Evaluation license will return to Free Mode Optimizations if any of the following is attempted: • Modifying the system date or time after the installation of the license • Modifying the ‘.lic’ file and try to change its contents • Deleting the compiler license ‘.lic’ file and re-running the evaluation license • Downloading the evaluation license again from the Evaluation license page. • How can the MPLAB XC compilers be configured under the MPLAB X IDE?
To configure the XC compiler under MPLAB X IDE, install the IDE and the compiler. The compiler should be automatically configured under the MPLAB X IDE.
Here are steps to configure this. Download the IDE for your OS from the MPLAB X page “microchip.com/mplabx” and install the IDE. Download the compiler for your OS from the compiler page “microchip.com/compilers” and install the compiler. Open the IDE, and check the compilers under Tools >>Options >>Embedded >>Build Tools. The installed compiler will be shown under the ‘Tool-chain’ list.
If for some reason, the compiler is not shown under the ‘Tool-chain’ list, click on ‘Scan for Build Tools’, and this will scan your machine for installed tools, and add the scanned compilers to the ‘Tool-chain’ list. Alternatively you may add the compiler manually, by clicking on ‘Add’, and providing the path of ‘/bin’. Note that if the compiler is not installed in its default location, you may need to ‘Scan for Build Tools’ to have MPLAB X find the compiler. • • Can I perform off-line activation of the MPLAB XC compiler? Currently, there is no way to perform off-line activation on a demo (evaluation) version of the MPLAB XC compiler.
However, you can generate the license for the off-line machine using a machine that is on-line, then transferring this license to the off-line machine. Note down the HostID of the off-line machine (obtained by executing the command “xclm -hostinfo” on the off-line machine). The 'xclm' executable is located in the bin directory of the compiler directory.
Access the below link on an on-line machine, and follow the instructions on the link to obtain a license for the XC compiler: Copy this license to the off-line machine, under the folder (for a Windows machine): “C: ProgramData Microchip xclm license” and the compiler will be able to access the proper license to run in STD or PRO mode. For Linux and Apple OS X machines these are the paths where the license file should be copied: Linux:“/opt/microchip/xclm/license/” Apple OS X: “/Library/Application Support/Microchip/xclm/license/”.