Jump to main content
MPLAB XC-DSC C Compiler User's Guide
MPLAB XC-DSC C Compiler User's Guide
  1. Home
  2. 4 How To's
  3. 4.3 Writing Source Code
  4. 4.3.4 Variables
  5. 4.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 How To's
    • 4.1 Installing and Activating the Compiler
    • 4.2 Invoking the Compiler
    • 4.3 Writing Source Code
      • 4.3.1 C Language Specifics
      • 4.3.2 Device-Specific Features
      • 4.3.3 Memory Allocation
      • 4.3.4 Variables
        • 4.3.4.1 Why Are My Floating-Point Results Not Quite What I Am Expecting?
        • 4.3.4.2 How Do I Retain the Value of a Variable Even After a Soft Reset?
        • 4.3.4.3 How Do I Save C Variables When an ISR Is Invoked?
        • 4.3.4.4 How Long Can I Make My Variable and Macro Names?
        • 4.3.4.5 How Do I Access Values Stored in a PSV or EDS Page?
        • 4.3.4.6 Why Would I Need to Place Data Into Its Own Section?
        • 4.3.4.7 How Can I Load a Value Into Flash Memory?
        • 4.3.4.8 How Can I Pack Data Into Flash Memory?
        • 4.3.4.9 How Can I Define a Large Array?
      • 4.3.5 Functions
      • 4.3.6 Interrupts
      • 4.3.7 Assembly Code
    • 4.4 Getting My Application to Do What I Want
    • 4.5 Understanding the Compilation Process
    • 4.6 Fixing Code That Does Not Work
  • 5 XC-DSC Toolchain and MPLAB® X IDE
  • 6 Compiler Command-Line Driver
  • 7 Device-Related Features
  • 8 Differences Between MPLAB® XC-DSC and C Standard
  • 9 Supported Data Types and Variables
  • 10 Fixed-Point Arithmetic Support
  • 11 Memory Allocation and Access
  • 12 Operators and Statements
  • 13 Register Usage
  • 14 Functions
  • 15 Interrupts
  • 16 Main, Runtime Startup and Reset
  • 17 Mixing C and Assembly Code
  • 18 Library Routines
  • 19 Optimizations
  • 20 Preprocessing
  • 21 Linking Programs
  • 22 Implementation-Defined Behavior
  • 23 Embedded Compiler Compatibility Mode
  • 24 Common C Interface
  • 25 Diagnostic Pragmas
  • 26 Diagnostic Messages
  • 27 GNU Free Documentation License
  • 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

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

For MPLAB XC-DSC, no limit is imposed; but for CCI there is a limit. For more information, refer to 24.3.5 The Number of Significant Initial Characters in an Identifier section.

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.