Skip to content
This repository has been archived by the owner on Apr 11, 2024. It is now read-only.

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

Open
trcrsired opened this issue Jun 6, 2022 · 5 comments

Comments

@trcrsired
Copy link

有没有想过你们也提供这个?
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似乎也没有标志位是么?有没有什么替代方案?

@xen0n
Copy link
Contributor

xen0n commented Jun 6, 2022

有没有想过你们也提供这个? 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 位是个额外状态,想想也没地方存

@trcrsired
Copy link
Author

trcrsired commented Jun 6, 2022

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

@trcrsired
Copy link
Author

trcrsired commented Jun 6, 2022

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

@xen0n
Copy link
Contributor

xen0n commented Jun 6, 2022

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
Copy link
Contributor

xen0n commented Jun 6, 2022

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

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants