public inbox for linux-ia64@vger.kernel.org
 help / color / mirror / Atom feed
* [Linux-ia64] Offsets from C struct into assembler
@ 2002-01-28  8:56 Christian Hildner
  2002-01-28 12:16 ` Keith Owens
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: Christian Hildner @ 2002-01-28  8:56 UTC (permalink / raw)
  To: linux-ia64

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



^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2002-01-29  9:36 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-01-28  8:56 [Linux-ia64] Offsets from C struct into assembler Christian Hildner
2002-01-28 12:16 ` Keith Owens
2002-01-28 15:11 ` n0ano
2002-01-28 20:59 ` Keith Owens
2002-01-28 21:15 ` David Mosberger
2002-01-29  7:06 ` Christian Hildner
2002-01-29  8:39 ` David Mosberger
2002-01-29  9:36 ` Andreas Schwab

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox