// Sort code additions
HashSet<String> headers = CodeVariables.getAllHeaders(_semantics);
- ArrayList<String> headerCode = new ArrayList<String>(headers.size());
+ ArrayList<String> headerCode = new ArrayList<String>();
for (String header : headers) {
headerCode.add("#include " + header);
}
public static void main(String[] argvs) {
String homeDir = Environment.HOME_DIRECTORY;
File[] srcFiles = {
- // new File(homeDir
- // + "/benchmark/linuxrwlocks/linuxrwlocks.c") };
- // new File(homeDir
- // +
- // "/benchmark/cliffc-hashtable/simplified_cliffc_hashtable.h"),
- // };
- // new File(homeDir + "/benchmark/ms-queue/my_queue.c"),
- // new File(homeDir + "/benchmark/ms-queue/main.c"),
- // new File(homeDir + "/benchmark/ms-queue/my_queue.h") };
-
- // new File(homeDir + "/benchmark/read-copy-update/rcu.cc") };
-
- // 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/deque.h") };
+// new File(homeDir
+// + "/benchmark/linuxrwlocks/linuxrwlocks.c") };
+// new File(homeDir
+// +
+// "/benchmark/cliffc-hashtable/simplified_cliffc_hashtable.h"),
+// };
+// new File(homeDir + "/benchmark/ms-queue/my_queue.c"),
+// new File(homeDir + "/benchmark/ms-queue/main.c"),
+// new File(homeDir + "/benchmark/ms-queue/my_queue.h") };
+
+// new File(homeDir + "/benchmark/read-copy-update/rcu.cc") };
+
+// 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/deque.h") };
// new File(homeDir + "/benchmark/mcs-lock/mcs-lock.cc"),
// new File(homeDir + "/benchmark/mcs-lock/mcs-lock.h") };
- new File(homeDir + "/benchmark/spsc-bugfix/spsc-queue.cc"),
- new File(homeDir + "/benchmark/spsc-bugfix/eventcount.h"),
- new File(homeDir + "/benchmark/spsc-bugfix/queue.h") };
+// new File(homeDir + "/benchmark/spsc-bugfix/spsc-queue.cc"),
+// new File(homeDir + "/benchmark/spsc-bugfix/eventcount.h"),
+// new File(homeDir + "/benchmark/spsc-bugfix/queue.h") };
+
+ new File(homeDir + "/benchmark/mpmc-queue/mpmc-queue.h"),
+ new File(homeDir + "/benchmark/mpmc-queue/mpmc-queue.cc") };
CodeGenerator gen = new CodeGenerator(srcFiles);