projects
/
cdsspec-compiler.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
edits
[cdsspec-compiler.git]
/
src
/
edu
/
uci
/
eecs
/
specCompiler
/
codeGenerator
/
CodeGenerator.java
diff --git
a/src/edu/uci/eecs/specCompiler/codeGenerator/CodeGenerator.java
b/src/edu/uci/eecs/specCompiler/codeGenerator/CodeGenerator.java
index e95ff5fb2ef5439bfd1f7c1833eae1cd388d42fc..492263f2f85801d39287d48de0820747f181f34e 100644
(file)
--- a/
src/edu/uci/eecs/specCompiler/codeGenerator/CodeGenerator.java
+++ b/
src/edu/uci/eecs/specCompiler/codeGenerator/CodeGenerator.java
@@
-288,32
+288,47
@@
public class CodeGenerator {
public static void main(String[] argvs) {
String homeDir = Environment.HOME_DIRECTORY;
public static void main(String[] argvs) {
String homeDir = Environment.HOME_DIRECTORY;
- File[] srcLinuxRWLocks = { new File(homeDir
+ File[] srcLinuxRWLock1 = {
+ new File(homeDir
+ "/benchmark/linuxrwlocks/linuxrwlocks.c") };
+ "/benchmark/linuxrwlocks/linuxrwlocks.c") };
-
+ File[] srcLinuxRWLock2 = {
+ new File(homeDir
+ + "/benchmark/linuxrwlocks/testcase1.c") };
+ File[] srcLinuxRWLock3 = {
+ new File(homeDir
+ + "/benchmark/linuxrwlocks/testcase2.c") };
+//
File[] srcHashtable = {
new File(homeDir
File[] srcHashtable = {
new File(homeDir
- + "/benchmark/cliffc-hashtable/cliffc_hashtable.h"),
- new File(homeDir + "/benchmark/cliffc-hashtable/main.cc") };
+ + "/benchmark/concurrent-hashmap/hashmap.h"),
+ new File(homeDir + "/benchmark/concurrent-hashmap/testcase1.cc"),
+ new File(homeDir + "/benchmark/concurrent-hashmap/main.cc")};
File[] srcMSQueue = {
new File(homeDir + "/benchmark/ms-queue/my_queue.c"),
File[] srcMSQueue = {
new File(homeDir + "/benchmark/ms-queue/my_queue.c"),
- new File(homeDir + "/benchmark/ms-queue/testcase.c"),
+ new File(homeDir + "/benchmark/ms-queue/testcase1.c"),
+ new File(homeDir + "/benchmark/ms-queue/testcase2.c"),
+ new File(homeDir + "/benchmark/ms-queue/testcase3.c"),
new File(homeDir + "/benchmark/ms-queue/main.c"),
new File(homeDir + "/benchmark/ms-queue/my_queue.h") };
File[] srcRCU = { new File(homeDir
+ "/benchmark/read-copy-update/rcu.cc") };
new File(homeDir + "/benchmark/ms-queue/main.c"),
new File(homeDir + "/benchmark/ms-queue/my_queue.h") };
File[] srcRCU = { new File(homeDir
+ "/benchmark/read-copy-update/rcu.cc") };
+//
+ File[] srcTrylock = { new File(homeDir
+ + "/benchmark/trylock/trylock.c") };
File[] srcDeque = {
new File(homeDir + "/benchmark/chase-lev-deque-bugfix/deque.c"),
new File(homeDir + "/benchmark/chase-lev-deque-bugfix/main.c"),
File[] srcDeque = {
new File(homeDir + "/benchmark/chase-lev-deque-bugfix/deque.c"),
new File(homeDir + "/benchmark/chase-lev-deque-bugfix/main.c"),
+ new File(homeDir + "/benchmark/chase-lev-deque-bugfix/testcase1.c"),
+ new File(homeDir + "/benchmark/chase-lev-deque-bugfix/testcase2.c"),
new File(homeDir + "/benchmark/chase-lev-deque-bugfix/deque.h") };
new File(homeDir + "/benchmark/chase-lev-deque-bugfix/deque.h") };
-
+//
File[] srcMCSLock = {
new File(homeDir + "/benchmark/mcs-lock/mcs-lock.cc"),
new File(homeDir + "/benchmark/mcs-lock/mcs-lock.h") };
File[] srcMCSLock = {
new File(homeDir + "/benchmark/mcs-lock/mcs-lock.cc"),
new File(homeDir + "/benchmark/mcs-lock/mcs-lock.h") };
-
+//
File[] srcSPSCQueue = {
new File(homeDir + "/benchmark/spsc-bugfix/spsc-queue.cc"),
new File(homeDir + "/benchmark/spsc-bugfix/eventcount.h"),
File[] srcSPSCQueue = {
new File(homeDir + "/benchmark/spsc-bugfix/spsc-queue.cc"),
new File(homeDir + "/benchmark/spsc-bugfix/eventcount.h"),
@@
-323,10
+338,11
@@
public class CodeGenerator {
new File(homeDir + "/benchmark/mpmc-queue/mpmc-queue.h"),
new File(homeDir + "/benchmark/mpmc-queue/mpmc-queue.cc") };
//
new File(homeDir + "/benchmark/mpmc-queue/mpmc-queue.h"),
new File(homeDir + "/benchmark/mpmc-queue/mpmc-queue.cc") };
//
-// File[][] sources = {
srcLinuxRWLocks,
srcMSQueue, srcRCU,
+// File[][] sources = {
srcLinuxRWLock1 ,
srcMSQueue, srcRCU,
// srcDeque, srcMCSLock, srcSPSCQueue, srcMPMCQueue, srcHashtable };
// srcDeque, srcMCSLock, srcSPSCQueue, srcMPMCQueue, srcHashtable };
- File[][] sources = {srcMSQueue, srcHashtable };
+// File[][] sources = {srcDeque, srcLinuxRWLock1, srcLinuxRWLock2, srcLinuxRWLock3, srcMCSLock, srcHashtable, srcRCU};
+ File[][] sources = {srcMPMCQueue};
// Compile all the benchmarks
for (int i = 0; i < sources.length; i++) {
CodeGenerator gen = new CodeGenerator(sources[i]);
// Compile all the benchmarks
for (int i = 0; i < sources.length; i++) {
CodeGenerator gen = new CodeGenerator(sources[i]);