ARM Technical Support Knowledge Articles

COMPILER DIRECTIVE FOR OMF2 FILE FORMAT

Applies to: C51 C Compiler

Answer


Information in this article applies to:


QUESTION

I would like to use an 8051 with extended memory support above 64K and use far memory space structures. I would like to debug with these extended features. How can I debug these far structures if OMF-51 object file format does not support them?

ANSWER

For optimum support of these different 8051 variants with extended memory support of up to 16MB, the new output file format OMF2 was created.

OMF2 allows direct support of up to 16MB code and data space. The Intel OMF51 file format is the default for the C51 compiler. The OMF2 file format is default for the Cx51 compiler. The OMF2 directive enables the OMF2 file format, which provides detailed symbol type checking across modules and eliminates the historic limitations of the Intel OMF51 file format.

The OMF2 file format is required when you want to use one of the following features of the Cx51 compiler:

The OMF2 file format requires the extended LX51 linker/locater and cannot be used with the BL51 linker/locater.

µVision Control: Project ->Select Device ->Use LX51 instead of BL51.

MORE INFORMATION

SEE ALSO

Article last edited on: 2005-09-22 12:55:32

Rate this article

[Bad]
|
|
[Good]
Disagree? Move your mouse over the bar and click

Did you find this article helpful? Yes No

How can we improve this article?

Link to this article
Copyright © 2011 ARM Limited. All rights reserved. External (Open), Non-Confidential