Re:Intel seems awfully scared of Graviton2. Why pay for this...
by cure on Monday December 13, 2021 @09:34AM
(#29539912)
Right. But even then it does not become that much worse.
Just tell Go to use the appropriate cross compilation chain for the C bits, e.g. `apt install gcc-aarch64-linux-gnu` and set the `CC=aarch64-linux-gnu-gcc` environment variable to compile for arm64. Compilation becomes a bit slower, but it's still manageable.
It's that easy thanks to the foundations laid by the distribution that ships a solid cross-compiler setup (in this example, thank you Debian!) and of course the brilliance of the Go design and toolchain.
Re:Intel seems awfully scared of Graviton2. Why pay for this...
by creamytaco on Monday December 13, 2021 @04:28AM
(#29538105)
Relying on libraries written in C is not an issue if the library doesn't make assumptions about / isn't tied to, a particular architecture. Some do but most (especially newer codebases written to C11 and beyond) don't.
(This holds true for JS/python/… too.)