Updating GCC
- Quzar
- Dream Coder
- Posts: 7499
- https://www.artistsworkshop.eu/meble-kuchenne-na-wymiar-warszawa-gdzie-zamowic/
- Joined: Wed Jul 31, 2002 12:14 am
- Location: Miami, FL
- Has thanked: 4 times
- Been thanked: 10 times
- Contact:
Updating GCC
Can someone please help me? Im on a winbox running cygwin and the version of GCC it comes with is 3.3.1 which is supposed to have problems with sh4. Could someone show me what i need to download and how to install it so that it replaces the older version?
"When you post fewer lines of text than your signature, consider not posting at all." - A Wise Man
-
- DC Developer
- Posts: 529
- Joined: Wed Oct 17, 2001 7:44 pm
- Location: Texas
- Has thanked: 0
- Been thanked: 0
- Contact:
rerun the cygwin setup and select the newer version of GCC. Or if I misunderstand your question I think you can download new version of GCC from http://gcc.gnu.org/releases.html - just choose the mirror link and select a mirror to download it from.
Troy
Troy
-
- DC Developer
- Posts: 47
- Joined: Tue Aug 26, 2003 1:54 pm
- Location: Santiago, CL
- Has thanked: 0
- Been thanked: 0
- Contact:
the gcc compiler that you get with cygwin compiles for x86, not sh4. you need to build your 'own' sh4 compiler (sh4-elf-gcc) from the gcc sources. check the tutorial at http://www.hangar-eleven.de/en/devdc-index.html.
- SinisterTengu
- DC Developer
- Posts: 382
- Joined: Wed Oct 17, 2001 7:44 pm
- Location: Arlington, WA
- Has thanked: 0
- Been thanked: 0
Yeah, and actually 3.3.1 as well as 3.4.0 should work if you build them for SH4. I've had no problems with it, but apparently people on the KOS list say you should switch -fno-optimize-sibling-calls in the environ_dreamcast.sh file to -fno-crossjumping. I didn't do this and my rumble pack demo still compiled and worked fine, but I think Dan said stuff like FoF wouldn't compile unless he did switched those flags. I used gcc-3.4.0, binutils-2.14 (2.15 didn't work), and newlib-1.12.0, and followed the hangar-eleven guide (I didn't comment out that thing in errno.h though, I don't think thats needed any more because mine built fine without doing that).
- SinisterTengu
- DC Developer
- Posts: 382
- Joined: Wed Oct 17, 2001 7:44 pm
- Location: Arlington, WA
- Has thanked: 0
- Been thanked: 0
-
- Soul Sold for DCEmu
- Posts: 4865
- Joined: Fri Jul 11, 2003 9:56 pm
- Has thanked: 2 times
- Been thanked: 4 times
Try these together to get better code
-fbranch-probabilities -funroll-loops -frerun-loop-opt -fstrict-aliasing -fomit-frame-pointer -fstrength-reduce -fschedule-insns2 -freduce-all-givs -ffunction-sections -fdata-sections -mieee
Ive found this genrates about as good as you can get.
-fbranch-probabilities -funroll-loops -frerun-loop-opt -fstrict-aliasing -fomit-frame-pointer -fstrength-reduce -fschedule-insns2 -freduce-all-givs -ffunction-sections -fdata-sections -mieee
Ive found this genrates about as good as you can get.
Dreamcast forever!!!