recompiled SBL6 libs

vbt

Staff member
Here is a small archive containing the recompiled libraries with the latest GNUSH (4.01) I didn't notice changes with the 3.03 release. You can use those libs for tests,I used them for now only on emus (soon on mySaturn 🙂).

My only "problem" is that above all recompiled libs are bigger than original libs. I used these comands to compile/assemble :

gasm xxxx.s -small -o xxxx.o (I have no idea if there are better options)

gcc -m2 -O3 -fomit-frame-pointer -D_SH -DMODEL_S -Wall ....
 
My only "problem" is that above all recompiled libs are bigger than original libs. I used these comands to compile/assemble :

gasm xxxx.s -small -o xxxx.o (I have no idea if there are better options)

gcc -m2 -O3 -fomit-frame-pointer -D_SH -DMODEL_S -Wall ....

-O3 probably does more harm than good on Saturn. Personally I'd go with -O1 or even -Os
 
Originally posted by ExCyber@Mar 22, 2004 @ 04:36 AM

My only "problem" is that above all recompiled libs are bigger than original libs. I used these comands to compile/assemble :

gasm xxxx.s -small -o xxxx.o (I have no idea if there are better options)

gcc -m2 -O3 -fomit-frame-pointer -D_SH -DMODEL_S -Wall ....

-O3 probably does more harm than good on Saturn. Personally I'd go with -O1 or even -Os

Can't you use -Os with -O1 (or 2/3)? -Os would probably help though.
 
Originally posted by ExCyber@Mar 22, 2004 @ 06:36 AM

-O3 probably does more harm than good on Saturn. Personally I'd go with -O1 or even -Os

I didn't know -Os option :blush:
 
I know Ian Michael has had good luck using it on the Dreamcast (though in that case it was along with -O3). Helps a lot with a small cache. I guess the only way to see what is the best is to test different combinations out, see what you can squeeze out of GCC.
 
Can't you use -Os with -O1 (or 2/3)?

*digs up GCC manual*

Nope. It is valid syntax to specify them together, but only the last one specified actually has any effect. -Os is basically -O2 without alignment and prefetch optimizations.
 
Originally posted by ExCyber@Mar 23, 2004 @ 08:47 PM

Nope. It is valid syntax to specify them together, but only the last one specified actually has any effect. -Os is basically -O2 without alignment and prefetch optimizations.

I have compiled the libs with the -Os option but I don't have any idea on how the perf will be decreased or not comparing to the -O2 option.

The new vcompiled version is here
 
Back
Top