Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

关于LoongArch LP64的汇编代码如何编译出来?手头无该类设备的方法? #29

Closed
lingr7 opened this issue Jul 12, 2022 · 4 comments

Comments

@lingr7
Copy link

lingr7 commented Jul 12, 2022

在第4章 软硬件协同的部分,关于c语言代码对应出的汇编代码 4.1.4本书85页。
我尝试了使用 https://godbolt.org/ 发现这个比较流行的网站还没有支持LoongArch 相关的编译工具链。
相反的,这个网站已经支持了许多种编译工具链,包括x86 ,arm, RIsc-v相关的。
可能龙芯可以和这个网站团队合作一下,把LoongArch支持搞起来。

另外,手头没有实体采用LoongArch 的计算机,有无通过qemu模拟器的方法使用相关编译工具链。

@foxsen
Copy link
Owner

foxsen commented Jul 18, 2022

感谢您的建议。回头我们跟那个网站维护者联系下。
关于使用qemu的汇编环境,我做了一个供参考:https://github.com/foxsen/loongarch-assembly
也可以直接使用docker pull foxsen76/loongarch-assembly使用我做好的镜像。

@lingr7 lingr7 closed this as completed Aug 8, 2022
@lingr7
Copy link
Author

lingr7 commented Aug 16, 2022

😂 我今天才发现这个网站,本身也是开源的,https://github.com/compiler-explorer/compiler-explorer ,要配置好本地编译器工具链,也可以对接出这个网站的web ui,希望龙芯官方能够做好支持。

@specialpointcentral
Copy link

joy 我今天才发现这个网站,本身也是开源的,https://github.com/compiler-explorer/compiler-explorer ,要配置好本地编译器工具链,也可以对接出这个网站的web ui,希望龙芯官方能够做好支持。

您好,现在 https://godbolt.org/ 已经支持loongarch64了 (compiler-explorer/compiler-explorer#4162)

@foxsen
Copy link
Owner

foxsen commented Nov 7, 2022

joy 我今天才发现这个网站,本身也是开源的,https://github.com/compiler-explorer/compiler-explorer ,要配置好本地编译器工具链,也可以对接出这个网站的web ui,希望龙芯官方能够做好支持。

您好,现在 https://godbolt.org/ 已经支持loongarch64了 (compiler-explorer/compiler-explorer#4162)

感谢!在大家的努力下,LoongArch的生态正在迅速发展。

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

No branches or pull requests

3 participants