9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: Richard Miller <9fans@hamnavoe.com>
To: 9fans@9fans.net
Subject: Re: [9fans] Thumb compiler oddity
Date: Mon, 2 Oct 2023 10:07:41 +0100	[thread overview]
Message-ID: <535b24ab023b09e735610d41ed146500@hamnavoe.com> (raw)
In-Reply-To: <502707ea720b8ccae9ecbf90e78779a2@boddie.org.uk>

> In the meantime, I turned off "registerization" for files that could
> potentially have similar code.

If you want a more targeted workaround without a performance cost,
in the example you posted you can force the compiler to reload the
register by replacing

        return y;

with

        return *(&y);


------------------------------------------
9fans: 9fans
Permalink: https://9fans.topicbox.com/groups/9fans/Te51716f70e2f8d84-Mba30ec1abcb7b7acbb79cc8b
Delivery options: https://9fans.topicbox.com/groups/9fans/subscription

  reply	other threads:[~2023-10-02  9:07 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-10-01 21:17 David Boddie
2023-10-02  9:07 ` Richard Miller [this message]
  -- strict thread matches above, loose matches on Subject: below --
2023-10-11 20:30 David Boddie
2023-09-24 20:26 David Boddie
2023-09-27 12:32 ` Richard Miller

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=535b24ab023b09e735610d41ed146500@hamnavoe.com \
    --to=9fans@hamnavoe.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).