Start with setting the first three compiler flags that that I set,
-O3,except set -mcpu=G4 and -mtune=G4.
Setting these flags bumped things up to about 4.5 t0 5 mips. Then add
the rest. It seemed like
they all needed to be added together for any real affect (Which makes
sense because they determine
the location and sequencing of functions). The way I did it was to set
up a shell script that did a make
clean-all, set the flags, then ran configure with the configure flags.
This way you only need to change
these items once.
good luck
On Wednesday, October 29, 2003, at 10:27 AM, Daniel Gimpelevich wrote:
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
It's wonderful to see that it runs that way, but there are two things
I would like to point out:
1. I fixed the getcwd problem in the CVS source some time ago. Please
reconcile your sources with CVS before you go any further.
2. No matter how you tweak the config, Bochs will only use one of your
2 processors.
That said, I would like to hear more about breaking the three mips
barrier on my G4 with 10.2.8 and gcc3.3; here is my config:
./configure --enable-cdrom --enable-vbe --enable-all-optimizations -
--enable-sb16=dummy --enable-slowdown --enable-ne2000 --enable-plugins
- --enable-mmx --enable-x86-debugger --enable-pci --with-carbon -
--with-x11 --with-term --enable-port-e9-hack --enable-usb -
--p=/Applications/Bochs-2.1.pre1
On Wednesday, October 29, 2003, at 02:13 AM, Ellwood Nonnemacher
wrote:
I recently downloaded the Bochs-2.1.pre1 source release and to try
out. The environment
I use is as follows:
Mac G5, 2 GHz, dual processor
GCC 3.3
The only configure option i added was --with-carbon so I could get
the osx version.
My first compile did not work. When the make process got to line
2044 in main.cc it complained
about not having enough arguments passed to it. I checked it out and
checked the man pages
and made the following change:
changed line 2044 in main.cc
from getcwd(cwd)
to getwd(cwd)
reason: getcwd requires two argument, the character array cwd, and
a return value for length of array
I ran make again and everything went fine. There were a few warnings
but at this point I will ignore
them unless some problem comes up in running bochs.
I also set the show ips in config.h to 1 so I could get a measure of
how fast things were running.
Well, all the available images booted up and appear to function. My
acid test is to see how
win2000 works.
Started running the install for win2000. Never got passed the
loading files part because it was taking
to long. I checked the ips number and saw it was around the
neighborhood of 3.0 mips. MMMMM...
not real impressive. So I began playing with the options. Several
builds later I ended up with the
following settings:
Following are the compiler flags that worked (i.e., bochs didn't bomb
when run)
CFLAGS="-O3 -mcpu=G5 -mtune=G5 -finline-functions -falign-loops=16
-falign-jumps=16
-falign-functions=16 -falign-labels=16
-falign-loops-max-skip=15 -falign-jumps-max-skip=15
-fprefetch-loop-arrays -fmove-all-movables"
CXXFLAGS="-O3 -mcpu=G5 -mtune=G5 -finline-functions -falign-loops=16
-falign-jumps=16
-falign-functions=16 -falign-labels=16
-falign-loops-max-skip=15
-falign-jumps-max-skip=15
-fprefetch-loop-arrays -fmove-all-movables"
The following were the configure flags
./configure
--prefix=/Users/woodman/projects/bochs-2.1.pre1/bochs_test
--with-carbon
--enable-cpu-level=5 --enable-repeat-speedups
--enable-host-specific-asms
--enable-icache --enable-guest2host-tlb
--disable-mmx
The resulst of these settings during the win2000 install gave me a
resulting mips around 12 to 13.
Pretty dramatic. (still haven't completely installed win2000).
I guess the next step is to start muxing with code. Any suggestions
where to start looking looking
for the best speed gais to start? Any tools I can use to profile
where bochs is spending most of
it's time?
Thanks!
-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive? Does it
help you create better code? SHARE THE LOVE, and help us help
YOU! Click Here: http://sourceforge.net/donate/
_______________________________________________
bochs-developers mailing list
bochs-developers@xxxxxxxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/bochs-developers
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.2 (Darwin)
iD8DBQE/n9xbO/Dos2Fb9DQRAg/+AJ9K9SNxveq44Hc/kgYU0khWQnC6sgCgribG
L7C43hXfMEHvAiXF33q38R4=
=0nkx
-----END PGP SIGNATURE-----
-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive? Does it
help you create better code? SHARE THE LOVE, and help us help
YOU! Click Here: http://sourceforge.net/donate/
_______________________________________________
bochs-developers mailing list
bochs-developers@xxxxxxxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/bochs-developers
-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive? Does it
help you create better code? SHARE THE LOVE, and help us help
YOU! Click Here:
http://sourceforge.net/donate/