edits
[cdsspec-compiler.git] / src / edu / uci / eecs / specCompiler / codeGenerator / CodeGenerator.java
index 95637ee7ab07b64a844e8a8609ccf5a5e9f52ea5..c75fd81a48566e72c53733e1ce94e945f05e83ad 100644 (file)
@@ -288,8 +288,15 @@ public class CodeGenerator {
        public static void main(String[] argvs) {
                String homeDir = Environment.HOME_DIRECTORY;
 
-//             File[] srcLinuxRWLocks = { new File(homeDir
-//                             + "/benchmark/linuxrwlocks/linuxrwlocks.c") };
+               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
@@ -305,11 +312,11 @@ public class CodeGenerator {
                                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[] srcTrylock = { new File(homeDir
+                               + "/benchmark/trylock/trylock.c") };
 
 //             File[] srcDeque = {
 //                             new File(homeDir + "/benchmark/chase-lev-deque-bugfix/deque.c"),
@@ -317,9 +324,9 @@ public class CodeGenerator {
 //                             new File(homeDir + "/benchmark/chase-lev-deque-bugfix/testcase.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"),
@@ -333,7 +340,7 @@ public class CodeGenerator {
 //             File[][] sources = { srcLinuxRWLocks,  srcMSQueue, srcRCU,
 //                             srcDeque, srcMCSLock, srcSPSCQueue, srcMPMCQueue, srcHashtable };
 
-                File[][] sources = {srcMSQueue, srcHashtable};
+                File[][] sources = {srcRCU};
                // Compile all the benchmarks
                for (int i = 0; i < sources.length; i++) {
                        CodeGenerator gen = new CodeGenerator(sources[i]);