Добавил:
Upload Опубликованный материал нарушает ваши авторские права? Сообщите нам.
Вуз: Предмет: Файл:
Скачиваний:
50
Добавлен:
14.04.2015
Размер:
1.37 Mб
Скачать

Keil Software — Cx51 Compiler User’s Guide

187

 

 

Debugging

When you are using the µVision2 IDE and the µVision2 Debugger, you will get complete debug information when you enable Options for Target – Output – Debug Information. For command line tools the following rules apply.

By default, the C51 compiler uses the Intel Object Format (OMF-51) for object files and generates complete symbol information. All Intel compatible emulators may be used for program debugging. The DEBUG directive embeds debugging information in the object file. In addition, the OBJECTEXTEND directive embeds additional variable type information in the object file which allows typespecific display of variables and structures when using certain emulators.

The Cx51 compiler uses the OMF2 object file format. The OMF2 format is also used by the Cx51 compiler when the directive OMF2 is active. The OMF2 format requires the extended LX51 linker/locater and cannot be used with the BL51 linker/locater. The OMF2 object file format provides extensive debug information and is supported by the µVision2 debugger and some emulators.

6

188

Chapter 6. Advanced Programming Techniques

 

 

6

Соседние файлы в папке HLP