[VMMAKER] VM configuration incorrect with GCC 3.0.3!

Ned Konz ned at bike-nomad.com
Thu Mar 7 23:55:20 UTC 2002


On Thursday 07 March 2002 02:46 pm, Tim Rowledge wrote:

> > I'm using GCC version 3.0.3 if it matters.
>
> Well I suppose it might somehow. My machine appears to be gcc -v 2.96,
> as delivered on RedHat 7.1 CDs.

I installed GCC 3.0.3 when I was riding the dependency carousel on some other 
package.

I downloaded the sources from the FTP server and made them, and got the same 
bad behavior.

However, I have GCC 2.95.3 around, and I tried using it.

I went:

CC=/usr/local/gcc2/bin/gcc ../squeak/platforms/unix/misc/configure

and it built and ran... ugh!

Looking further, it may be a config issue; the sqUnixConfig.h file generated 
for the two differed as follows:

$ diff -c ../sqUnix*
*** ../sqUnixConfig.h.2.95.3    Thu Mar  7 15:34:11 2002
--- ../sqUnixConfig.h.3.03      Thu Mar  7 15:33:25 2002
***************
*** 111,117 ****

  /* #undef     WORDS_BIGENDIAN */
  /* #undef     DOUBLE_WORD_ALIGNMENT */
! #define       DOUBLE_WORD_ORDER 1

  /* damage containment */

--- 111,117 ----

  /* #undef     WORDS_BIGENDIAN */
  /* #undef     DOUBLE_WORD_ALIGNMENT */
! /* #undef     DOUBLE_WORD_ORDER */

  /* damage containment */

So I tried doing the config for GCC 3.0.3 and then edited the sqUnixConfig.h 
file, defining DOUBLE_WORD_ORDER.

And guess what? It ran!

So I decided to run the tinyBenchmarks:

With 2.95.3:
0 tinyBenchmarks
'42553191 bytecodes/sec; 1283021 sends/sec'

With 3.0.3:
'38811400 bytecodes/sec; 1253071 sends/sec'

So then I changed the -O2 in the Makefile to -O3 and tried compiling again.
It got a bit faster in the sends/sec but slower in the bytecodes/sec...

With 3.0.3, -O3:
 '36802760 bytecodes/sec; 1285996 sends/sec'
 '37383177 bytecodes/sec; 1285003 sends/sec'

Anyway, thought you might be amused.

-- 
Ned Konz
currently: Stanwood, WA
email:     ned at bike-nomad.com
homepage:  http://bike-nomad.com



More information about the Squeak-dev mailing list