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
ebadf47e
Commit
ebadf47e
authored
Jan 14, 2019
by
nagayama15
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cJSONへの埋め込み実験を追加
parent
afaa67f8
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
56 additions
and
0 deletions
+56
-0
.gitmodules
.gitmodules
+3
-0
Makefile
example/Makefile
+2
-0
Makefile
example/cJSON/Makefile
+45
-0
cJSON
example/cJSON/cJSON
+1
-0
aggregate.sh
scripts/aggregate.sh
+4
-0
analyze.sh
scripts/analyze.sh
+1
-0
No files found.
.gitmodules
View file @
ebadf47e
...
@@ -7,3 +7,6 @@
...
@@ -7,3 +7,6 @@
[submodule "example/lua/lua"]
[submodule "example/lua/lua"]
path = example/lua/lua
path = example/lua/lua
url = git://github.com/lua/lua.git
url = git://github.com/lua/lua.git
[submodule "example/cJSON/cJSON"]
path = example/cJSON/cJSON
url = git://github.com/DaveGamble/cJSON.git
example/Makefile
View file @
ebadf47e
...
@@ -5,6 +5,7 @@ all:
...
@@ -5,6 +5,7 @@ all:
${
MAKE
}
-C
8cc all
${
MAKE
}
-C
8cc all
${
MAKE
}
-C
zlib all
${
MAKE
}
-C
zlib all
${
MAKE
}
-C
lua all
${
MAKE
}
-C
lua all
${
MAKE
}
-C
cJSON all
${
MAKE
}
-C
fizzbuzz-rs all
${
MAKE
}
-C
fizzbuzz-rs all
${
MAKE
}
-C
numguess-rs all
${
MAKE
}
-C
numguess-rs all
...
@@ -13,6 +14,7 @@ test:
...
@@ -13,6 +14,7 @@ test:
${
MAKE
}
-C
8cc
test
${
MAKE
}
-C
8cc
test
${
MAKE
}
-C
zlib
test
${
MAKE
}
-C
zlib
test
${
MAKE
}
-C
lua
test
${
MAKE
}
-C
lua
test
${
MAKE
}
-C
cJSON
test
${
MAKE
}
-C
fizzbuzz-rs
test
${
MAKE
}
-C
fizzbuzz-rs
test
${
MAKE
}
-C
numguess-rs
test
${
MAKE
}
-C
numguess-rs
test
...
...
example/cJSON/Makefile
0 → 100644
View file @
ebadf47e
include
../../common.mk
WATERMARK
:=
cJSON-watermarking
CFLAGS
:=
CFLAGS_debug
:=
-O0
CFLAGS_release
:=
-O2
-DNDEBUG
CFLAGS
+=
${
CFLAGS_
${
BUILD_TYPE
}}
SRCS
:=
\
cJSON/cJSON.c
\
cJSON/cJSON_Utils.c
LLS
:=
${
SRCS
:cJSON/%.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}/libcjson.a
\
${BIN_DIR}/libcjson-wm.a
test
:
\
${BIN_DIR}/libcjson.a
\
${BIN_DIR}/libcjson-wm.a
${BIN_DIR}/libcjson.a
:
${OBJS}
${BIN_DIR}/libcjson-wm.a
:
${OBJS_WM}
%.a
:
@
mkdir
-p
${
@D
}
${
AR
}
rcs
$@
$^
${OBJ_DIR}/%.o
:
${OBJ_DIR}/%.ll
clang
${
CFLAGS
}
-o
$@
-c
$^
${OBJ_DIR}/%.ll
:
cJSON/%.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
}
cJSON
@
c69134d0
Subproject commit c69134d01746dcf551dd7724b4edb12f922eb0d1
scripts/aggregate.sh
View file @
ebadf47e
...
@@ -50,6 +50,8 @@ echo "==== zlib block-wm ===="
...
@@ -50,6 +50,8 @@ echo "==== zlib block-wm ===="
h1 obj/
$1
/example/zlib/zlib-block-wm/
*
-block-wm
.txt
h1 obj/
$1
/example/zlib/zlib-block-wm/
*
-block-wm
.txt
echo
"==== lua block-wm ===="
echo
"==== lua block-wm ===="
h1 obj/
$1
/example/lua/
*
-block-wm
.txt
h1 obj/
$1
/example/lua/
*
-block-wm
.txt
echo
"==== cJSON block-wm ===="
h1 obj/
$1
/example/cJSON/
*
-block-wm
.txt
echo
"==== fizzbuzz-rs block-wm ===="
echo
"==== fizzbuzz-rs block-wm ===="
h1 obj/
$1
/example/fizzbuzz-rs/
*
-block-wm
.txt
h1 obj/
$1
/example/fizzbuzz-rs/
*
-block-wm
.txt
echo
"==== numguess-rs block-wm ===="
echo
"==== numguess-rs block-wm ===="
...
@@ -61,6 +63,8 @@ echo "==== zlib inst-wm ===="
...
@@ -61,6 +63,8 @@ echo "==== zlib inst-wm ===="
h2 obj/
$1
/example/zlib/zlib-inst-wm/
*
-inst-wm
.txt
h2 obj/
$1
/example/zlib/zlib-inst-wm/
*
-inst-wm
.txt
echo
"==== lua inst-wm ===="
echo
"==== lua inst-wm ===="
h2 obj/
$1
/example/lua/
*
-inst-wm
.txt
h2 obj/
$1
/example/lua/
*
-inst-wm
.txt
echo
"==== cJSON inst-wm ===="
h2 obj/
$1
/example/cJSON/
*
-inst-wm
.txt
echo
"==== fizzbuzz-rs inst-wm ===="
echo
"==== fizzbuzz-rs inst-wm ===="
h2 obj/
$1
/example/fizzbuzz-rs/
*
-inst-wm
.txt
h2 obj/
$1
/example/fizzbuzz-rs/
*
-inst-wm
.txt
echo
"==== numguess-rs inst-wm ===="
echo
"==== numguess-rs inst-wm ===="
...
...
scripts/analyze.sh
View file @
ebadf47e
...
@@ -24,3 +24,4 @@ h() {
...
@@ -24,3 +24,4 @@ h() {
h
`
ls
example/8cc/8cc/
*
.c |
awk
-F
'example/8cc/8cc/utiltest.c'
'{print $NF}'
`
h
`
ls
example/8cc/8cc/
*
.c |
awk
-F
'example/8cc/8cc/utiltest.c'
'{print $NF}'
`
h example/zlib/zlib/
*
.c
h example/zlib/zlib/
*
.c
h example/lua/lua/
*
.c
h example/lua/lua/
*
.c
h example/cJSON/cJSON/cJSON.c example/cJSON/cJSON/cJSON_Utils.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