(?)
llewelly@dbritsch.dsl.xmission.com
llewelly@dbritsch.dsl.xmission.com
Tue May 9 19:32:00 GMT 2000
On Tue, 9 May 2000, juan uribe wrote:
> hello again. I am not sure if I am mailing to the right list so pardon me
> far it.
You are not. Please send questions about gcc to gcc-help@gcc.gnu.org .
>
> I plan to build the current gcc version but have one question.
>
> What is the difference between native and cross compiler?
A native compiler produces binaries for the same platform it runs on. The
compiler included in a typical linux distribution is an example.
A cross compiler runs on one platform, but produces binaries for a
different platform. An example might be a compiler that runs on an x86
linux box (i686-pc-linux-gnu, for example) which produces binaries
for a sun sparc machine (sparc-sun-solaris2.7, for example.)
>
> What I really want is to be able to compile Fortran, c and c++,
You can compile Fortran, C, or C++ with either a native compiler, or a
cross compiler. (I think there are some host + target combinations that
make the C++ frontend finicky, but I do not remember them.)
If you need a cross compiler, please see
http://www.objsw.com/CrossGCC/
in addition to
http://gcc.gnu.org/install/index.html
which you should read whichever kind of compiler you want.
> should I
> just build a native compiler?
If you plan to run the binaries on the same type of machine you do your
compiling on, you want a native compiler. Otherwise, you want a cross
compiler.
For example, if you will be compiling on i686-pc-linux-gnu, and you
plan to run the resulting binaries on ix86-pc-linux-gnu, you want a
native compiler.
[snip]
More information about the Gcc-bugs
mailing list