All of lore.kernel.org
 help / color / mirror / Atom feed
From: Christian Hildner <christian.hildner@hob.de>
To: linux-ia64@vger.kernel.org
Subject: [Linux-ia64] Offsets from C struct into assembler
Date: Mon, 28 Jan 2002 08:56:27 +0000	[thread overview]
Message-ID: <marc-linux-ia64-105590698805940@msgid-missing> (raw)

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



             reply	other threads:[~2002-01-28  8:56 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-01-28  8:56 Christian Hildner [this message]
2002-01-28 12:16 ` [Linux-ia64] Offsets from C struct into assembler 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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=marc-linux-ia64-105590698805940@msgid-missing \
    --to=christian.hildner@hob.de \
    --cc=linux-ia64@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.