[Linux-ia64] Offsets from C struct into assembler

From: Christian Hildner <christian.hildner_at_hob.de>
Date: 2002-01-28 19:56:27
Hi!

Does anyone know how to bring offsets from a C structure into pure
assembly code (not inline-asm)?
I want to do something like:

struct abc {
    ...
    long varx;
    ...
    }

add rx=offset(varx),ry    // get address of variable
ld8 rx=[rx]                    // get variable varx

with ry being the base address of the structure abc and offset_varx
beeing compiled from struct abc.

Any ideas are welcome.

Christian
Received on Mon Jan 28 01:03:53 2002

This archive was generated by hypermail 2.1.8 : 2005-08-02 09:20:07 EST