| Author |
Message |
ze_dib
Joined: 06 Jan 2003 Posts: 81 Location: France
|
06 Feb 2003 11:19 Cross compiling with GCC |
|
|
|
Hi,
I'd like to know how to make a cross compilation with GCC 3.2.
I made several tests with option like -mcpu=860, but gcc send error message about the value 860 that seems to be a not correct value.
The target cpu is a MPC860.
Can someone help me to make it run.
Thanks
Toto2001
|
|
| Back to top |
|
 |
sgrudu
Joined: 14 Dec 2002 Posts: 84 Location: ITALY
|
06 Feb 2003 11:36 |
|
|
|
You must first recompile your gcc to be
a cross compiler !
Get the sources and read the docs
You must run ./configure --target=xxxxx
before running make , make install.
Greets,
sgrudu.
|
|
| Back to top |
|
 |
ze_dib
Joined: 06 Jan 2003 Posts: 81 Location: France
|
06 Feb 2003 11:47 |
|
|
|
Thank, does it make a difference if gcc is run under Windows2000 by mingw ?
TOTO2001
|
|
| Back to top |
|
 |
sgrudu
Joined: 14 Dec 2002 Posts: 84 Location: ITALY
|
06 Feb 2003 12:50 |
|
|
|
sorry, what is "mingw" ???
you just need to recompile gcc, it doesn't matter if you are under win... you need to
read the docs..
|
|
| Back to top |
|
 |
ze_dib
Joined: 06 Jan 2003 Posts: 81 Location: France
|
06 Feb 2003 13:01 |
|
|
|
| MinGW is a Linux emulator for windows, providing a shell for user.
|
|
| Back to top |
|
 |
dainis
Joined: 15 May 2001 Posts: 1453 Helped: 56
|
06 Feb 2003 16:13 |
|
|
|
Look:
CrossGCC Frequently Asked Questions
h**p://w*w.objsw.com/CrossGCC/
|
|
| Back to top |
|
 |