2 votes
LKR File - What is an .lkr file and how do I open it?
Learn about .LKR files and view a list of programs that open them.
Idiomas
Visión General
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.
Document Icon
Migas de pan
Previous / Next
In-Depth
.LKR File Extension
MPLAB C18 Linker Script
| Developer | Microchip Technology |
| Popularity |
1.5 | 2 Votes |
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
Sort
Pricing
Program Name
Platform
Reset
X
Windows
Microchip Technology MPLAB C18
Free Trial
Microsoft Visual Studio Code
Free
Any text editor
Mac
Microsoft Visual Studio Code
Free
Any text editor
Linux
Microsoft Visual Studio Code
Free
Any text editor
Category: Developer Files
Updated: February 6, 2023