SML/NJ 110.9.1

Henry Cejtin henry@sourcelight.com
Wed, 21 Nov 2001 00:54:39 -0600


I  finally  got  around to putting in the mods to 110.9.1 so that it compiles
out of the box on a Red Hat 7.1 machine.  Nothing to strange.   You  have  to
change  2  files  in runtime/mach-dep.  In signal-sysdep.h you have to remove
the definition of struct sigcontext.  In X86.prim.asm you  have  to  fix  the
fact  that  the  assembler now demands that jumps to an address in a register
are not
    jmp     %eax
but instead
    jmp     *%eax

To do this, in the two definitions of CONTINUE you have to change  the  final
lines from
    jmp     via stdcont
and
    jmp     via temp
to
    jmp     * via stdcont
and
    jmp     * via temp

NOTE,  you  CANNOT  just  change via to be `*' because it is also used in the
definition of CHECKLIMIT followed by a symbol, and that will  make  the  jump
indirect.  (What a silly syntax.)

Also in the jmp_ml definition (not a macro) you have to change the jump from
    jmpl    temp            /* Jump to ML code. */
to
    jmpl    * temp          /* Jump to ML code. */

I  didn't test it a bunch, but it seems to work.  (You get a billion warnings
from the  C  preprocessor  about  pasting  things  not  giving  you  a  valid
preprocessing token.)

Here  is  a  context diff with the changes I made to runtime.  In addition to
the ones above, there is also the one to turn of the stupid  GC  messages  by
default.


begin 600 patch.tgz
M'XL(`(A/^SL"`^U6;6_:2!#FJ_D5<XK4`#5@8S`$[GK*41JXXR4*M)>3*B''
M7L.V?I-W31-5_>\WBXU+`B1W'^X^5/L(R?;L[,PSN\_.$EG<7A?^6VBZIIG-
M9D%#-!O:]JEGWX@66@M:VVB;9K/=:IOHK^MMK0!:X7]`PK@5`Q36)(@?GO4C
M,2O\<'"HZT+5AFH,<1)PZI-:&--5?677J1^%,:^NB175[-WHP4"Q4JD\/U59
MK!.X3%8`)FB=;E/K&AKH%Q>=8K5:/1E7^9,X,`TWT-!!$U.ZA@D-%(Y(N(\M
M`=ULJWJ["5N#")L:.H#OU2+`&0FP4GQ)44?*Q'*`KPE,QB`R0J6.P\H-FH?B
ML_2*!K\EK@JOQ.C0B57P6:0"N><D#EBY5WP-9]0%7<%@PWZ_"^&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