From: Andrew Haley <aph@redhat.com>
To: Luchezar Belev <lukcho@gmail.com>, gcc-help <gcc-help@gcc.gnu.org>
Subject: Re: immediate operands without dollar sign for inline asm
Date: Mon, 16 Dec 2013 18:21:00 -0000 [thread overview]
Message-ID: <52AF44C0.5070205@redhat.com> (raw)
In-Reply-To: <CAJtzQrwfmEWNocNh=3pnsyJAJR8inDZBFKvdFwtwq6_kduUi=A@mail.gmail.com>
On 12/16/2013 11:29 AM, Luchezar Belev wrote:
> Hello,
> Sometimes one needs to pass an immediate operand to asm statement that
> should not be prefixed with dollar sign (e.g. for doing custom things
> with assembly directives).
>
> After much search in the internet i managed to find the way to do it:
> when the operand is used in the assembly string, it must have the 'a'
> modifier. (e.g. ".equ name, %a0" instead of ".equ name, %0".
>
> My question is: why is this feature not mentioned anywhere in the GCC
> documentation and is so extremely hard to find info about? Does this
> mean that it is planned for removal or deprecation? Can one rely on
> it's presence in future GCC versions?
> (I think it is extremely useful for some specific tasks, please don't
> remove it!)
>
It's probably simply that no-one has got around to documenting it. To
be sure you'd need to trawl through the archives.
Andrew.
next prev parent reply other threads:[~2013-12-16 18:21 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-12-16 11:29 Luchezar Belev
2013-12-16 18:21 ` Andrew Haley [this message]
2013-12-16 20:47 ` Florian Weimer
2013-12-19 17:04 ` Luchezar Belev
2013-12-19 22:25 ` Rob
2013-12-16 23:21 ` dw
2013-12-17 9:06 ` Andrew Haley
2013-12-18 5:45 ` dw
2013-12-18 9:38 ` Andrew Haley
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=52AF44C0.5070205@redhat.com \
--to=aph@redhat.com \
--cc=gcc-help@gcc.gnu.org \
--cc=lukcho@gmail.com \
/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).