Skip to content

Commit

Permalink
address, rb, bst
Browse files Browse the repository at this point in the history
  • Loading branch information
yangminz committed Jun 14, 2021
1 parent ed82763 commit f9323bd
Show file tree
Hide file tree
Showing 6 changed files with 746 additions and 819 deletions.
14 changes: 14 additions & 0 deletions cmd.py
Original file line number Diff line number Diff line change
Expand Up @@ -262,6 +262,8 @@ def build(key):
"-Wall", "-g", "-O0", "-Werror", "-std=gnu99", "-Wno-unused-but-set-variable", "-Wno-unused-variable", "-Wno-unused-function",
"-I", "./src",
"-DDEBUG_REDBLACK",
"./src/common/convert.c",
"./src/algorithm/bst.c",
"./src/algorithm/redblack.c",
"-o", "./bin/rb"
],
Expand All @@ -276,6 +278,17 @@ def build(key):
"-o", "./bin/trie"
],
],
"bst" : [
[
"/usr/bin/gcc-7",
"-Wall", "-g", "-O0", "-Werror", "-std=gnu99", "-Wno-unused-but-set-variable", "-Wno-unused-variable", "-Wno-unused-function",
"-I", "./src",
"-DDEBUG_BST",
"./src/algorithm/bst.c",
"./src/common/convert.c",
"-o", "./bin/bst"
],
],
}

if not key in gcc_map:
Expand All @@ -294,6 +307,7 @@ def run(key):
"false_sharing" : ["./bin/false_sharing"],
"rb" : ["./bin/rb"],
"trie" : ["./bin/trie"],
"bst" : ["./bin/bst"],
}
if not key in bin_map:
print("input the correct binary key:", bin_map.keys())
Expand Down
Loading

0 comments on commit f9323bd

Please sign in to comment.