Skip to content

Commit

Permalink
Rename bin file
Browse files Browse the repository at this point in the history
  • Loading branch information
perezzini committed Dec 6, 2017
1 parent 422a1bc commit 74222f1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tigermain.sml
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ fun main(args) =
in
String.concat [
"### Program assembly. x64 architecture; AT&T syntax\n\n",
".file\t \""^fileName^".c"^"\""^"\n\n",
".file\t \""^fileName^"\""^"\n\n",
".data\n",
convertStringFragsToString()^"\n",
".text"^"\n",
Expand Down Expand Up @@ -267,7 +267,7 @@ fun main(args) =
()

(* Execute GCC, and run the input program *)
val _ = Process.system("gcc -g -c runtime.c && gcc -g result.s runtime.o -o result && ./result")
val _ = Process.system("gcc -g -c runtime.c && gcc -g result.s runtime.o -o result.bin && ./result.bin")
in
print("\nSuccessful compilation. Errors not found.\n")
end
Expand Down

0 comments on commit 74222f1

Please sign in to comment.