This commit is contained in:
Dmitry Boulytchev 2020-01-26 07:58:11 +03:00
parent c09a3b36b6
commit 33ec55e76e
6 changed files with 41 additions and 1 deletions

View file

@ -377,7 +377,7 @@ let compile cmd env imports code =
Repmovsl
] @
(if f = "main"
then [Call "L__gc_init"]
then [Call "L__gc_init"; Push (I (12, ebp)); Push (I (8, ebp)); Call "set_args"; Binop ("+", L 8, esp)]
else []
) @
(if f = cmd#topname