[comp.windows.x] Novice X queries

eric@eddie.MIT.EDU (Eric Van Tassell) (10/18/88)

	Thanks to Jim Fulton for the assist with the build process. I've
	now got "something" running which prompts the following questions.


	1) While making ddx/cfb my c compiler upchucked on cfbbitblt
	   by running out of memory in some internal routine called
	   <iropt>. I got around this by hacking the makefile and
	   turning -O off. Is this normal?


	2) uwm acts differently than it did when I built X on our
	   sun-3's. After I say uwm&, I hear the beep but never
	   get the mouse menu whether I click left,middle, or right.
	   clues?


	3) What do I have to do to get things in color ?

	4) Does anyone have a clear explanation of .Xdefaults and
	   the sort of things one might put in it.


	5) My sources are early X11R2 (around march 88) and I know
	   there are patches I should get and apply. How do I get
	   them and apply them?

	6) Is there a list of alleged speed ups for the server w/color?
	   The X man paged was depressing about this topic ?


				Eric Van Tassell
				eric@eddie.mit.edu

jim@EXPO.LCS.MIT.EDU (Jim Fulton) (10/19/88)

I believe that it is best to turn the optimizer off for everything.


> 3) What do I have to do to get things in color ?

Set Foreground and Background resources in your .Xresources (or whatever you
use; I'll send a little tutorial separately) or use the -fg and -bg command
line switches on most programs.

You get patches by sending mail to xstuff@expo.lcs.mit.edu as follows:

	%  mail xstuff@expo.lcs.mit.edu
	Subject:  help
	path email-path-back-to-you
	^D

The email-path-back-to-you line is optional; if you don't trust your mailer to
put a valid return path in your message, then give it.  It will then send you
back a message describing how to use the archive server.  Then type

	%  mail xstuff@expo.lcs.mit.edu
	Subject:  index fixes
	path email-path-back-to-you
	^D

There are patches available via anonymous ftp from expo as
contrib/PURDUE-speedups.shar.

guy@auspex.UUCP (Guy Harris) (10/20/88)

>I believe that it is best to turn the optimizer off for everything.

Why?  I can see it for bitblt code (I think it's turned off for
compiling at least some of the bitblt code in SunView), but almost all
of SunOS is compiled with "-O2" for the Sun-4.

Note also that you needn't turn off *all* optimization; if you just want
to turn off the "global" optimizer ("iropt"), you can use "-O1".