[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [RFC] Add "riscv-" for embedded cross toolchains
From: |
Jim Wilson |
Subject: |
Re: [RFC] Add "riscv-" for embedded cross toolchains |
Date: |
Tue, 3 Jul 2018 12:44:05 -0700 |
On Tue, Jul 3, 2018 at 10:54 AM, Liviu Ionescu <address@hidden> wrote:
>> I think Liviu's argument has a flaw. While it is true that both riscv32 and
>> risvc64 can emit both 32-bit and 64-bit code, they have different defaults.
>> riscv32 emits 32-bit by default, and riscv64 emits 64-bit by default. That
>> is a property we lose if we allow riscv, because it won't be obvious if
>> 32-bit or 64-bit code is the default.
>
> The defaults you mention apply to the Linux compilers, which are not the
> topic of this thread.
Ben's latest patch suggestion adds riscv-linux support, which makes
linux concerns relevant to this thread.
> To minimise uncertainty, the embedded cross compilers should not provide such
> defaults, the `-march` option should be mandatory, preferably the `-mabi`
> option too.
This would break the embedded cross compilers for most people. I
don't think it would be wise to do this. I'm not aware of any other
GNU toolchain that works this way. There is always a default
architecture and ABI.
Jim
- Re: [RFC] Add "riscv-" for embedded cross toolchains, Ben Elliston, 2018/07/03
- Re: [RFC] Add "riscv-" for embedded cross toolchains, Liviu Ionescu, 2018/07/03
- Re: [RFC] Add "riscv-" for embedded cross toolchains, Ben Elliston, 2018/07/03
- Re: [RFC] Add "riscv-" for embedded cross toolchains, Ben Elliston, 2018/07/09
- Re: [RFC] Add "riscv-" for embedded cross toolchains, Liviu Ionescu, 2018/07/09
- Re: [RFC] Add "riscv-" for embedded cross toolchains, Jim Wilson, 2018/07/09
- Re: [RFC] Add "riscv-" for embedded cross toolchains, Ben Elliston, 2018/07/10
- Re: [RFC] Add "riscv-" for embedded cross toolchains, Jim Wilson, 2018/07/10