MPLAB® XC Compilers - Frequently Asked Questions (FAQs)


Questions

  1. What are the different types of licenses that I can purchase?
  2. How many machines can the MPLAB® XC license be installed on?
  3. Will I receive an upgrade to the MPLAB® XC compiler?
  4. How can I get the license key for MPLAB® XC Compiler?
  5. What are the different modes that the MPLAB® XC Compiler offers? What are the typical optimization levels of the different modes of the compiler?
  6. How can I purchase a compiler?
  7. Is it possible to reset my MPLAB® XC Compiler license so that I can install it on other machines?
  8. How do I upgrade and register my HPA for my HI-TECH C compiler?
  9. What happens to my HI-TECH HPA after I upgrade to MPLAB® XC8?
  10. I have the HI-TECH Enterprise edition for HI-TECH compilers. What licenses will I receive?
  11. I have the license for the MPLAB® compiler for PIC24 devices or dSPIC DSC devices. Will I receive a free upgrade to the MPLAB® XC16 compiler?
  12. How can I register my newly purchased MPLAB® XC compiler license key?
  13. How can I upgrade my HI-TECH Standard compiler to an MPLAB® XC8 PRO compiler?
  14. I have a Workstation License, but find I need a network server license. Is there a way to change my license type from Workstation License to Network Server License?
  15. If I purchase an MPLAB® XC Compiler, am I entitled to the older versions of the compiler?
  16. Can I install multiple compilers on the same machine?
  17. Can I install different versions of MPLAB® XC compiler on the same machine?
  18. My HPA is not active. Can I upgrade to a newer release of my compiler?
  19. Can you extend the evaluation period in my MPLAB® XC Free compiler so that I can evaluate the MPLAB® XC PRO compiler for an extended period?
  20. How can the license be activated through a command line?
  21. How can the compiler be activated offline, on a machine without internet connectivity, using the command line?
  22. Why am I encountering issues evaluating the licenses?
  23. How can the MPLAB® XC evaluation compiler be installed from the command line?
  24. Can the MPLAB® XC compilers work with the MPLAB® X IDE and the MPLAB® IDE?
  25. Can I perform off-line activation on a demo (evaluation) version of the MPLAB® XC compiler?

Answers

  1. What are the different types of licenses that I can purchase?

    • Workstation License: Single User MPLAB® XC license is a Workstation License that the user can install on 3 machines.
    • Network Server Licenses: Network or Network Server Licenses run from a server and can be shared between multiple users.

  2. How many machines can the MPLAB® XC license be installed on?

    • Workstation License:  This is a Workstation License that can be installed on 3 machines for a single user.
    • Network Server License runs from a server (one of the machines in the network) and can be installed in multiple machines across different locations. This Network license has 2 components–the network server and the network client. The network server holds the license server and the license files. Network clients consist of a license manager and a compiler that is 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 an hour after the "locking" client last uses the license.
        So 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.
    • The XC license can be installed on every major platform, including Linux, Windows, and Mac OS X 32-bit and 64-bit versions. 

    Minimum Configurations

    Microsoft Windows XP Professional SP3/Vista SP1/Windows 7 Professional:

    • Processor: 800MHz Intel Pentium III or equivalent
    • Memory: 512 MB
    • Disk space: 400 MB of free disk space

    Ubuntu 9.10:

    • Processor: 800MHz Intel Pentium III or equivalent
    • Memory: 512 MB
    • Disk space: 400 MB of free disk space

    Macintosh OS X 10.5 Intel:

    • Processor: Dual-Core Intel (32 or 64-bit)
    • Memory: 512 MB
    • Disk space: 400 MB of free disk space

    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.

  3. Will I receive an upgrade to the MPLAB® XC compiler?

    • If you hold a valid HPA for HI-TECH PIC C8, you will get an upgrade to an MPLAB® XC8 Standard Compiler or an MPLAB® XC8 PRO Compiler, depending on whether you had a HI-TECH Standard or HI-TECH PRO Compiler.
    • If you hold a valid HPA for HI-TECH PIC C18, you will get an upgrade to an MPLAB® XC8 Standard Compiler or an MPLAB XC8 PRO Compiler, depending on whether you had a HI-TECH PIC C18 Standard or HI-TECH PIC C18 PRO Compiler.
    • If you hold a valid HPA for HI-TECH DSPIC C you will get an upgrade to an MPLAB® XC16 Standard Compiler.
    • If you hold a valid HPA for HI-TECH PIC C32 you will get an upgrade to an MPLAB® XC32 Standard Compiler or MPLAB® XC32 PRO Compiler, depending on whether you had a PICC32 Standard or PRO Compiler.

    If you have the HI-TECH PIC C and the HI-TECH PIC C18 Compiler both with an active HPA, you will receive 2 licenses of the MPLAB® XC8 compiler. If you don’t have an active HPA, you will need to purchase it before you can upgrade to MPLAB® XC Compilers.

    If you own the license for an MPLAB® C compiler (C18, C30 and C32) you will get the respective MPLAB® XC compiler in PRO Mode as a complimentary upgrade.

    • MPLAB® C18 license holders will get a complimentary upgrade to MPLAB® XC8
    • MPLAB® C30 license holders will get a complimentary upgrade to MPLAB® XC16
    • MPLAB® C32 license holders will get a complimentary upgrade to MPLAB® XC32

  4. How can I get the license key for MPLAB® XC Compiler?

    Visit the Compiler Migration page and follow the instructions: Compiler Migration

  5. 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.

    PRO:
    • 50-60% smaller code than the Free  Edition
    • Execution speed much faster than Free Edition, a little faster than the Standard Edition
    • Includes an initial 12 months of High Priority Access (HPA) support
    • Allows for the use of the Standard and Free Compilers
    Standard:
    • 20-25% smaller code than the Free Edition
    • Execution speed much faster than the Free Edition
    • Allows for the use of the Free Compiler
    Free:
    • FREE Perpetual Free Compiler
    • Minimal level of optimization

    Commercial use is permitted for all the Compilers (PRO, Standard and Free), plus all device and memory products are supported by all the compilers (PRO, Standard and Free).

    To sum up:
    The PRO Code is 50% more optimized than the code generated in the Free compiler, and 20-30% more optimized than what is generated in the Standard compiler.  The optimization is in terms of efficient code generated and the reduction in code size.

  6. How can I purchase a compiler?

    Compilers can be purchased from one of Microchip’s distributers or from Microchip Direct at: www.microchipdirect.com

    • Search for “XC” or search on one of the part numbers below:
    Compiler Edition Part Number
    MPLAB® XC8 - PRO Compiler Network Server License SW006021-2N
    MPLAB® XC16 PRO Compiler Network Server License SW006022-2N
    MPLAB® XC32   PRO Compiler Network Server License SW006023-2N
    MPLAB® XC8   PRO Compiler Workstation License  SW006021-2
    MPLAB® XC16 PRO Compiler Workstation License SW006022-2
    MPLAB® XC32 PRO Compiler Workstation License SW006023-2
    MPLAB® XC8   Standard Compiler Network Server License SW006021-1N
    MPLAB® XC16 Standard Compiler Network Server License SW006022-1N
    MPLAB® XC32  Standard Compiler Network Server License SW006023-1N
    MPLAB® XC8   Standard Compiler Workstation License SW006021-1
    MPLAB® XC16 Standard Compiler Workstation License SW006022-1
    MPLAB® XC32 Standard Compiler Workstation License SW006023-1

    Each license comes bundled with a 1 Year HPA (High Priority Access).
    HPA entitles you to:

    • 12-month maintenance and support contract
    • New device support, compiler releases
    • New architecture support, compiler releases
    • Major version updates
    • Access to the latest Windows, Linux and OSX compatible versions of the compiler
    • Priority technical support

  7. 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.

  8. How do I upgrade and register my HPA for my HI-TECH C compiler?

    HI-TECH C compiler licenses should have an active HPA (High Priority Access) in order to be eligible to migrate to the new MPLAB® XC Compiler.
    You can renew your HPA through Microchip Direct.
    If you purchased the license through Microchip Direct, the MPLAB® XC activation key will automatically be registered to your Microchip Direct account.  If you purchased through a distributor, refer to this page to register your compiler on Microchip Direct: http://www.microchip.com/hpa

  9. What happens to my HI-TECH HPA after I upgrade to MPLAB® XC8?

    Once you upgrade and activate the MPLAB® XC Compiler, your HPA will reset for 12 more months of activation.
    As an example, if you purchased the HI-TECH HPA on January 1, 2012 and upgraded to MPLAB® XC8 on April 1, 2012, your HPA will automatically extend up to March 31, 2013 (12 months from the date of MPLAB® XC activation).  Note that your purchase of MPLAB® XC8 allows for one free year of HPA.

  10. I have the HI-TECH Enterprise edition for HI-TECH compilers. What licenses will I receive?

    If you hold the Enterprise Edition of the HI-TECH Compiler, you will receive different keys to activate the MPLAB® XC8, MPLAB® XC16 and MPLAB® XC32 compilers. These keys can be used to upgrade to the MPLAB® XC compilers provided your Enterprise Edition HPA is active.

    • MPLAB® PIC C or MPLAB PIC C18 licenses will be upgraded to the MPLAB® XC8
    • MPLAB® DSPIC C licenses will be upgraded to the MPLAB® XC16
    • MPLAB® PIC C32 license will be upgraded to the MPLAB® XC32

    The Enterprise License for the MPLAB® XC set of compilers will be called the MPLAB® XC Suite License. Suite Licenses will allow you to install all the compilers, MPLAB® XC8, MPLAB® XC16 and MPLAB® XC32 on your machines.

    You can purchase an HPA for the Enterprise Edition License from Microchip Direct.

  11. I have the license for the MPLAB® compiler for PIC24 devices or dSPIC DSC devices. Will I receive a free upgrade to the MPLAB® XC16 compiler?

    MPLAB® C30 Compiler had 3 variants as:

    • MPLAB® C Compiler for PIC24 MCUs (for PIC24 devices)
    • MPLAB® C Compiler for dsPIC DSCs (for dSPIC30 and dSPIC33 devices)
    • MPLAB® C Compiler for PIC24 MCUs and dsPIC DSCs (for PIC24, dsPIC30 and dsPIC33 devices)

    If you hold a license for any one of these you will get complimentary upgrade to and MPLAB® XC16 PRO Compiler.  The migration process exchanges one MPLAB® C serial number for one MPLAB® XC compiler license.

    As an example, if you hold the license for the MPLAB® C Compiler for PIC24 MCUs, you will get a complimentary upgrade to MPLAB® XC16 PRO compiler (for PIC24 MCUs and dsPIC DSCs).

  12. 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 make a Microchip Direct account (if you don’t already have one) and register your product.

  13. How can I upgrade my HI-TECH Standard compiler to an MPLAB® XC8 PRO compiler?

    If you have a license for a HI-TECH PIC C or PIC C18 Standard compiler and wish to upgrade to the MPLAB® XC8 PRO compiler, you need to buy an upgrade to PRO for the respective compiler.
    Refer to the www.microchipdirect.com website for the products to upgrade to PRO. 
    The upgraded MPLAB® XC PRO Compiler comes bundled with the HPA Support for 1 year.

    Customers with:

    Will need to have:

    To migrate to:

    HI-TECH C for PIC10/12/16 (Standard)

    SW500010-UPG

    XC8 PRO

    HI-TECH C for PIC18 (Standard)

    SW500007-UPG

    XC8 PRO

    The MPLAB® XC PRO License can then be used in PRO mode, Standard mode and Free mode from under the Compiler Build options.

  14. I have a Workstation License, but find I need a network server license. Is there a way to change my license type from Workstation License to Network Server License?

    Changing from a Workstation License to a Network Server License is possible.  Contact Software Licensing for more details at: swlicensing@microchip.com

  15. If I purchase an MPLAB® XC Compiler, am I entitled to the older versions of the compiler?

    If you hold the MPLAB® XC compiler license, you cannot install a non-MPLAB® XC compiler version (older version) with this MPLAB® XC compiler license.
    However, you can install the older compilers in the Free MPLAB® XC compiler by using the evaluation. No issues to your XC Compiler installation should be encountered as a result of this. Evaluation mode is a time-limited compiler installation, which will work like the MPLAB® XC PRO compiler for 45 or 60 days, and then revert to the MPLAB® XC Free compiler optimizations thereafter.

    Previous versions of the compiler are archived on the webpage: www.microchip.com/archives

  16. Can I install multiple compilers on the same machine?

    Yes, multiple compilers can be installed on the same machine.
    As an example, you can install the MPLAB® XC8, MPLAB® XC16 and MPLAB® XC32 all on the same machine.

  17. Can I install different versions of MPLAB® XC compiler on the same machine?

    Yes, you can install different versions of MPLAB® XC compiler on the same machine.  e.g. You can install MPLAB® XC16 v1.00 and XC16 v1.10 on the same machine.

  18. My HPA is not active. Can I upgrade to a newer release of my compiler?

    If your HPA is not active, you are only entitled to the new part support release of the compiler.
    You will get support only for new devices that are introduced with the newer version of the compiler.
    This version will not have the enhancements done to the compiler or new features added.  Please update your HPA to be able to upgrade to the MPLAB® XC compilers.

  19. Can you extend the evaluation period in my MPLAB® XC Free compiler so that I can evaluate the MPLAB® XC PRO compiler for an extended period?

    The evaluation period of the compiler cannot be extended. If you wish to maintain the same level of functionality, you can purchase an MPLAB® XC compiler from Microchip Direct or a distributor.

  20. How can the license be activated through a command line?

    The compiler can be activated from a command line using a valid MPLAB® XC license key.
    Follow the step by step guide to activate a Workstation License:    

    • Install the MPLAB® XC compiler in Free mode on the machine. “xclm” License Manager will also be installed when the MPLAB® XC compiler is installed using the GUI Installer (Section 2.1 “Install a free compiler” of “Installing MPLAB® XC C compilers”) .
    • Open command prompt on your machine.
    • To activate a license for a single machine (Workstation), run the command: xclm –actkey ”activation-key”
      • Where “activation-key” is the key that was provided to you at the time of the compiler purchase.
    • If “xclm” is not in your path and you get an error similar to “xclm” is not found or recognized as a command:
      • Navigate to the bin directory of the compiler that was just installed and retry step 3. Example: pushd “C:\Program Files\Microchip\xc32\v1.10\bin”

    To check the status of the installed license, and to ascertain if license is correctly installed, run the command: xclm –status

    Follow the step by step guide to activate a Network Server License:

    • Install the compiler in Free mode on the machine (server) which hosts the license. “XCLM License Manager” will also be installed when the MPLAB® XC compiler is installed using the GUI installer ( Section 2.1 “Install a free compiler” of “Installing MPLAB® XC C compilers”) .
    • Open command prompt on your machine.
    • Change to the directory of your “xclm” installation .
      • Example: pushd “C:\Program Files\Microchip\xclm\bin”.
    • Execute the command “xclm –hostinfo”.
      • This gives you the Host Id and the Host Name.
    • To activate the network license:
      • run the command: xclm         –actkey ”activation-key”      hostid= mac   hostname= host
      • Where:
        • activation-key is the key that was provided at the time of the compiler purchase
        • hostid is the MAC address of the machine that will host the activated license
        • hostname is the username of the machine that will host the activated network license

    To check the status of the installed license and to ascertain if the license is correctly installed, run the command: xclm –status

  21. How can the compiler be activated offline, on a machine without internet connectivity, using the command line?

    Both the Workstation License and Network Server Licenses can be activated offline from command line.
    The compilers can be activated offline on Windows, Mac and Linux machines.

    Offline Activation on a Windows operating system:
    Follow the step by step guide to activate a Workstation License offline:

    • Install the Compiler in Free mode on the offline machine, and the “xclm” License Manager will also be installed when the MPLAB® XC compiler is installed using the GUI installer.
    • Open a command prompt on your offline machine and change to the directory of your “xclm” installation . Example:  pushd “C:\Program Files\Microchip\xclm\bin”.
    • Execute the command “xclm    –hostinfo”.

    faq-1

      • This gives you the Host Id and the Host Name information of the offline machine.
    • Install the compiler in Free mode on the online machine.
    • Execute these commands on the online machine, using the  host Id information from the offline machine:  xclm    –actkey  ”activation-key”         hostid=mac           

    faq-2

      • This will create a license file in the online machine, under the folder “xclm\license”. This license file should be copied to the “xclm\license” folder of the offline machine to complete the offline activation.

    Follow the step by step guide to activate a Network Server License offline:

    1. Install the Compiler in Free mode on the offline machine, and the “xclm” License Manager will also be installed when the MPLAB® XC compiler is installed using the GUI installer.
    2. Open command prompt on your offline machine and change to the directory of your “xclm” installation . Example: pushd “C:\Program Files\Microchip\xclm\bin”
    3. Execute the command “xclm   –hostinfo”.

    faq-3

      1. This gives you the Host Id and the Host Name information of the offline machine.
    1. Install the Compiler in Free mode on the online machine.
    2. Execute these commands on the online machine, using hostid and hostname information from the offline machine: xclm            –actkey  ”activation-key”          hostid= mac          hostname= host

    faq-4

      • This will create a license file in the online machine, under the folder “xclm\license”. This license file should be copied to the “xclm\license” folder of the offline machine to complete the offline activation where:
        • Activation key is the key that was provided at the time of the compiler purchase.
        • Hostid is the MAC address of the machine that will host the activated license.
        • Hostname is the username of the machine that will host the activated Network Server License.

    Offline Activation on a Mac operating system:
    Follow the step by step guide to activate a Workstation License offline:

    1. Install the compiler in Free mode on the offline machine and the “xclm” License Manager will also be installed when the MPLAB® XC compiler is installed using the GUI installer.
    2. Open a command prompt on your offline machine and change to the directory of your “xclm” installation. Example: pushd “C:\Program Files\Microchip\xclm\bin”
    3. Execute the command “xclm    –hostinfo”.

    faq-5

    1. This gives you the Host Id and the Host Name information for the offline machine.
    2. Install the compiler in Free mode on the online machine.
    • Execute these commands on the online machine, using hostid information from the offline machine: xclm    –actkey  ”activation-key”         hostid=mac

    faq-6

      • This will create a license file in the online machine, under the folder “xclm\license”. This license file should be copied to the “xclm\license” folder of the offline machine to complete the offline activation.

    Follow the step by step guide to activate the a Network Server license offline:

    1. Install the Network Server License server in Free mode on the offline machine and the “xclm” License Manager will also be installed when the MPLAB® XC compiler is installed using the GUI installer.
    2. Open a command prompt on your offline machine and change to the directory of your “xclm” installation. Example: pushd “C:\Program Files\Microchip\xclm\bin”
    3. Execute the command “xclm   –hostinfo”.

    faq-7

    1. This gives you the Host Id and the Host Name information of the offline machine.
    2. Install the compiler in Free mode on the online machine.
    3. Execute these commands on the online machine, using hostid and hostname information from the offline machine: xclm –actkey ”activation-key” hostid= mac  hostname= host

    faq-8

      • This will create a license file in the online machine, under the folder “xclm\license”. This license file should be copied to the “xclm\license” folder of the offline machine to complete the offline activation where:
        • Activation key is the key that was provided at the time of the compiler purchase.
        • Hostid is the MAC address of the machine that will host the activated license.
        • Hostname is the username of the machine that will host the activated Network Server License.

    Offline activation on a Linux operating system:
    Follow the step by step guide to activate a Workstation License offline:

    1. Install the Compiler in Free mode on the offline machine and the “xclm” License Manager will also be installed when the MPLAB® XC compiler is installed using the GUI installer.
    2. Open a command prompt on your offline machine and change to the directory of your “xclm” installation. Example: pushd “C:\Program Files\Microchip\xclm\bin”
    3. Execute the command “xclm    –hostinfo”.

    faq-9

      1. This gives you the Host Id and the Host Name information of the offline machine.
    1. Install the compiler in Free mode on the online machine.
    2. Execute these commands on the online Machine, using hostid information from the offline machine: xclm  –actkey ”activation-key”         hostid=mac  

    faq-10

      • This will create a license file in the online machine, under the folder “xclm\license”. This license file should be copied to the “xclm\license” folder of the offline machine to complete the offline activation.

    Follow the step by step guide to activate a Network Server License offline:

    1. Install the Workstation License server in Free mode on the offline machine and the “xclm” License Manager will also be installed when the MPLAB® XC compiler is installed using the GUI installer.
    2. Open a command prompt on your offline Machine & change to the directory of your “xclm” installation. Example: pushd “C:\Program Files\Microchip\xclm\bin”
    3. Execute the command “xclm   –hostinfo”.

    faq-11

      1. This gives you the Host Id and the Host Name information for the offline machine.
    1. Install the compiler in Free mode on the online machine.
    2. Execute these commands on the online machine, using hostid and hostname information from the offline machine: xclm –actkey ”activation-key”   hostid= mac    hostname= host

    faq-12

      • This will create a license file in the online machine, under the folder “xclm\license”. This license file should be copied to the “xclm\license” folder of the offline machine to complete the offline activation where:
        • Activation key is the key that was provided at the time of the compiler purchase.
        • Hostid is the MAC address of the machine that will host the activated license.
        • Hostname is the username of the machine that will host the activated Network Server License
    • To check the status of the installed licenses, execute this command: xclm   –status

  22. Why am I encountering issues evaluating the licenses?

    Evaluation mode provides a highly optimized compiler for 60 days and reverts to Free mode optimizations after 60 days.  If you are encountering issues using the evaluation license, check the following:

    • If you have modified the system date or time after the installation of the license, the license will be deactivated or become a Free license.
    • If you modify the “*.lic” file and try to change its contents, the license will be deactivated.
    • Evaluation licenses will extend up to 60 days only and cannot be evaluated any further. At this time, you may purchase an MPLAB® PRO compiler if you want to maintain the same functionality.
    • Trying to delete the “*.lic” file and rerunning the evaluation will deactivate the license.
    • Re-running the “makedemo” option on the “xclm” utility will not extend the demo period and may result in the deactivation of the license.
    • The evaluation license can only be installed if the machine has internet connectivity.
    • Check the status of your evaluation MPLAB® XC License by executing the command: xclm –demostat                 <PRODUCT>
      • Where “<PRODUCT>” is XC8, XC16 or XC32.

  23. How can the MPLAB® XC evaluation compiler be installed from the command line?

    The evaluation license can be activated using the command line by executing: xclm     –makedemo         <PRODUCT>

    • Where, “<PRODUCT>” is XC8, XC16 or XC32

  24. Can the MPLAB® XC compilers work with the MPLAB® X IDE and the MPLAB® IDE?

    The MPLAB® XC compilers integrate well with the MPLAB® X IDE as well as the MPLAB® IDE. The MPLAB® X v1.20 onwards integrates well with the MPLAB® XC compiler and there is no need to install the plug-in separately.

  25. Can I perform off-line activation on a demo (evaluation) version 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.

MPLAB® XC Compilers TV