5.7.5.1 xc-dsc-ld - General Category

Table 5-9. General Options
OptionDescriptionCommand Line
Heap sizeSpecify the size of the heap in bytes. Allocate a run-time heap of size bytes for use by C programs. The heap is allocated from unused data memory. If not enough memory is available, an error is reported.--heap size
Min stack sizeSpecify the minimum size of the stack in bytes. By default, the linker allocates all unused data memory for the run-time stack. Alternatively, the programmer may allocate the stack by declaring two global symbols: __SP_init and __SPLIM_init. Use this option to ensure that at least a minimum sized stack is available. The actual stack size is reported in the link map output file. If the minimum size is not available, an error is reported.--stack size
Use local stackCheck to prevent allocating the stack in extended data space memory. The linker will allocate the stack in regular data space but not extended data space.

Uncheck to allow allocating the stack in extended data space memory. The linker will allocate the stack in either regular and/or extended data space.

--local-stack

--no-local-stack

Allow overlapped sectionsCheck to not check section addresses for overlaps.

Uncheck to check for overlaps.

--check-sections

--no-check-sections

Init data sectionsCheck to support initialized data.

Uncheck to not support.

--data-init

--no-data-init

Pack data templateCheck to pack initial data values.

Uncheck to not pack.

--pack-data

--no-pack-data

Create handlesCheck to support far code pointers.

Uncheck to not support.

--handles

--no-handles

Create default ISRCheck to create an interrupt function for unused vectors.

Uncheck to not create a default ISR.

--isr

--no-isr

Remove unused sectionsCheck to enable garbage collection of unused input sections (on some targets).

Uncheck to disable garbage collection.

--gc-sections

--no-gc-sections

Fill value for upper byte of dataEnter a fill value for upper byte of data. Use this value as the upper byte (bits 16-23) when encoding data into program memory. This option affects the encoding of sections created with the psv or eedata attribute, as well as the data initialization template if the --no-pack-data option is enabled.--fillupper=value
Stack guardband sizeEnter a stack guardband size to ensure that enough stack space is available to process a stack overflow exception.--stackguard=size
Additional driver optionsType here any additional driver options not existing in this GUI otherwise. The string you introduce here will be emitted as is in the driver invocation command.
Use response file to linkCheck to create a makefile that uses a response file for the link step. In Windows® OS, you have a maximum command line length of 8191 chars. When linking long programs, the link line might go over this limit. MPLAB XC-DSC provides a response file work-around. See MPLAB X IDE documentation, Troubleshooting section, for details.

Uncheck to not use a response file.

No Interrupt Vector TableCheck to prevent the linker from generating an IVT/AIVT vector table. If there is one defined by the user then it will be used; otherwise the memory will remain unprogrammed.

Uncheck to allow the linker to generate a vector table.

--no-ivt
Override PSV address boundaryCheck to allow data sections to be allocated above the 32K PSV address boundary. Normally this is permitted only when the space(eds) attribute has been applied to variables. This option is not compatible with the compiler constants-in-code memory model.

Uncheck to not allow the override.

--psv-override