9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: "Bruce Ellis" <bruce.ellis@gmail.com>
To: "Fans of the OS Plan 9 from Bell Labs" <9fans@9fans.net>
Subject: Re: [9fans] ARM compiler
Date: Tue, 18 Mar 2008 15:16:39 +1100	[thread overview]
Message-ID: <775b8d190803172116r27014084pc2c7c754037788c8@mail.gmail.com> (raw)
In-Reply-To: <7359f0490803171528g6736b46asd92c008305b56d32@mail.gmail.com>

rtfc(1) is on the rtfm(1) page.

grep of /sys/src/cmd/5c/*.c may have been enough.

brucee

On Tue, Mar 18, 2008 at 9:28 AM, Rob Pike <robpike@gmail.com> wrote:
> Spoilsport.
>
> -rob
>
>
> On Tue, Mar 18, 2008 at 8:46 AM, Richard Miller <9fans@hamnavoe.com> wrote:
> > > speaking of arm:
> >  >
> >  > does the compiler emit conditional instructions
> >  > like subgt?
> >
> >  term% cat t.c
> >  int
> >  f(int x)
> >  {
> >         int y = 0;
> >         if (x > 0)
> >                 y -= 1;
> >         return y;
> >  }
> >  term% 5c -S t.c
> >         TEXT    f+0(SB),0,$4
> >         MOVW    $0,R2
> >         CMP     $0,R0,
> >         SUB.GT  $1,R2,R2
> >         MOVW    R2,R0
> >         RET     ,
> >         RET     ,
> >         END     ,
> >
> >
> >
>
>


  reply	other threads:[~2008-03-18  4:16 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-03-13 21:14 [9fans] more bitsy stuff john
2008-03-17  9:50 ` [9fans] ARMv6 compiler ? (was: more bitsy stuff) prem
2008-03-17 12:39   ` Charles Forsyth
2008-03-17 17:55   ` [9fans] ARM compiler erik quanstrom
2008-03-17 21:46     ` Richard Miller
2008-03-17 22:28       ` Rob Pike
2008-03-18  4:16         ` Bruce Ellis [this message]
2008-03-18  5:07           ` erik quanstrom
2008-03-18  6:10             ` Bruce Ellis

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=775b8d190803172116r27014084pc2c7c754037788c8@mail.gmail.com \
    --to=bruce.ellis@gmail.com \
    --cc=9fans@9fans.net \
    /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 NNTP newsgroup(s).