keil c51 编译器链工具简介

来源:互联网 发布:python离散化数据 编辑:程序博客网 时间:2024/06/10 08:53

Keil Classic 8051 Compilation Tools
  • A51 Macro Assembler
  • C51 ANSI C Compiler
  • BL51 Code Banking Linker/Locator
  • OH51 Object-HEX Converter
  • OC51 Banked Object Converter

C51 C Compiler

The C51 Compiler translates C source files into relocatable object modules which contain full symbolic information for debugging with the µVision Debugger or an in-circuit emulator. In addition to the object file, the compiler generates a listing file which may optionally include symbol table and cross reference information.

A51 Macro Assembler

The A51 Assembler is a macro assembler for the 8051 family of microcontrollers. It supports all 8051 derivatives. It translates symbolic assembly language mnemonics into relocatable object code where the utmost speed, small code size, and hardware control are critical. The macro facility speeds development and conserves maintenance time since common sequences need only be developed once. The A51 assembler supports symbolic access to all features of the 8051 architecture.

The A51 assembler translates assembler source files into a relocatable object modules. The DEBUG directive adds full symbolic information to the object module and supports debugging with the µVision Debugger or an in-circuit emulator. In addition to object files, the A51 assembler generates list files which may optionally include symbol table and cross reference information.

BL51 Code Banking Linker/Locator

The BL51 code banking linker/locator combines OMF51 object modules and creates executable 8051 programs. The linker resolves external and public references and assigns absolute or fixed addresses to relocatable program segments.

The BL51 Linker processes object files created by the Keil C51 Compiler andA51 Assembler and the Intel PL/M-51 Compiler and ASM-51 Assembler. These object modules must adhere to the OMF51 object module specification. BL51 outputs an absolute OMF51 object module that may be loaded into practically any emulator, the Keil µVision Debugger, or the OH51Object-HEX converter (to create an Intel HEX file).

OC51 Banked Object Converter

The OC51 banked object file converter creates an absolute object module for each code bank in a banked object module. You do not need this utility unless you have created a code banking program using theBL51 code banking linker.

When you create a code banking application, all symbolic and source-level information is maintained in the banked object module and is transferred by OC51 to each individual absolute object module for each code bank.

Once you have used OC51 to create the absolute object modules, you may use OH51 to create an Intel HEX file for each code bank.


OH51 Object-HEX Converter



The OH51 Object-HEX converter creates Intel HEX files from absolute OMF51 object modules. Absolute object files may be created by the following:

  • The BL51 code banking linker.
  • The A51 assembler.
  • The OC51 banked object converter.

Intel HEX files are ASCII files that contain a hexadecimal representation of your program. They may be easily loaded into a device programmer for writing EPROMs or other memory devices.

Several utilities are available that may help you with your HEX files:

  • HEX2BIN converts an Intel HEX file into a flat BINARY file.
  • BIN2HEX converts a flat BINARY file into an Intel HEX file.









原创粉丝点击