Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
llvm-watermarker
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nagayama15
llvm-watermarker
Commits
2e0e0053
Commit
2e0e0053
authored
Jan 14, 2019
by
nagayama15
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
treeへの埋め込み実験を追加
parent
ebadf47e
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
63 additions
and
0 deletions
+63
-0
.gitmodules
.gitmodules
+3
-0
Makefile
example/Makefile
+2
-0
Makefile
example/tree/Makefile
+52
-0
tree
example/tree/tree
+1
-0
aggregate.sh
scripts/aggregate.sh
+4
-0
analyze.sh
scripts/analyze.sh
+1
-0
No files found.
.gitmodules
View file @
2e0e0053
...
...
@@ -10,3 +10,6 @@
[submodule "example/cJSON/cJSON"]
path = example/cJSON/cJSON
url = git://github.com/DaveGamble/cJSON.git
[submodule "example/tree/tree"]
path = example/tree/tree
url = git://github.com/execjosh/tree.git
example/Makefile
View file @
2e0e0053
...
...
@@ -6,6 +6,7 @@ all:
${
MAKE
}
-C
zlib all
${
MAKE
}
-C
lua all
${
MAKE
}
-C
cJSON all
${
MAKE
}
-C
tree all
${
MAKE
}
-C
fizzbuzz-rs all
${
MAKE
}
-C
numguess-rs all
...
...
@@ -15,6 +16,7 @@ test:
${
MAKE
}
-C
zlib
test
${
MAKE
}
-C
lua
test
${
MAKE
}
-C
cJSON
test
${
MAKE
}
-C
tree
test
${
MAKE
}
-C
fizzbuzz-rs
test
${
MAKE
}
-C
numguess-rs
test
...
...
example/tree/Makefile
0 → 100644
View file @
2e0e0053
include
../../common.mk
WATERMARK
:=
tree-watermarking
CFLAGS
:=
CFLAGS_debug
:=
-O0
CFLAGS_release
:=
-O2
-DNDEBUG
CFLAGS
+=
${
CFLAGS_
${
BUILD_TYPE
}}
LDFLAGS
:=
SRCS
:=
\
tree/tree.c
\
tree/unix.c
\
tree/html.c
\
tree/xml.c
\
tree/json.c
\
tree/hash.c
\
tree/color.c
LLS
:=
${
SRCS
:tree/%.c
=
${
OBJ_DIR
}
/%.ll
}
LLS_WM
:=
${
LLS
:%.ll
=%-wm.ll
}
OBJS
:=
${
LLS
:.ll
=.o
}
OBJS_WM
:=
${
LLS_WM
:.ll
=.o
}
.PRECIOUS
:
${LLS} ${LLS_WM}
all
:
\
${BIN_DIR}/tree
\
${BIN_DIR}/tree-wm
test
:
\
${BIN_DIR}/tree
\
${BIN_DIR}/tree-wm
${BIN_DIR}/tree
:
${OBJS}
@
mkdir
-p
${
@D
}
clang
${
CFLAGS
}
-o
$@
$^
${
LDFLAGS
}
${BIN_DIR}/tree-wm
:
${OBJS_WM}
@
mkdir
-p
${
@D
}
clang
${
CFLAGS
}
-o
$@
$^
${
LDFLAGS
}
${OBJ_DIR}/%.o
:
${OBJ_DIR}/%.ll
clang
${
CFLAGS
}
-o
$@
-c
$^
${OBJ_DIR}/%.ll
:
tree/%.c
@
mkdir
-p
${
@D
}
clang
${
CFLAGS
}
-S
-emit-llvm
-o
$@
$<
%-wm.ll
:
%.ll
opt
-load
=
${
ROOT
}
/bin/
${
BUILD_TYPE
}
/src/nykk.so
-block-wm
-watermark
=
${
WATERMARK
}
-S
-o
${
@
:%-wm.ll
=%-block-wm.ll
}
$<
2>
${
@
:%-wm.ll
=%-block-wm.txt
}
opt
-load
=
${
ROOT
}
/bin/
${
BUILD_TYPE
}
/src/nykk.so
-inst-wm
-watermark
=
${
WATERMARK
}
-S
-o
$@
${
@
:%-wm.ll
=%-block-wm.ll
}
2>
${
@
:%-wm.ll
=%-inst-wm.txt
}
tree
@
d26f1e45
Subproject commit d26f1e45f49c6a4f42cba5296704753a57a826e8
scripts/aggregate.sh
View file @
2e0e0053
...
...
@@ -52,6 +52,8 @@ echo "==== lua block-wm ===="
h1 obj/
$1
/example/lua/
*
-block-wm
.txt
echo
"==== cJSON block-wm ===="
h1 obj/
$1
/example/cJSON/
*
-block-wm
.txt
echo
"==== tree block-wm ===="
h1 obj/
$1
/example/tree/
*
-block-wm
.txt
echo
"==== fizzbuzz-rs block-wm ===="
h1 obj/
$1
/example/fizzbuzz-rs/
*
-block-wm
.txt
echo
"==== numguess-rs block-wm ===="
...
...
@@ -65,6 +67,8 @@ echo "==== lua inst-wm ===="
h2 obj/
$1
/example/lua/
*
-inst-wm
.txt
echo
"==== cJSON inst-wm ===="
h2 obj/
$1
/example/cJSON/
*
-inst-wm
.txt
echo
"==== tree inst-wm ===="
h2 obj/
$1
/example/tree/
*
-inst-wm
.txt
echo
"==== fizzbuzz-rs inst-wm ===="
h2 obj/
$1
/example/fizzbuzz-rs/
*
-inst-wm
.txt
echo
"==== numguess-rs inst-wm ===="
...
...
scripts/analyze.sh
View file @
2e0e0053
...
...
@@ -25,3 +25,4 @@ h `ls example/8cc/8cc/*.c | awk -F 'example/8cc/8cc/utiltest.c' '{print $NF}'`
h example/zlib/zlib/
*
.c
h example/lua/lua/
*
.c
h example/cJSON/cJSON/cJSON.c example/cJSON/cJSON/cJSON_Utils.c
h example/tree/tree/
*
.c
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