File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -37,7 +37,7 @@ runtime.o: $(objs)
3737 nasm -g -f $(format ) -o $@ $<
3838
3939stdlib.s : stdlib.rkt
40- cat stdlib.rkt | racket -t compile-library.rkt > stdlib.s
40+ cat stdlib.rkt | racket -t compile-library.rkt -m > stdlib.s
4141
4242% .s : % .rkt
4343 cat $< | racket -t compile-stdin.rkt > $@
Original file line number Diff line number Diff line change 11#lang racket
2+ (require "parse.rkt " "compile.rkt " "read-all.rkt " "a86/printer.rkt " )
23(provide main)
3- (require "parse.rkt "
4- "compile.rkt "
5- "read-all.rkt "
6- "a86/printer.rkt " )
74
85;; -> Void
96;; Compile contents of stdin
Original file line number Diff line number Diff line change 11#lang racket
22(require "parse.rkt " "compile.rkt " "read-all.rkt " "a86/printer.rkt " )
3+ (provide main)
34
45;; Compile contents of stdin
56;; emit asm code on stdout
6- (begin
7- (void (read-line)) ; ignore #lang racket line
8- (display (asm-string (compile-library (parse-library (read-all))))))
7+ (define (main)
8+ (begin
9+ (read-line) ; ignore #lang racket line
10+ (displayln (asm-string (compile-library (parse-library (read-all)))))))
You can’t perform that action at this time.
0 commit comments