9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: Charles Forsyth <forsyth@caldo.demon.co.uk>
To: 9fans@cse.psu.edu
Subject: Re: [9fans] 8a/8l bug
Date: Thu, 18 Dec 2003 00:25:13 +0000	[thread overview]
Message-ID: <8b329015bd7b449ab8a5147291d081de@caldo.demon.co.uk> (raw)
In-Reply-To: <E1AWlFI-000BDN-To@t40.swtch.com>

a linker option seems wrong, since it's not a global attribute,
but the correctness of the substitution depends on the surrounding context.
it's usually perfectly all right to replace ADDL $1, ... by INCL for instance.

one way might be to add a pseudo-op (similar to NOSCHED) that could
be used by either assembler or compiler to constrain
instruction selection.  that's possibly a nuisance to use and implement.
another method is to have the linker check whether the shorter instruction is actually equivalent
in context to the longer one it must otherwise use, since that's really the problem here
(eg, either the flag bits are set the same way or subsequent instructions don't need them)



  parent reply	other threads:[~2003-12-18  0:25 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-12-17 17:59 Latchesar Ionkov
2003-12-17 19:26 ` Latchesar Ionkov
2003-12-17 22:54   ` Russ Cox
2003-12-17 23:33     ` Latchesar Ionkov
2003-12-17 23:38       ` Russ Cox
2003-12-18  0:13         ` Latchesar Ionkov
2003-12-18  0:25         ` Charles Forsyth [this message]
2003-12-18  4:54   ` jmk

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=8b329015bd7b449ab8a5147291d081de@caldo.demon.co.uk \
    --to=forsyth@caldo.demon.co.uk \
    --cc=9fans@cse.psu.edu \
    /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).