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.3 Writing Source Code
  4. 3.3.1 C Language Specifics
  • Notice to Development Tools Customers
  • 1 Preface
  • 2 Compiler Overview
  • 3 How To's
    • 3.1 Installing and Activating the Compiler
    • 3.2 Invoking the Compiler
    • 3.3 Writing Source Code
      • 3.3.1 C Language Specifics
        • 3.3.1.1 When Should I Cast Expressions?
        • 3.3.1.2 Can Implicit Type Conversions Change The Expected Results Of My Expressions?
        • 3.3.1.3 How Do I Enter Non-English Characters Into My Program?
        • 3.3.1.4 How Can I Use A Variable Defined In Another Source File?
        • 3.3.1.5 How Do I Port My Code To Different Device Architectures?
      • 3.3.2 Device-Specific Features
      • 3.3.3 Memory Allocation
      • 3.3.4 Variables
      • 3.3.5 Functions
      • 3.3.6 Interrupts
      • 3.3.7 Assembly 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 XC32 Toolchain and MPLAB X IDE
  • 5 Command-line Driver
  • 6 C Standard Issues
  • 7 Device-Related Features
  • 8 Supported Data Types and Variables
  • 9 Memory Allocation and Access
  • 10 Chip-Level Security and Arm® TrustZone® Technology
  • 11 Floating-point Support
  • 12 Fixed-Point Arithmetic Support
  • 13 Operators and Statements
  • 14 Register Usage
  • 15 Stack
  • 16 Functions
  • 17 Interrupts
  • 18 Main, Runtime Start-up and Reset
  • 19 Libraries
  • 20 Mixing C/C++ and Assembly Language
  • 21 Optimizations
  • 22 Preprocessing
  • 23 Linking Programs
  • 24 Implementation-Defined Behavior
  • 25 C++ Implementation-Defined Behavior
  • 26 Built-in Functions
  • 27 ASCII Character Set
  • 28 Document Revision History
  • The Microchip Website
  • Product Change Notification Service
  • Customer Support
  • Product Identification System
  • Microchip Devices Code Protection Feature
  • Legal Notice
  • Trademarks
  • Quality Management System
  • Worldwide Sales and Service

3.3.1 C Language Specifics

This section discusses source code issues that are directly relates to the C language itself but which are commonly asked.

  • When Should I Cast Expressions?
  • Can Implicit Type Conversions Change The Expected Results Of My Expressions?
  • How Do I Enter Non-English Characters Into My Program?
  • How Can I Use A Variable Defined In Another Source File?
  • How Do I Port My Code To Different Device Architectures?

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.

Microchip Facebook
Microchip LinkedIn
Microchip Twitter
Microchip YouTube
Microchip Instagram
Microchip Weibo
Microchip Blog
Contact |
Legal |
Privacy Policy |
Cookies |
Careers

Stay on the leading edge with our blog

MicroSolutions

© Copyright 1998-2022 Microchip Technology Inc. All rights reserved.