Jump to main content
MPLAB XC8 C Compiler User’s Guide for PIC MCU
MPLAB XC8 C Compiler User’s Guide for PIC MCU
  1. Home
  2. 3 How Tos
  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 Tos
    • 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 Can I Use A Function Defined In Another Source File?
      • 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 Command-line Driver
  • 5 C Language Features
  • 6 Macro Assembler
  • 7 Linker
  • 8 Utilities
  • 9 Library Functions
  • 10 Error and Warning Messages
  • 11 Implementation-Defined Behavior
  • 12 Document Revision History
  • Microchip Information

3.3.1 C Language Specifics

This section discusses commonly asked source code issues that directly relate to the C language itself.

  • 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 Can I Use a Function Defined in Another Source File?

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