Jump to main content
MPLAB® XC16 C Compiler User Guide
MPLAB® XC16 C Compiler User Guide
  1. Home
  2. 5 How To's
  3. 5.3 Writing Source Code
  4. 5.3.4 Variables
  5. 5.3.4.4 How Long Can I Make My Variable and Macro Names?

  • Notice to Development Tools Customers
  • 1 Preface
  • 2 Compiler Overview
  • 3 Compiler and Other Development Tools
  • 4 Common C Interface
  • 5 How To's
    • 5.1 Installing and Activating the Compiler
    • 5.2 Invoking the Compiler
    • 5.3 Writing Source Code
      • 5.3.1 C Language Specifics
      • 5.3.2 Device-Specific Features
      • 5.3.3 Memory Allocation
      • 5.3.4 Variables
        • 5.3.4.1 Why Are My Floating-Point Results Not Quite What I Am Expecting?
        • 5.3.4.2 How Do I Retain the Value of a Variable Even After a Soft Reset?
        • 5.3.4.3 How Do I Save C Variables When an ISR Is Invoked?
        • 5.3.4.4 How Long Can I Make My Variable and Macro Names?
        • 5.3.4.5 How Do I Access Values Stored in a PSV or EDS Page?
        • 5.3.4.6 Why Would I Need to Place Data Into Its Own Section?
        • 5.3.4.7 How Can I Load a Value Into Flash Memory?
        • 5.3.4.8 How Can I Pack Data Into Flash Memory?
        • 5.3.4.9 How Can I Define a Large Array?
      • 5.3.5 Functions
      • 5.3.6 Interrupts
      • 5.3.7 Assembly Code
    • 5.4 Getting My Application to Do What I Want
    • 5.5 Understanding the Compilation Process
    • 5.6 Fixing Code That Does Not Work
  • 6 XC16 Toolchain and MPLAB X IDE
  • 7 Compiler Command-Line Driver
  • 8 Device-Related Features
  • 9 Differences Between MPLAB XC16 and ANSI C
  • 10 Supported Data Types and Variables
  • 11 Fixed-Point Arithmetic Support
  • 12 Memory Allocation and Access
  • 13 Operators and Statements
  • 14 Register Usage
  • 15 Functions
  • 16 Interrupts
  • 17 Main, Runtime Startup and Reset
  • 18 Mixing C and Assembly Code
  • 19 Library Routines
  • 20 Optimizations
  • 21 Preprocessing
  • 22 Linking Programs
  • 23 Implementation-Defined Behavior
  • 24 Embedded Compiler Compatibility Mode
  • 25 Diagnostics
  • 26 GNU Free Documentation License
  • 27 Deprecated Features
  • 28 Built-in Functions
  • 29 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

5.3.4.4 How Long Can I Make My Variable and Macro Names?

For MPLAB XC16, no limit is imposed; but for CCI there is a limit. For details, see the following section in this user’s guide:

The Number of Significant Initial Characters in an Identifier

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.