public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
From: Kalai Rajah N <kalairajah@gmail.com>
To: Ian Lance Taylor <iant@google.com>
Cc: "gcc-help@gcc.gnu.org" <gcc-help@gcc.gnu.org>
Subject: Re: Thumb inline assembly
Date: Tue, 11 Jun 2013 18:27:00 -0000	[thread overview]
Message-ID: <CAPTDLfFFFMWkMdAxvWM6_j78h6AdBKdffj9gKakDZ_7zd+J9jg@mail.gmail.com> (raw)
In-Reply-To: <CAKOQZ8yN6GvxDCbGUi-wV43e-==KK=+TZ6tSfsxqvf8n7VYoLg@mail.gmail.com>

Thanks. Changing that line works. I had this code working in the
function directly as I was passing immediates. When this is called
through a function, it takes registers and I had to update it
accordingly.


On Mon, Jun 10, 2013 at 6:01 PM, Ian Lance Taylor <iant@google.com> wrote:
> On Mon, Jun 10, 2013 at 5:41 PM, Kalai Rajah N <kalairajah@gmail.com> wrote:
>
>> "ldr r1, =%0 /* load the nvic_iser* register */ \n\t"
>
> The references are coming from your lines like the above.  I don't
> know what this syntax means.  You are asking GCC to put a register
> name in there, so the result is something like
>     ldr r1, =r1
> This winds up referring to a symbol named r1, rather than the register r1.
>
> Ian

      reply	other threads:[~2013-06-11 18:27 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-06-10 21:41 Kalai Rajah N
2013-06-10 22:51 ` Ian Lance Taylor
2013-06-10 23:19   ` Kalai Rajah N
2013-06-10 23:59     ` Ian Lance Taylor
2013-06-11  0:06       ` Kalai Rajah N
2013-06-11  0:13         ` Ian Lance Taylor
     [not found]           ` <CAPTDLfH--WkreVXSDb7nt6KsKP+vBH3q_eoJX7yvqm=O8QzF0A@mail.gmail.com>
2013-06-11  0:20             ` Fwd: " Kalai Rajah N
2013-06-11  0:31               ` Ian Lance Taylor
2013-06-11  0:41                 ` Kalai Rajah N
2013-06-11  1:01                   ` Ian Lance Taylor
2013-06-11 18:27                     ` Kalai Rajah N [this message]

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=CAPTDLfFFFMWkMdAxvWM6_j78h6AdBKdffj9gKakDZ_7zd+J9jg@mail.gmail.com \
    --to=kalairajah@gmail.com \
    --cc=gcc-help@gcc.gnu.org \
    --cc=iant@google.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).