Debian Codegraph @

doc/guide/src/RunningOnSparc.adoc

raw
1 = RunningOnSparc
2
3 MLton runs fine on the Sparc architecture.
4
5 == Notes
6
7 * When compiling for Sparc, MLton targets the 32-bit Sparc
8 architecture (i.e., Sparc V8).
9
10 * When compiling for Sparc, MLton doesn't support native code
11 generation (`-codegen native`). Hence, performance is not as good as
12 it might be and compile times are longer. Also, the quality of code
13 generated by `gcc` is important. By default, MLton calls `gcc -O1`.
14 You can change this by calling MLton with `-cc-opt -O2`. We have seen
15 this speed up some programs by as much as 30%, especially those
16 involving floating point; however, it can also more than double
17 compile times.
18
19 * When compiling for Sparc, MLton uses `-align 8` by default. While
20 this speeds up reals, it also may increase object sizes. If your
21 program does not make significant use of reals, you might see a
22 speedup with `-align 4`.
23
24 == Known issues
25
26 * Bootstrapping on the <<RunningOnSparc#,Sparc architecture>> is so slow
27 as to be impractical (many hours on a 500MHz UltraSparc). For this
28 reason, we strongly recommend building with a
29 <<CrossCompiling#,cross compiler>>.
30
31 == Also see
32
33 * <<RunningOnSolaris#>>