haz*_*ziz 26 c linux arm clang cross-compiling
是否可以为ARM处理器设置Clang进行交叉编译?主机可能在x86上(AMD64 - 可能是Ubuntu 12.04),目标是ARM(Raspberry Pi和Pandaboard - 将为每个进行单独的编译),我可能在某些时候也希望交叉编译PowerPC架构?程序源在C中.
Mar*_*han 28
为Raspberry Pi交叉编译运行soft-float Linux发行版添加标志 -ccc-host-triple arm-eabi -marm -mfpu=vfp -mcpu=arm1176jzf-s -mtune=arm1176jzf-s -mfloat-abi=softfp
为Raspberry Pi交叉编译运行硬浮动Linux发行版使用标志 -ccc-host-triple arm-eabi -marm -mfpu=vfp -mcpu=arm1176jzf-s -mtune=arm1176jzf-s -mfloat-abi=hard
为Pandaboard交叉编译使用标志-ccc-host-triple arm-eabiv7 -mthumb -mfpu=neon-fp16 -mcpu=cortex-a9 -mtune=cortex-a9 -mfloat-abi=hard(假设您的Pandaboard运行Ubuntu)
注意:更新clang版本使用-target选项而不是-ccc-host-triple