| View previous topic :: View next topic |
| Author |
Message |
ooPo Site Admin
Joined: 17 Jan 2004 Posts: 2032 Location: Canada
|
Posted: Fri Mar 12, 2004 7:12 pm Post subject: Hints on compiling using a gcc-3.x toolchain. |
|
|
A few things have changed, but not much. Here's some hints:
1) If you get an error about -mcpu, just change it to -march.
2) Using -march seems to automatically specify a -mips level. Delete the offending -mips.
3) If you get errors about 'puts', add a -fno-builtin to your cflags.
I'm sure someone is going to come along and comment on how wrong I am and there's a better way to do it, to which I respond:
Why am I writing this message instead of you, hmm? |
|
| Back to top |
|
 |
pixel
Joined: 30 Jan 2004 Posts: 791
|
Posted: Fri Mar 12, 2004 7:51 pm Post subject: |
|
|
Hehe :-)
As for the -fno-builtin, maybe you would rather want to disable specific functions, like printf which will use puts which doesn't exist in the iop part. Depends on the amount of builtins to disable. _________________ pixel: A mischievous magical spirit associated with screen displays. The computer industry has frequently borrowed from mythology. Witness the sprites in computer graphics, the demons in artificial intelligence and the trolls in the marketing department. |
|
| Back to top |
|
 |
mrbrown
Joined: 17 Jan 2004 Posts: 1536
|
Posted: Sat Mar 13, 2004 1:15 am Post subject: Re: Hints on compiling using a gcc-3.x toolchain. |
|
|
| ooPo wrote: | A few things have changed, but not much. Here's some hints:
1) If you get an error about -mcpu, just change it to -march.
2) Using -march seems to automatically specify a -mips level. Delete the offending -mips.
3) If you get errors about 'puts', add a -fno-builtin to your cflags.
I'm sure someone is going to come along and comment on how wrong I am and there's a better way to do it, to which I respond:
Why am I writing this message instead of you, hmm? |
Doing a blanket -fno-builtin IMO is a bad idea. To fix puts() add -fno-builtin-printf. See the iop makefiles in ps2drv. |
|
| Back to top |
|
 |
|