This document is the user manual for the Cx51 compiler, which is an optimized C compiler and library reference for traditional and extended 8051 microprocessors. The manual provides detailed descriptions and operating instructions, as well as suggestions for error corrections and improvements.
This manual introduces the Keil Cx51 compiler, a tool for developing software for 8051 microcontrollers. It explains how to set up the environment, compile source files, and manage output, with detailed sections on command‑line usage and compiler options.
The document also describes language extensions, preprocessor directives, supported 8051 variants, memory models, and advanced programming techniques such as custom startup files and real‑time function tasks. Each chapter includes reference tables and examples to help users apply the compiler to their projects.
| Supported 8051 variants | All 8051 variants |
|---|
You can specify the memory model for a function using the appropriate compiler option in the function declaration section.