Jump to main content
MPLAB XC-DSC C Compiler User's Guide
MPLAB XC-DSC C Compiler User's Guide
  1. Home
  2. 14 Functions
  3. 14.1 Writing Functions
  4. 14.1.2 Function Attributes
  5. 14.1.2.27 weak
  • Notice to Development Tools Customers
  • 1 Preface
  • 2 Compiler Overview
  • 3 Compiler and Other Development Tools
  • 4 How To's
  • 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
    • 14.1 Writing Functions
      • 14.1.1 Function Specifiers
      • 14.1.2 Function Attributes
        • 14.1.2.1 address (addr)
        • 14.1.2.2 alias ("target")
        • 14.1.2.3 auto_psv, no_auto_psv
        • 14.1.2.4 boot
        • 14.1.2.5 const
        • 14.1.2.6 context
        • 14.1.2.7 deprecated
        • 14.1.2.8 far
        • 14.1.2.9 format (archetype, string-index, first-to-check)
        • 14.1.2.10 format_arg (string-index)
        • 14.1.2.11 keep
        • 14.1.2.12 naked
        • 14.1.2.13 near
        • 14.1.2.14 noload
        • 14.1.2.15 noreturn
        • 14.1.2.16 optimize
        • 14.1.2.17 priority(n)
        • 14.1.2.18 round(mode)
        • 14.1.2.19 save(list)
        • 14.1.2.20 section ("section-name")
        • 14.1.2.21 secure
        • 14.1.2.22 shadow
        • 14.1.2.23 shared
        • 14.1.2.24 unsupported("message")
        • 14.1.2.25 unused
        • 14.1.2.26 user_init
        • 14.1.2.27 weak
    • 14.2 Function Size Limits
    • 14.3 Allocation of Function Code
    • 14.4 Changing the Default Function Allocation
    • 14.5 Inline Functions
    • 14.6 Memory Models
    • 14.7 Function Call Conventions
    • 14.8 Internal 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

14.1.2.27 weak

See 9.10 Variable Attributes for information on the weak attribute.

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.