Jump to main content
MPLAB® XC32 C/C++ Compiler User's Guide for PIC32C/SAM MCUs
MPLAB® XC32 C/C++ Compiler User's Guide for PIC32C/SAM MCUs
  1. Home
  2. 3 How To's
  3. 3.2 Invoking the Compiler
  4. 3.2.1 How Do I Compile from Within a Microchip IDE?
Previous | Next
  • Notice to Development Tools Customers
  • 1 Preface
  • 2 Compiler Overview
  • 3 How To's
    • 3.1 Installing the Compiler
    • 3.2 Invoking the Compiler
      • 3.2.1 How Do I Compile from Within a Microchip IDE?
      • 3.2.2 How Do I Compile on the Command-line?
      • 3.2.3 How Do I Compile Using a Make Utility?
      • 3.2.4 How Can I Select Which Compiler I Want to Build With?
      • 3.2.5 How Do I Build Libraries?
      • 3.2.6 How Do I Know What Compiler Options Are Available and What They Do?
      • 3.2.7 How Do I Know What the Build Options in Microchip IDEs Do?
      • 3.2.8 What is Different About an MPLAB X IDE Debug Build?
    • 3.3 Writing Source Code
    • 3.4 Getting My Application To Do What I Want
    • 3.5 Understanding the Compilation Process
    • 3.6 Fixing Code That Does Not Work
  • 4 IDE Integration
  • 5 MPLAB X IDE and VS Code Option Equivalents
  • 6 Command-line Driver
  • 7 C Standard Issues
  • 8 Device-Related Features
  • 9 Supported Data Types and Variables
  • 10 Memory Allocation and Access
  • 11 Chip-Level Security and Arm® TrustZone® Technology
  • 12 Floating-point Support
  • 13 Fixed-Point Arithmetic Support
  • 14 Operators and Statements
  • 15 Register Usage
  • 16 Stack
  • 17 Functions
  • 18 Interrupts
  • 19 Main, Runtime Start-up and Reset
  • 20 Libraries
  • 21 Mixing C/C++ and Assembly Language
  • 22 Optimizations
  • 23 Preprocessing
  • 24 Linking Programs
  • 25 Implementation-Defined Behavior
  • 26 C++ Implementation-Defined Behavior
  • 27 Built-in Functions
  • 28 Document Revision History
  • Microchip Information

3.2.1 How Do I Compile from Within a Microchip IDE?

See the MPLAB® X IDE User’s Guide for detailed information on how to create and configure an MPLAB X IDE project. For assistance with the MPLAB extensions for VS Code, see developerhelp.microchip.com/xwiki/bin/view/software-tools/ides/extensions/.

For information on compiler options within the IDE, see IDE Integration.

DS-50002895H

The online versions of the documents are provided as a courtesy. Verify all content and data in the device’s PDF documentation found on the device product page.

About

Company
Careers
Contact Us
Media Center
Investor Relations
Corporate Responsibility

Support

Microchip Forums
AVR Freaks
Design Help
Technical Support
Export Control Data
PCNs

Quick Links

microchipDIRECT.com
Microchip University
myMicrochip
Blogs
Reference Designs
Parametric Search
Microchip Logo

Microchip Technology Inc.

2355 West Chandler Blvd.

Chandler, Arizona, USA

Microchip Facebook
Microchip LinkedIn
Microchip Twitter
Microchip Instagram
Microchip Weibo

© Copyright 1998-2024 Microchip Technology Inc. All rights reserved. Shanghai ICP Recordal No.09049794

Terms Of Use
Privacy Notice
Legal
Your Privacy Choices California Consumer Privacy Act (CCPA) Opt-Out Icon