This option will output, to the specified output-file, an assembler directive, .equ, for each member of each structure found in each manipulation. The .equ directives for the structures in the header file can be obtained by using the following input: gcc -fsyntax-only -offset-info m.s -x c m.h.
m.h is the header containing the structures, and m.s holds the directives.
The following is a short example of output produced by -offset-info.
input file (for example m.h):
struct W {
double d;
int I;
};
struct X {
int a;
int b;
struct Y {
int a;
int b;
};
struct Y y;
struct Y yy[10];
struct Y* p;
}
output file (for example m.s):
.equ W_d,0
.equ W_i,8
.equ Y_a,0
.equ Y_b,4
.equ X_a,0
.equ X_b,4
.equ X_y,8
.equ X_yy,16
.equ X_p,96
|
© 2004 Red Hat, Inc. All rights reserved. About Red Hat : Legal statement : Privacy statement : Contact Red Hat |