LoongArch-Documentation icon indicating copy to clipboard operation
LoongArch-Documentation copied to clipboard

我已经加拿大出来了windows上用的loongarch64-linux-gnu-g++ 13的交叉工具链。

Open trcrsired opened this issue 2 years ago • 5 comments

有没有想过你们也提供这个? https://github.com/trcrsired/windows-hosted-loongarch64-linux-gnu-gcc-cross-comiler

还有loongarch这个体系结构支持addcarry么?令人很不爽的关于riscv就是没有任何办法处理addcarry和subborrow.

加上herb sutter的P0709的Herbceptions需要额外的标志位表示函数是否出错,x86和arm上是用的carry位。但看loongarch似乎也没有标志位是么?有没有什么替代方案?

trcrsired avatar Jun 06 '22 07:06 trcrsired

有没有想过你们也提供这个? https://github.com/trcrsired/windows-hosted-loongarch64-linux-gnu-gcc-cross-comiler

龙芯的人评估一下?

还有loongarch这个体系结构支持addcarry么?令人很不爽的关于riscv就是没有任何办法处理addcarry和subborrow.

加上herb sutter的P0709的Herbceptions需要额外的标志位表示函数是否出错,x86和arm上是用的carry位。但看loongarch似乎也没有标志位是么?有没有什么替代方案?

LBT 扩展有 carry 位,有 adc 指令,可用(不知道有没有向量版)

基础指令集肯定是没有的,carry 位是个额外状态,想想也没地方存

xen0n avatar Jun 06 '22 07:06 xen0n

https://github.com/cppfastio/fast_io/blob/master/include/fast_io_hosted/platforms/linux/loongarch64.h 还有能帮我看下这个系统调用的实现对么?我是从loongarch克隆的libc查的。传参的寄存器和riscv64一样的

trcrsired avatar Jun 06 '22 08:06 trcrsired

还有类似arm memory tagging extension有考虑扩展一下么?内存标记是目前最有效的保护内存安全问题的解决方案。

trcrsired avatar Jun 06 '22 08:06 trcrsired

https://github.com/cppfastio/fast_io/blob/master/include/fast_io_hosted/platforms/linux/loongarch64.h 还有能帮我看下这个系统调用的实现对么?我是从loongarch克隆的libc查的。传参的寄存器和riscv64一样的

Linux/LoongArch 系统调用传参、返回姿势和 RV 一样的,指令名无所谓(其实是跟 MIPS 一样,MIPS 跟 amd64 一样而已),写得没问题

xen0n avatar Jun 06 '22 09:06 xen0n

还有类似arm memory tagging extension有考虑扩展一下么?内存标记是目前最有效的保护内存安全问题的解决方案。

这个得有请龙芯人士回答咯

xen0n avatar Jun 06 '22 09:06 xen0n