Hello!
Can Gambit be used on Arm SoCs like e.g. Raspberry Pi and Orange Pi? If it currently can't be used there, is it difficult to change this, i.e. to port Gambit to the Arm and perhaps also to the RISC-V architectures? Are there any plans to do this?
Best regards,
T.
Afficher les réponses par date
The Gambit system is, in its delivered form, essentially just portable C code. I have build Gambit on RPI in the past with no problem, except perhaps the long build time due to the small amount of RAM (you may also have to disable some C level optimizations, for example avoid the --enable-single-host configure option, so that the C compiler does not choke on large files).
Once built, the Gambit compiler will generate C code, so you don’t have to worry about the processor type. There are experimental ARM and RISC-V code generators, but I haven’t used them in a while so they may have suffered from bitrot. In any case you don’t need those backends in the typical workflow.
Marc
On Jul 27, 2023, at 2:27 PM, Torbjörn Svensson Diaz torbjorn_svensson_diaz@yahoo.com wrote:
Hello!
Can Gambit be used on Arm SoCs like e.g. Raspberry Pi and Orange Pi? If it currently can't be used there, is it difficult to change this, i.e. to port Gambit to the Arm and perhaps also to the RISC-V architectures? Are there any plans to do this?
Best regards,
T.
Gambit-list mailing list Gambit-list@iro.umontreal.ca https://mailman.iro.umontreal.ca/cgi-bin/mailman/listinfo/gambit-list
Jul 27, 2023 13:28:03 Torbjörn Svensson Diaz torbjorn_svensson_diaz@yahoo.com:
Hello!
Can Gambit be used on Arm SoCs like e.g. Raspberry Pi and Orange Pi? If it currently can't be used there, is it difficult to change this, i.e. to port Gambit to the Arm and perhaps also to the RISC-V architectures? Are there any plans to do this?
Yeah, Gambit works just fine on ARM, at least the C backend does. I've compiled it on Raspberry Pi, Android phones (using Termux or similar), even a Nokia N710 "Internet Tablet".
The experience on RISC-V should be similar, if you can boot full Linux on the board.
--Jeff
I have sucessfully compiled Gambit 4.9.4 on both arm7hf and aarch64 architectures.
You may need to add "-fsigned-chars" to CFLAGS. And clang usually doesn't work.
Have a nice day,
Alexander
Am 27. Juli 2023 20:27:52 MESZ schrieb "Torbjörn Svensson Diaz" torbjorn_svensson_diaz@yahoo.com:
Hello!
Can Gambit be used on Arm SoCs like e.g. Raspberry Pi and Orange Pi? If it currently can't be used there, is it difficult to change this, i.e. to port Gambit to the Arm and perhaps also to the RISC-V architectures? Are there any plans to do this?
Best regards,
T.
Gambit-list mailing list Gambit-list@iro.umontreal.ca https://mailman.iro.umontreal.ca/cgi-bin/mailman/listinfo/gambit-list