config-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [RFC] Add "riscv-" for embedded cross toolchains


From: Liviu Ionescu
Subject: Re: [RFC] Add "riscv-" for embedded cross toolchains
Date: Tue, 3 Jul 2018 20:54:24 +0300


> On 3 Jul 2018, at 20:41, Jim Wilson <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.

To minimise uncertainty, the embedded cross compilers should not provide such 
defaults, the `-march` option should be mandatory, preferably the `-mabi` 
option too. 

It would be good if the RISC-V compiler would implement this.


Regards,

Liviu




reply via email to

[Prev in Thread] Current Thread [Next in Thread]