Vault 7: Projects
This publication series is about specific projects related to the Vault 7 main publication.
MPLAB
®
XC16 C COMPILER
USERS GUIDE
2012-2013 Microchip Technology Inc. DS50002071C-page 175
Chapter 13. Functions
13.1 INTRODUCTION
The compiler supports C code functions and handles assembly code functions, as dis-
cussed in the following topics:
Writing Functions
Function Size Limits
Allocation of Function Code
Changing the Default Function Allocation
Inline Functions
Memory Models
Function Call Conventions
13.2 WRITING FUNCTIONS
Implementation and special features associated with functions are discussed in the fol-
lowing sections.
13.2.1 Function Specifiers
The only specifier that has any effect on functions is static.
A function defined using the static specifier only affects the scope of the function, i.e.
limits the places in the source code where the function may be called. Functions that
are static may only be directly called from code in the file in which the function is
defined. This specifier does not change the way the function is encoded.
Protego_Release_01_05-Related-OEM-Documentation-MPLAB-XC16-C-Compiler.pdf