Keil™, An ARM® Company

RealView Linker and Utilities Guide

Listing field offsets as assembly language EQUs

7.3.2. Listing field offsets as assembly language EQUs

To produce an output listing to stdout that contains all the field offsets from all structures in the file inputfile.o, use:

fromelf ‑‑fieldoffsets inputfile.o

To produce an output file listing to outputfile.a that contains all the field offsets from structures in the file inputfile.o that have a name starting with p, use:

fromelf ‑‑fieldoffsets ‑‑select p* ‑o outputfile.a inputfile.o

To produce an output listing to outputfile.a that contains all the field offsets from structures in the file inputfile.o with names of tools or moretools, use:

fromelf ‑‑fieldoffsets ‑‑select tools.*, moretools.* ‑o outputfile.a inputfile.o

To produce an output file listing to outputfile.a that contains all the field offsets of structure fields whose name starts with number and are within structure field top in structure tools in the file inputfile.o, use:

fromelf ‑‑fieldoffsets ‑‑select tools.top.number* ‑o outputfile.a inputfile.o
Copyright © 2007 ARM Limited. All rights reserved.ARM DUI 0377A