Keil™, An ARM® Company

RealView Linker and Utilities Guide

‑‑fieldoffsets

7.2.11. ‑‑fieldoffsets

Prints a list of assembly language EQU directives that equate C++ class or C structure field names to their offsets from the base of the class or structure. The input file can be a relocatable object.

Use ‑o to redirect the output to a file. Use the INCLUDE command from armasm to load the produced file and provide access to C++ classes and C structure members by name from assembly language. See the Assembler Guide for more information on armasm.

Note

This option:

  • is not available if the source file does not have debug information

  • cannot be used together with a code_output_format.

This option outputs all structure information. To output a subset of the structures, use ‑‑select select_options.

If you do not require a file that can be input to armasm, use the ‑‑text ‑a options to format the display addresses in a more readable form. The ‑a option only outputs address information for structures and static data in images because the addresses are not known in a relocatable object.

Copyright © 2007 ARM Limited. All rights reserved.ARM DUI 0377A