Skip to content

Commit

Permalink
Error fix when calling an external call with not fixed arguments
Browse files Browse the repository at this point in the history
  • Loading branch information
perezzini committed Dec 2, 2017
1 parent a2706cf commit da8e043
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions tigercodegen.sml
Original file line number Diff line number Diff line change
Expand Up @@ -213,15 +213,14 @@ struct
let
val diff = List.length args - List.length (tigerframe.argregs)
in
(* preguntar si es _allocRecord *)
emit(OPER{
assem="movq $0, `d0 # added\n",
assem="movq $0, `d0 # SOME EXTERNAL CALLS' PARAMETERS ARE NOT FIXED\n",
src=[],
dst=[tigerframe.rv],
jump=NONE
});
emit(OPER{
assem="call "^f^"\n",
assem="call "^f^" # FROM munchStm(); diff = "^Int.toString diff^"\n",
src=(munchArgs args) @ [tigerframe.rv],
dst=tigerframe.calldefs,
jump=NONE
Expand Down

0 comments on commit da8e043

Please sign in to comment.