public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/111020] New: RFE: RISC-V: ability to cherry-pick additional instructions
@ 2023-08-15  0:42 hpa at zytor dot com
  2023-08-15  0:48 ` [Bug target/111020] " pinskia at gcc dot gnu.org
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: hpa at zytor dot com @ 2023-08-15  0:42 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111020

            Bug ID: 111020
           Summary: RFE: RISC-V: ability to cherry-pick additional
                    instructions
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: target
          Assignee: unassigned at gcc dot gnu.org
          Reporter: hpa at zytor dot com
  Target Milestone: ---

For very deeply embedded use, it is sometimes highly desirable to control the
instruction set on a very fine grained basis. For example, the Zbb extension
contains a mixture of things that most likely requires separate functional
units. However, as an example, the ctz instruction is highly useful to speed up
interrupt latency in designs that do not have vectorized interrupt handling
(which is, in its most basic form, a dedicated ctz unit.) It would be massive
hardware bloat to require the full Zbb set to add this one instruction.

Once the instruction is added, though, one would like to be able to use it as
fully as possible.

This, obviously, creates binaries that are specifically tuned toward a single
processor implementation, but that is pretty much the essence of deeply
embedded, where in the normal case the entire software stack from the OS to
application is linked together in a single binary, or at the very least
compiled together, often from a single source tree.

As far as object code compatibility is concerned, this is very much a
"programmer beware" situation. There is no need for heroics in terms of tagging
objects with the exact instruction set, for example.

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2023-08-15 14:22 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-08-15  0:42 [Bug target/111020] New: RFE: RISC-V: ability to cherry-pick additional instructions hpa at zytor dot com
2023-08-15  0:48 ` [Bug target/111020] " pinskia at gcc dot gnu.org
2023-08-15  2:17 ` hpa at zytor dot com
2023-08-15  2:37 ` pinskia at gcc dot gnu.org
2023-08-15  2:50 ` palmer at gcc dot gnu.org
2023-08-15  3:26 ` hpa at zytor dot com
2023-08-15 14:22 ` amylaar at gcc dot gnu.org

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).