RISC-V tool chain

Sebastian Huber sebastian.huber at embedded-brains.de
Mon May 28 05:23:02 UTC 2018


Hello,

we currently have a riscv32-rtems* and riscv64-rtems* tool chain. 
However, the RISC-V GCC is a bi-arch compiler, e.g. we have

riscv32-rtems5-gcc --print-multi-lib
.;
rv32i/ilp32;@march=rv32i at mabi=ilp32
rv32im/ilp32;@march=rv32im at mabi=ilp32
rv32iac/ilp32;@march=rv32iac at mabi=ilp32
rv32imac/ilp32;@march=rv32imac at mabi=ilp32
rv32imafc/ilp32f;@march=rv32imafc at mabi=ilp32f
rv64imac/lp64;@march=rv64imac at mabi=lp64
rv64imafdc/lp64d;@march=rv64imafdc at mabi=lp64d

riscv64-rtems5-gcc --print-multi-lib
.;
rv32i/ilp32;@march=rv32i at mabi=ilp32
rv32im/ilp32;@march=rv32im at mabi=ilp32
rv32iac/ilp32;@march=rv32iac at mabi=ilp32
rv32imac/ilp32;@march=rv32imac at mabi=ilp32
rv32imafc/ilp32f;@march=rv32imafc at mabi=ilp32f
rv64imac/lp64;@march=rv64imac at mabi=lp64
rv64imafdc/lp64d;@march=rv64imafdc at mabi=lp64d

The only difference is the default ISA.

I suggest to merge the two tool chains into one riscv-rtems* variant.

The riscv64_generic BSP uses -mcmodel=medany. Is this ABI compatible to 
the multilibs which use the default (-mcmodel=medlow)?

-- 
Sebastian Huber, embedded brains GmbH

Address : Dornierstr. 4, D-82178 Puchheim, Germany
Phone   : +49 89 189 47 41-16
Fax     : +49 89 189 47 41-09
E-Mail  : sebastian.huber at embedded-brains.de
PGP     : Public key available on request.

Diese Nachricht ist keine geschäftliche Mitteilung im Sinne des EHUG.



More information about the devel mailing list