Koromix / koffi

Fast and easy-to-use C FFI module for Node.js
https://koffi.dev/
MIT License
202 stars 4 forks source link

Is there a plan to support Loongson? #204

Open 317764920 opened 3 weeks ago

317764920 commented 3 weeks ago

It's a great project!!! Can we support loongarch64? Or can I rebuild from the source code? thanks

Koromix commented 3 weeks ago

A big part of Koffi is architecture-specific code (both C++ and assembly). I haven't done anything to MIPS (or even PowerPC) C ABIs yet.

How popular is Loongson / MIPS64 at the moment?

317764920 commented 3 weeks ago

A big part of Koffi is architecture-specific code (both C++ and assembly). I haven't done anything to MIPS (or even PowerPC) C ABIs yet.

How popular is Loongson / MIPS64 at the moment?

The MIPS64 architecture is not what I want. What I want is the Loong64 architecture Of course, I think the Loong64 architecture will become more and more popular, and it is already officially recognized and supported by linux Can you help me? I'd really appreciate it

Koromix commented 3 weeks ago

Well, I guess that points to how much I know (or in this case, don't know) about Loong64 :)

I don't know when I can work on that. If it's close enough to RISCV-64 (for the ISA part and the C ABI), porting the RV64-specific code would be the easiest option:

I may try to work on this relatively soon but keep in mind, Koffi is a side project for me. I love working on it. But I have many other things on my plate, including an actual job that has nothing to do with Koffi (or even Node.js) unfortunately.

However I'm available for hire, for 1200€ I can do it within 4 weeks, if you want ;)

317764920 commented 3 weeks ago

Thank you, I will also actively promote this work. I will try to contact the developers of Loong64 architecture to see if I can get corresponding support. If I have any progress, I am willing to mention pr