6 ms·
Java's main feature is compile once - run (almost) anywhere. From embedded to mainframe as long as a JVM is available. How does Go stack up for cross-platform
by _JamesA_ 11y ago
Java's main feature is compile once - run (almost) anywhere. From embedded to mainframe as long as a JVM is available.
How does Go stack up for cross-platform development? Does every application and library have to be (re)compiled for the target platform?
What about support for alternative architectures (ARM, PowerPC, etc)?
- aikah 11y agoAFAIK Go support cross-compilation for multiple targets... as long as one isn't linking C libraries.
- xienze 11y agoGo does require recompilation for every platform, but I'll give them this, it's very painless. Apparently in 1.5 you can just set an environment variable for your architecture and one for your OS and you're good to go.