public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
From: "Ioannis E. Venetis" <venetis@capsl.udel.edu>
To: gcc-help@gcc.gnu.org
Subject: Address of label which is defined within an asm statement?
Date: Tue, 27 Jun 2006 18:37:00 -0000	[thread overview]
Message-ID: <44A17BEF.3080904@capsl.udel.edu> (raw)

Dear all,

I have the following code:

__asm__ __volatile__ (
				...
				"MyLabel:	..."
				...
				: <output regs>
				: <input regs>
				: <clobber list>);

Within the asm statement, I have to find somehow the address of label 
"MyLabel", in order to use it in one instruction. I looked through the 
archives but only found a solution if the label is defined outside the 
asm statement, where the '&&' operator and the "X" constraint can be 
used to pass that label into the asm statement. However, I can't figure 
out how to do it in my case. Any ideas?

Thank you,

Ioannis

P.S: Unfortunately, the architecture that I use is unconventional and 
not yet available. This is why I don't mention it. I hope that there is 
a generic solution, that does not require architecture specific details.

             reply	other threads:[~2006-06-27 18:37 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-06-27 18:37 Ioannis E. Venetis [this message]
2006-06-28  6:08 ` Ian Lance Taylor
2006-06-28 14:41   ` Ioannis E. Venetis
2006-06-28 16:00     ` David Fernandez
2006-06-28 22:28       ` Ioannis E. Venetis

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=44A17BEF.3080904@capsl.udel.edu \
    --to=venetis@capsl.udel.edu \
    --cc=gcc-help@gcc.gnu.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).