Chinaunix首页 | 论坛 | 博客
  • 博客访问: 15529788
  • 博文数量: 2005
  • 博客积分: 11986
  • 博客等级: 上将
  • 技术积分: 22535
  • 用 户 组: 普通用户
  • 注册时间: 2007-05-17 13:56
文章分类

全部博文(2005)

文章存档

2014年(2)

2013年(2)

2012年(16)

2011年(66)

2010年(368)

2009年(743)

2008年(491)

2007年(317)

分类: 嵌入式

2010-04-26 13:32:10

luther@gliethttp:~$ man gcc

-EL Compile code for little endian mode.  This is the default.
-EB Compile code for big endian mode.

-mtune=name
           This option is very similar to the -mcpu= option, except that instead of
           specifying the actual target processor type, and hence restricting which
           instructions can be used, it specifies that GCC should tune the performance of
           the code as if the target were of the type specified in this option, but still
           choosing the instructions that it will generate based on the cpu specified by a
           -mcpu= option.  For some ARM implementations better performance can be obtained
           by using this option.

-mtune=24kf # -EL小端编译,-EB大端编译

gcc默认为-EL小端,而mips-linux-gnu-gcc默认使用大端,当然mips-linux-gnu-ld也要加入-EL的参数[luther.gliethttp]

luther@gliethttp:~$ mips-linux-gnu-gcc --version
mips-linux-gnu-gcc (Sourcery G++ Lite 4.3-51) 4.3.2
Copyright (C) 2008 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
阅读(9719) | 评论(1) | 转发(0) |
给主人留下些什么吧!~~