Constants crosscompiled now...

Anoq of the Sun anoq@HardcoreProcessing.com
Wed, 03 Oct 2001 21:40:21 +0200


This is a multi-part message in MIME format.
--------------F90A3B877995ED5C00A7CDC5
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

Hello!


I have now succeeded in crosscompiling the lookup-constants
program to Windows and executing it there (attached FYI).
And I've set up the Makefile so that this part is done
just by:

make target=win32 constprog=true

:)

My implementation from the first attempt actually worked!
I just forgot to pass it the name of the output file on
Windows when running it (silly me), which is why it crashed :)

I also changed the fprintf from using \n to using %c ... (char)10
and fopen to use "wb" mode instead of "w" - so that
we get UNIX-linefeeds. The function reading in
the constants will still not work on Windows / Mac
platforms and the like - but I haven't bothered :)

When it links with -lmlton and -lgmp for the lookup-constants
program, these libraries are apparently not used.
I guess it's just from the flags on the command line, and
it doesn't seem to do any harm.


Cheers
-- 
http://www.HardcoreProcessing.com


--------------F90A3B877995ED5C00A7CDC5
Content-Type: text/plain; charset=us-ascii;
 name="mlton_const"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
 filename="mlton_const"

32
26
27
13
0
1
2
4
2
1
0
4000
200
400
100
8
2
4
7
10
20
38
80
100
1c0
18
7
3
29
30
34
32
1
6
25
0
41
20
40
28
12
39
8
2
19
23
38
10040
31
24
10062
21
5
22
4
10036
27
14
17
33
36
10
0
16
77
9
11
13
3
5
4
1
0
2
1
0
2
1073741823
true
true
true
false

--------------F90A3B877995ED5C00A7CDC5--