Microchip Technology XC8 Standard Compiler (Workstation) SW006021-1 SW006021-1 ユーザーズマニュアル

製品コード
SW006021-1
ページ / 518
MPLAB
®
 XC8 C COMPILER
USER’S GUIDE
 2012 Microchip Technology Inc.
DS52053B-page 41
Chapter 3.  How To’s
3.1
INTRODUCTION
This section contains help and references for situations that are frequently encountered 
when building projects for Microchip 8-bit devices. Click the links at the beginning of 
each section to assist finding the topic relevant to your question. Some topics are 
indexed in multiple sections.
Start here:
3.2
INSTALLING AND ACTIVATING THE COMPILER
This section details questions that might arise when installing or activating the compiler.
3.2.1
How Do I Install and Activate My Compiler?
Installation and activation of the license are performed simultaneously by the XC com-
piler installer. The guide Installing and Licensing MPLAB XC C Compilers (DS52059) 
is available on www.microchip.com. It provides details on single-user and network 
licenses, as well as how to activate a compiler for evaluation purposes.
3.2.2
How Can I Tell if the Compiler has Activated Successfully?
If you think the compiler may not have installed correctly or is not working, it is best to 
verify its operation outside of MPLAB IDE to isolate possible problems. Try running the 
compiler from the command line to check for correct operation. You do not actually 
have to compile code.
From your terminal or DOS-prompt, run the compiler driver xc8 (see Section 4.2 
“Invoking the Compiler”
)
 with the option --VER. This option instructs the compiler to 
print version information and exit. So, under Windows, for example, type the following 
line, replacing the path information with a path that is relevant to your installation.
"C:\Program Files\Microchip\xc8\v1.00\bin\xc8" --ver
The compiler should run, print an informative banner and quit. That banner indicates 
the operating mode. Confirm that the operating mode is the one you requested. Note: 
if it is not activated properly, the compiler will continue to operate, but only in the Free 
mode. If an error is displayed, or the compiler indicates Free mode, then activation was 
not successful.