Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Martin Pepin
sysdig
Commits
6fab875d
Commit
6fab875d
authored
Jan 17, 2017
by
Martin Pépin
Browse files
make run marche
parent
6453e6c5
Changes
2
Hide whitespace changes
Inline
Side-by-side
Makefile
View file @
6fab875d
...
...
@@ -3,7 +3,7 @@ TEST_DIR=_test_build
SRC
=
$(
wildcard
cpu/src/
*
.mj
)
CPU
=
$(BUILD_DIR)
/cpu
.PHONY
:
simulator all minijazz fullclean test clean pre_build pdf
.PHONY
:
simulator all minijazz fullclean test clean pre_build pdf
printer
all
:
$(CPU).net
...
...
@@ -26,9 +26,12 @@ $(CPU).net: $(SRC) minijazz pre_build
pre_build
:
cd
cpu
&&
make pre_build
run
:
simulator $(CPU).net
printer
:
ocamlbuild printer.native
run
:
simulator $(CPU).net printer
@
echo
"==> Running CPU"
./simulator/simul.native
--asm
test
/asm/clock.s _CPU_build/cpu.net |
ocaml
printer.
ml
./simulator/simul.native
--asm
test
/asm/clock.s _CPU_build/cpu.net |
./
printer.
native
test
:
minijazz simulator pre_build
@
echo
"==> Building asm tests"
...
...
printer.ml
View file @
6fab875d
...
...
@@ -37,7 +37,7 @@ let update_code code new_code =
let
get_code
input
=
String
.
sub
input
0
7
let
print_date
date
=
Printf
.
printf
"%d - %d - %d
\n
"
date
.
(
0
)
date
.
(
1
)
date
.
(
2
)
Format
.
printf
"%d - %d - %d
@.
"
date
.
(
0
)
date
.
(
1
)
date
.
(
2
)
let
rec
main
code
date
=
let
s
=
ref
(
get_code
(
input_line
stdin
))
in
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment