Hello,
I would like to use cross compiler in order to build applications for my Pi4. I need it for both - Windows and Linux OS's. What cross compilers are available in general? Which ones are most popular?
Re: Selecting cross compiler
GCC : https://freckled.dev/how-to/2019/07/29/ ... scompiler/
Clang : https://solarianprogrammer.com/2019/05/ ... pberry-pi/
Rust : https://chacin.dev/blog/cross-compiling ... pberry-pi/
Clang : https://solarianprogrammer.com/2019/05/ ... pberry-pi/
Rust : https://chacin.dev/blog/cross-compiling ... pberry-pi/
Memory in C++ is a leaky abstraction .
Re: Selecting cross compiler
Throw this one on the pile: https://ziglang.org/ Besides just compiling the "Zig" language, it's actually a whole cross-compiling toolchain for Clang + LLVM for a fantastic number of targets all in an impossibly small package of like 30 MB. https://ziglang.org/documentation/master/#Targets Looks like you can use pretty much any platform you want as a host.
I just used it to get code up and running on the GameBoy Advance even!
I just used it to get code up and running on the GameBoy Advance even!

Last edited by slembcke on Sun Jan 17, 2021 7:48 am, edited 1 time in total.
Re: Selecting cross compiler
Agreed, using Zig here!
-
- Posts: 1239
- Joined: Sat Nov 09, 2019 12:14 pm
Re: Selecting cross compiler
The mods don't like it when you use the word "ridiculous" on this forum.
GitD's list of things that are not ready for prime time:
1) IPv6
2) 64 bit OSes
3) USB 3
4) Bluetooth
Loves Linux; loves to dance.
1) IPv6
2) 64 bit OSes
3) USB 3
4) Bluetooth
Loves Linux; loves to dance.
Re: Selecting cross compiler
Not sure I get why, but there are plenty of other adjectives I guess. Fantastic it is.GlowInTheDark wrote: ↑Sat Jan 16, 2021 5:15 pmThe mods don't like it when you use the word "ridiculous" on this forum.