X-Git-Url: http://plrg.eecs.uci.edu/git/?p=cdsspec-compiler.git;a=blobdiff_plain;f=src%2Fedu%2Fuci%2Feecs%2FspecCompiler%2FcodeGenerator%2FCodeGenerator.java;h=fe4fd3bb85d6b00e45ace6c1dc9c83748f1f7360;hp=08b8ee76b17f5032c36223f8dfd234b50ea9a009;hb=079a827884448a407adccbe1ae2696cafcaa0e0e;hpb=574370fb84b50f462162260fda11eff80e90b867 diff --git a/src/edu/uci/eecs/specCompiler/codeGenerator/CodeGenerator.java b/src/edu/uci/eecs/specCompiler/codeGenerator/CodeGenerator.java index 08b8ee7..fe4fd3b 100644 --- a/src/edu/uci/eecs/specCompiler/codeGenerator/CodeGenerator.java +++ b/src/edu/uci/eecs/specCompiler/codeGenerator/CodeGenerator.java @@ -288,36 +288,46 @@ public class CodeGenerator { public static void main(String[] argvs) { String homeDir = Environment.HOME_DIRECTORY; -// File[] srcLinuxRWLocks = { new File(homeDir -// + "/benchmark/linuxrwlocks/linuxrwlocks.c") }; -// -// File[] srcHashtable = { -// new File(homeDir -// + "/benchmark/cliffc-hashtable/cliffc_hashtable.h"), -// new File(homeDir + "/benchmark/cliffc-hashtable/main.cc") }; + File[] srcLinuxRWLock1 = { + new File(homeDir + + "/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 + + "/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"), 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") }; + 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"), -// new File(homeDir + "/benchmark/chase-lev-deque-bugfix/testcase.c"), -// new File(homeDir + "/benchmark/chase-lev-deque-bugfix/deque.h") }; + 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"), + 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") }; // -// 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"), @@ -331,7 +341,7 @@ public class CodeGenerator { // File[][] sources = { srcLinuxRWLocks, srcMSQueue, srcRCU, // srcDeque, srcMCSLock, srcSPSCQueue, srcMPMCQueue, srcHashtable }; - File[][] sources = {srcMSQueue }; + File[][] sources = {srcDeque}; // Compile all the benchmarks for (int i = 0; i < sources.length; i++) { CodeGenerator gen = new CodeGenerator(sources[i]);