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) |