pair rv64imafdc with lp64, rt-thread want this#47
Conversation
|
Do you know why the existing pair with lp64d cannot be used? |
Rt-thread want to use lp64 for compiling the kernel(softfp )
The toolchain are use target triple |
in microkernel, soft-float should be used insead |
|
Sorry, I don't get it. The latest release already supports |
Ok, but can't you select soft-float when invoking the compiler? |
compiler is fine, but the libgcc are not, I need the multilib for libgcc
I want libgcc version Therse files only have lp64d version, do not have |
|
I'm reluctant to add new multilibs, since this increases the archive size and the build time. |
This is the most generic and wanted version, |
Are you sure those files really include hard float code? Did you try using them and had any issues? |
It's compiler internal, not safe use it, there will be ABI mismatch issue, this is the issue demo: |
|
If you want to fully avoid hard float, why not use |
Only ABI need to be lp64 |
|
In my opinion this is an unusual configuration. Probably it is better to use the official toolchain recommended by rt-threads. |
It's very usefull, rt-thread have many user, just because xpack do not have this configuration, so rt-thread have to compiled a custom version https://github.com/RT-Thread/rt-thread.git have 11.k stars |
|
They might be successful, but if they rely on custom toolchains, something is not right with the design. |
|
I agree with @ilg-ul - the use of |
It's all about the mciro-kernel, use lp64 ABI will avoid saving the float registers when switch between usermode and kernelmode |
|
What if assembly language files that explicitly use floating point instructions (such as mentioned here) are compiled with |
that's very complicated softfp abi is a very useful |
I don't think it's that complicated. Simply a tweaking of the
And arguably most appropriate where there is no support for, or use of, hard floating point extensions such as |
|
My experience with various RISC-V ABIs is poor, I'm using RISC-V only to run some unit tests on rm32imac and rv64imafdc and everything is fine. I plan to fully port my µOS++ to RISC-V 32/64 and by that time I'll know more about this. For now I'm afraid this PR will not be merged. |
Do you mean "limited" or that you've had bad experiences? |
|
I ment limited, but, if you remember the long arguments I had in the early years with the Berkeley team about the need of an embedded ABI, the experience wasn't good either. |
Closes: #46