5.8.3.1 XC-DSC C Compiler - General

Notes:
  • N/A means MPLAB X IDE option not available in VS Code.
  • VSC means VS Code option is not available in MPLAB X IDE.
Table 5-20. General Options - C
OptionDescriptionCommand Line
Generate debugging infoN/A
Isolate each function in a sectionCheck to place each function into its own section in the output file. The name of the function determines the section’s name in the output file.
Note: When you specify this option, the assembler and linker may create larger object and executable files and will also be slower.

Uncheck to place multiple functions in a section.

-ffunction-sections
Place data into its own sectionPlace each data item into its own section in the output file.

The name of the data item determines the name of the section. When you specify this option, the assembler and linker may create larger object and executable files and will also be slower.

-fdata-sections
Use 64-bit doubleUse long double instead of double type equivalent to float. Mixing this option across modules can have unexpected results if modules share double data either directly through argument passage or indirectly through shared buffer space.-fno-short-double
Disable instruction schedulingPrevent the compiler from scheduling instructions.-fno-schedule-insns

-fno-schedule-insns2

Fill upper value for data in flashFill upper flash memory with the value specified.-mfillupper=value
Name the text sectionPlace text (program code) in a section named name rather than the default .text section.-mtext=name