关于CROSS_COMPILE的问题

cmb44 2011-04-03 04:29:04
经常在make命令中看到 ARCH=arm CROSS_COMPILE=arm-linux
CROSS_COMPILE是指什么呢?
请高手指点
...全文
540 6 打赏 收藏 转发到动态 举报
写回复
用AI写文章
6 条回复
切换为时间正序
请发表友善的回复…
发表回复
cmb44 2011-04-05
  • 打赏
  • 举报
回复
[Quote=引用 2 楼 hahahaha_hax4 的回复:]
Cross Compiling means you work on machine A while compile code for machine B. Here A and B usually have different type of CPU architecture. For example, machine A could be your PC (x86 arch) while mac……
[/Quote]

大概明白了 十分感谢
cmb44 2011-04-05
  • 打赏
  • 举报
回复
[Quote=引用 1 楼 subfate 的回复:]

CROSS_COMPILE指的是交叉编译器(或前缀),这里是arm-linux(-gcc)。
可以在Makefile中指定,也可以在make后指定(如楼主所示)。
[/Quote]
谢谢这位小哥 帮我解决了arm-linux(-gcc)的问题
lgjywjy 2011-04-04
  • 打赏
  • 举报
回复
交叉编译器
Wenxy1 2011-04-04
  • 打赏
  • 举报
回复
交叉编译工具链的环境变量。
export命令可以查看当前shell里定义的环境变量。
哈皮歪詩 2011-04-03
  • 打赏
  • 举报
回复
Cross Compiling means you work on machine A while compile code for machine B. Here A and B usually have different type of CPU architecture. For example, machine A could be your PC (x86 arch) while machine B has an ARM type CPU, so in this case the cross compiler is run on x86 machine, but generate code for ARM. The generated code can be burned into a flash that is on the ARM development board, or it can be downloaded into RAM through other interface, like RS232 or USB etc.

So don't be intimated by the term CROSS COMPILER. There is nothing fancy about it.
李迟 2011-04-03
  • 打赏
  • 举报
回复
CROSS_COMPILE指的是交叉编译器(或前缀),这里是arm-linux(-gcc)。
可以在Makefile中指定,也可以在make后指定(如楼主所示)。

4,441

社区成员

发帖
与我相关
我的任务
社区描述
Linux/Unix社区 内核源代码研究区
社区管理员
  • 内核源代码研究区社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧