[MLton-devel] gcc flags

Stephen Weeks MLton@mlton.org
Thu, 24 Apr 2003 15:00:23 -0700


When compiling C code, MLton currently passes the following flags to
gcc on x86.

	-O1
	-fno-strength-reduce
	-fno-strict-aliasing
	-fomit-frame-pointer
	-fschedule-insns
	-fschedule-insns2
	-malign-functions=5
	-malign-jumps=2
	-malign-loops=2
	-mcpu=pentiumpro
	-w

For Sparc, it passes the following.

	-O1
	-Wa,-xarch=v8plusa
	-m32
	-malign-functions=4
	-mcpu=v9
	-mno-epilogue
	-mtune=ultrasparc
	-w

Since we only have the C codegen on Sparcs, it's more important to get
those flags right.  Does anyone have an comments on those flags or
recommendations on what those flags should be?  Or meta-suggestions on
how I might go about discovering the right flags to use?


-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
MLton-devel mailing list
MLton-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mlton-devel