[comp.windows.x] purdue speedups and gcc on ultrix

rusty@GARNET.BERKELEY.EDU (12/21/88)

With Ultrix 2.2 I couldn't get a working qdss server using gcc 1.31.
When starting the server would complain about timing out loading the
color map.  Has anybody gotten it to work?

Also, for people playing with the Purdue speedups; I asked Gene
Spafford what flags he uses with gcc and he recommended

	-finline-functions
	-fstrength-reduce
	-fcombine-regs
	-fomit-frame-pointer
	-m68881

In general, when compiling any of the x11 stuff you should use the
-traditional and -fwritable-strings flags.  In my site.def file I have

#define OptimizedCDebugFlags	-O -traditional -fwritable-strings

and then in the Sun.macros file I have

#define ServerGCCDefines -finline-functions -fstrength-reduce -fcombine-regs -fomit-frame-pointer -m68881

#define ServerDefines SunWindowsDefines ServerGCCDefines -DPURDUE

(Ignoring the SunOSPlatform and OSMajorVersion stuff around
ServerDefines.)

swick@ATHENA.MIT.EDU (Ralph R. Swick) (12/21/88)

> With Ultrix 2.2 I couldn't get a working qdss server using gcc 1.31.

You'll have to compile the file server/ddx/dec/qdss/libtl/tldma.c
without optimization, or possibly even with pcc (using the stuff
you'll find in the Imakefile), in order to get an object file
that does the right thing with VAX i/o space.

grunwald@m.cs.uiuc.edu (12/21/88)

The problem with the color initialization is a count-down timeout loop that
gets optimized away by GCC.

To fix it, find the error message & compile that file with -volatile.

however, that won't solve your problems. Gcc 1.31 has some problems
compiling X11R3 and you should probably just wait for 1.32.

btw, `vcc' doesn't cut it either.