.LKR File Extension
MPLAB C18 Linker Script
Developer | Microchip Technology |
Popularity |
2.0 | 1 Vote |
What is an LKR file?
More Information
Microchip Technology MPLAB is an integrated development environment (IDE) used to create embedded applications on PIC and dsPIC microcontrollers. When compiling programs using MPLAB, developers use different compilers when targeting different microcontrollers. Version 8 of MPLAB includes support for the C18 compiler, used to compile programs for PIC18 microcontrollers.
When compiling a program using C18, developers previously had to manually specify a linker script used to merge their program's constituent files into a single program file. In the most recent version of C18, however, the compiler automatically selects an appropriate linker script from its ~mcc/18/bin/LKR directory. These scripts are saved as LKR files.
NOTE: Other MPLAB products may also use linker scripts saved as LKR files.
How to open an LKR file
Because LKR files are plain text scripts, you can open and edit them in Microsoft Visual Studio Code (multiplatform) or any other text editor. However, you should not edit the default LKR files included with MPLAB C18, as doing so might cause the compiler to function incorrectly.