public inbox for binutils@sourceware.org
 help / color / mirror / Atom feed
From: Paul Koning <paulkoning@comcast.net>
To: jacob navia <jacob@jacob.remcomp.fr>
Cc: Palmer Dabbelt <palmer@dabbelt.com>,
	jbeulich@suse.com, binutils@sourceware.org
Subject: Re: P.S. Follow up to my last post
Date: Fri, 25 Aug 2023 13:03:31 -0400	[thread overview]
Message-ID: <8C7981E4-01DE-4C70-92DB-6C711D95D710@comcast.net> (raw)
In-Reply-To: <502E2019-6C30-45ED-9EE4-A5ABAABBB750@jacob.remcomp.fr>



> On Aug 25, 2023, at 12:10 PM, jacob navia <jacob@jacob.remcomp.fr> wrote:
> 
> OK.
> 1) We agree that the -march=rv64gc_zbb option is completely undocumented and impossible for the user to know.
> 2) We agree that « gnu gas » is an assembler whose duty is to assemble instructions. But « gas » will refuse to assemble those instructions. 
>  Why is that? It is the responsibility of the programmer or the compiler to write the instructions that are present in this or another machine. 
>  Why the assembler thinks it is necessary to forbid some instructions???

It's reasonable for the assembler to enforce ISA variations, based on what it's told in the -march switch.  If so, then (a) gcc has to pass that switch, and (b) gcc can't add a variant that gas doesn't know about.

Is that the case here?  Are you invoking the assembler manually or having it done for you by gcc?  If the former, the -march switch is your responsibility; if the latter, then gcc is responsible for getting it right.

	paul



  reply	other threads:[~2023-08-25 17:03 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <AEF14E89-14CF-4474-8822-B0139F3F740B@jacob.remcomp.fr>
2023-08-25 15:32 ` Palmer Dabbelt
2023-08-25 16:10   ` jacob navia
2023-08-25 17:03     ` Paul Koning [this message]
2023-08-25 19:44       ` jacob navia
2023-08-28  6:17         ` Jan Beulich
2023-08-28  7:04           ` jacob navia
2023-08-25 11:52 jacob navia
2023-08-25 12:00 ` Jan Beulich
2023-08-25 13:07   ` jacob navia
2023-08-25 13:30     ` Jan Beulich
2023-08-25 13:40       ` Paul Koning

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=8C7981E4-01DE-4C70-92DB-6C711D95D710@comcast.net \
    --to=paulkoning@comcast.net \
    --cc=binutils@sourceware.org \
    --cc=jacob@jacob.remcomp.fr \
    --cc=jbeulich@suse.com \
    --cc=palmer@dabbelt.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).