|
|||||||||||
|
Technical Support On-Line Manuals CARM User's Guide |
CARM User's GuideDiscontinued Object (OBJ) FileThe CARM Compiler produces object (.OBJ) files in response to various C language statements and other directives. The OBJECT directive specifies the name for the object file while the NOOBJECT directive inhibits object file output. The object file is not simply a binary representation of the assembly generated for your C source code. It is a specially formatted file with data records for symbolic information, object code, debugging information, library references, and so on. Following are just a few of the details that are stored in the object file.
Most of the object code stored in the object file is not absolute. It may be located by the linker at any appropriate address. References to external variables and functions are set to address 0 by the compiler. The linker fixes-up all references. For these reasons, the object code generated by the compiler is not executable as-is. It must be linked before it can be executed. The level of detail stored in the object file makes it possible for simulators (like the Keil µVision Simulator), debuggers (like the Keil µVision Target Debugger), and emulators to load your program and provide complete symbolic, source-level debugging capabilities.
| ||||||||||
|
|||||||||||