5.7.4.1 xc-dsc-gcc - General Category

Table 5-5. General Options
OptionDescriptionCommand Line
Generate debugging infoCheck to create an ELF file with information to allow debugging of code in MPLAB X IDE.

Uncheck for production code.

-g
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