29 lines
596 B
Makefile
29 lines
596 B
Makefile
BINARY_NAME=lambda.exe
|
|
|
|
it:
|
|
@ go build -o ${BINARY_NAME} ./cmd/lambda
|
|
@ chmod +x ${BINARY_NAME}
|
|
|
|
simple: it
|
|
@ ./lambda.exe - < ./samples/simple.txt
|
|
|
|
thunk: it
|
|
@ ./lambda.exe - < ./samples/thunk.txt
|
|
|
|
saccharine: it
|
|
@ ./lambda.exe - < ./samples/saccharine.txt
|
|
|
|
church: it
|
|
@ ./lambda.exe - < ./samples/church.txt
|
|
|
|
prof:
|
|
@ go tool pprof -top profile/cpu.prof
|
|
|
|
graph:
|
|
@ go tool pprof -raw -output=profile/cpu.raw profile/cpu.prof
|
|
@ go tool pprof -svg profile/cpu.prof > profile/cpu.svg
|
|
@ open profile/cpu.svg
|
|
|
|
saccharineX: it
|
|
@ ./lambda.exe -x - < ./samples/saccharine.txt > saccharine.out
|