Chinaunix首页 | 论坛 | 博客
  • 博客访问: 1345908
  • 博文数量: 206
  • 博客积分: 10571
  • 博客等级: 上将
  • 技术积分: 2610
  • 用 户 组: 普通用户
  • 注册时间: 2007-04-30 11:50
文章分类
文章存档

2014年(1)

2013年(4)

2012年(18)

2010年(14)

2009年(31)

2008年(3)

2007年(135)

分类: LINUX

2007-05-14 13:03:59

Compie different source code needs different compiling tools

Compie different source code needs different compiling tools ?
When I am reading the makefiles included in the or1k package,I found that different source code using different compiling tools.As follows:

source file dir       compiling tools
\or1k\uclinux\uC-libc:  
                  or32-elf-ranlib

\or1k\uclinux\userland\route:
          CC = or32-uclibc-gcc
          LD = or32-uclibc-gcc
         
\or1k\uclinux\uClinux-2.0.x:
CROSS_COMPILE    =or32-rtems-
AS    =$(CROSS_COMPILE)as
LD    =$(CROSS_COMPILE)ld
CC    =$(CROSS_COMPILE)gcc -D__KERNEL__ -I$(HPATH)

\or1k\linux\linux-2.4:
CROSS_COMPILE    = or32-uclinux-
AS        = $(CROSS_COMPILE)as
LD        = $(CROSS_COMPILE)ld
CC        = $(CROSS_COMPILE)gcc
My question is:
When we compile different source code(application,the kernel of uclinux,uclibc),the compiling tools must be different?
In my opinion,the compiling tools lie with   ISA(Instruction Set Architecture) and programming language. It has nothing to do with source code if the source is written by the same language.
Please give me hints, thanks in advance!

原文地址:
阅读(718) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~