There are many different types of toolchains available here. But I cannot understand which one to use for what. I understood that arm
toolchains should be used for compiling 32-bit architectures.But there are differen arm
toolchains. But again x86
toolchains are also available. Basically I want to understand the difference between the aarch64
, arm
, host
, mips
and x86
. Till now I had been trying all the toolchains for a particular source code and try all of them, but it was hectic task. For example, I extracted the source code from here and aarch64
compiled the source code successfully and I dont understand why? How do I decide which toolchain
should be used for which kernel source?
Asked
Active
Viewed 432 times
1

kjsr7
- 397
- 4
- 20
-
What for? You just need the one for you hardware architecture, needed ABI And host computer if you cross compile.You can usually compile the code with any compiler, but the resulting code will not be very useful. For example if you compile cortex m1code using x86compiler – 0___________ Jul 05 '18 at 07:10
-
For `arm64` architecture, which one is the toolchain that I should use? Is it `arm` or `aarch64` – kjsr7 Jul 05 '18 at 07:41
-
Relations between `arm64` and `aarch64` are described in that question: https://stackoverflow.com/questions/31851611/differences-between-arm64-and-aarch64. Its answers say that both term refers to the same hardware. So, for `arm64` architecture you may use `aarch64` toolchain. – Tsyvarev Jul 05 '18 at 08:15
-
OK. I understood for `arm64` architecture. But for `arm`, there are `arm-eabi-4.x` and `arm-linux-androideabi-4.x`. Similarly for `x86`, there are `i686-linux-android-4.7` and `x86_64-linux-android-4.7`. What's the difference? – kjsr7 Jul 05 '18 at 08:35