.LKR File Extension

MPLAB C18 Linker Script

Developer Microchip Technology
Popularity
2.0  |  1 Vote
 

What is an LKR file?

An LKR file is a linker script used by Microchip Technology MPLAB C Compiler for PIC18 MCUs (MPLAB C18). The compiler uses the LKR file to merge multiple files into a single program. MPLAB C18 includes multiple LKR files, used when compiling different kinds of programs.

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.

Open over 400 file formats with File Viewer Plus.Free Download

Programs that open or reference LKR files

Verified by FileInfo.com

The FileInfo.com team has independently researched the MPLAB C18 Linker Script file format and Mac, Windows, and Linux apps listed on this page. Our goal is 100% accuracy and we only publish information about file types that we have verified.

If you would like to suggest any additions or updates to this page, please let us know.