QQ登录

只需一步,快速开始

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 1622|回复: 2

请问arm-linux-gcc与arm-elf-gcc

[复制链接]
发表于 2006-12-8 17:50:59 | 显示全部楼层 |阅读模式
请问arm-linux-gcc与arm-elf-gcc到底有什么本质区别,在ARM7上和ARM9上要使用的交叉编译器一定会不一样吗?往SKYEYE上加载的操作系统是不是必须用arm-elf-gcc编译才行,SKYEYE有如下的参数说明“-e exec-file    the (ELF executable format)kernel file name”。
发表于 2006-12-8 23:30:07 | 显示全部楼层
here are some differences between arm-elf, arm-linux, andarm-uclinux toolch ains.

As I know, arm-uclinux-binutils is the same as arm-linux-binutils.
arm-uclinux-gcc was patched from arm-linux-gcc to generate PIC
(Program Independent Code) code without GOT (Global Offset Table);

and arm-elf-gcc is designed for operating system independent
applications. For example, arm-elf-gcc will insert code for initializing
global C++ constructors at the beginning of main(), so even no-OS
platforms can work properly. BTW, they are almost the same while
compiling the Linux kernel.
回复

使用道具 举报

 楼主| 发表于 2006-12-9 20:30:36 | 显示全部楼层
谢谢斑竹
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

GMT+8, 2024-11-23 07:19 , Processed in 0.064078 second(s), 15 queries .

© 2021 Powered by Discuz! X3.5.

快速回复 返回顶部 返回列表