From 196eabe38119b5b4cfd3391cd13630b17a56082c Mon Sep 17 00:00:00 2001 From: Menci Date: Fri, 30 Nov 2018 10:34:02 +0800 Subject: [PATCH] Increase compiler's memory limit --- src/languages/c.ts | 2 +- src/languages/cpp.ts | 2 +- src/languages/cpp11.ts | 2 +- src/languages/cpp17.ts | 2 +- src/languages/haskell.ts | 2 +- src/languages/java.ts | 2 +- src/languages/ocaml.ts | 2 +- src/languages/pascal.ts | 2 +- src/languages/vala.ts | 2 +- src/languages/vbnet.ts | 2 +- 10 files changed, 10 insertions(+), 10 deletions(-) diff --git a/src/languages/c.ts b/src/languages/c.ts index 682b0cd..65ab0f8 100644 --- a/src/languages/c.ts +++ b/src/languages/c.ts @@ -12,7 +12,7 @@ export const lang = { executable: "/usr/bin/gcc", parameters: ["gcc", sourcePath, "-o", `${outputDirectory}/a.out`, "-O2", "-fdiagnostics-color=always", "-DONLINE_JUDGE", "-mx32"], time: 5000, - memory: 1024 * 1024 * 1024, + memory: 1024 * 1024 * 1024 * 2, process: 10, // This is just a redirection. You can simply ignore this // if you can specify custom location for message output diff --git a/src/languages/cpp.ts b/src/languages/cpp.ts index 9697590..aede29b 100644 --- a/src/languages/cpp.ts +++ b/src/languages/cpp.ts @@ -12,7 +12,7 @@ export const lang = { executable: "/usr/bin/g++", parameters: ["g++", sourcePath, "-o", `${outputDirectory}/a.out`, "-std=c++03", "-O2", "-fdiagnostics-color=always", "-DONLINE_JUDGE", "-mx32"], time: 5000, - memory: 1024 * 1024 * 1024, + memory: 1024 * 1024 * 1024 * 2, process: 10, // This is just a redirection. You can simply ignore this // if you can specify custom location for message output diff --git a/src/languages/cpp11.ts b/src/languages/cpp11.ts index 7959902..65425bf 100644 --- a/src/languages/cpp11.ts +++ b/src/languages/cpp11.ts @@ -12,7 +12,7 @@ export const lang = { executable: "/usr/bin/g++", parameters: ["g++", sourcePath, "-o", `${outputDirectory}/a.out`, "-std=c++11", "-O2", "-fdiagnostics-color=always", "-DONLINE_JUDGE", "-mx32"], time: 5000, - memory: 1024 * 1024 * 1024, + memory: 1024 * 1024 * 1024 * 2, process: 10, // This is just a redirection. You can simply ignore this // if you can specify custom location for message output diff --git a/src/languages/cpp17.ts b/src/languages/cpp17.ts index c0a8809..91502e3 100644 --- a/src/languages/cpp17.ts +++ b/src/languages/cpp17.ts @@ -12,7 +12,7 @@ export const lang = { executable: "/usr/bin/g++", parameters: ["g++", sourcePath, "-o", `${outputDirectory}/a.out`, "-std=c++17", "-O2", "-fdiagnostics-color=always", "-DONLINE_JUDGE", "-mx32"], time: 5000, - memory: 1024 * 1024 * 1024, + memory: 1024 * 1024 * 1024 * 2, process: 10, // This is just a redirection. You can simply ignore this // if you can specify custom location for message output diff --git a/src/languages/haskell.ts b/src/languages/haskell.ts index 390f04e..0e88d7b 100644 --- a/src/languages/haskell.ts +++ b/src/languages/haskell.ts @@ -12,7 +12,7 @@ export const lang = { executable: "/usr/bin/compile-haskell", parameters: ["compile-haskell", sourcePath, outputDirectory, `${outputDirectory}/a.out`], time: 5000, - memory: 1024 * 1024 * 1024, + memory: 1024 * 1024 * 1024 * 2, process: 20, // This is just a redirection. You can simply ignore this // if you can specify custom location for message output diff --git a/src/languages/java.ts b/src/languages/java.ts index c097b73..9d37d5e 100644 --- a/src/languages/java.ts +++ b/src/languages/java.ts @@ -12,7 +12,7 @@ export const lang = { executable: "/usr/bin/compile-java", parameters: ["compile-java", sourcePath, outputDirectory], time: 5000, - memory: 1024 * 1024 * 1024, + memory: 1024 * 1024 * 1024 * 2, process: 20, // This is just a redirection. You can simply ignore this // if you can specify custom location for message output diff --git a/src/languages/ocaml.ts b/src/languages/ocaml.ts index c0d990f..58cc170 100644 --- a/src/languages/ocaml.ts +++ b/src/languages/ocaml.ts @@ -12,7 +12,7 @@ export const lang = { executable: "/usr/bin/compile-ocaml", parameters: ["compile-ocaml", sourcePath, outputDirectory], time: 5000, - memory: 1024 * 1024 * 1024, + memory: 1024 * 1024 * 1024 * 2, process: 20, // This is just a redirection. You can simply ignore this // if you can specify custom location for message output diff --git a/src/languages/pascal.ts b/src/languages/pascal.ts index ea649a9..14ea004 100644 --- a/src/languages/pascal.ts +++ b/src/languages/pascal.ts @@ -12,7 +12,7 @@ export const lang = { executable: "/usr/bin/compile-pascal", parameters: ["compile-pascal", sourcePath, outputDirectory], time: 5000, - memory: 1024 * 1024 * 1024, + memory: 1024 * 1024 * 1024 * 2, process: 10, // This is just a redirection. You can simply ignore this // if you can specify custom location for message output diff --git a/src/languages/vala.ts b/src/languages/vala.ts index f6bcbbe..0cc4a4e 100644 --- a/src/languages/vala.ts +++ b/src/languages/vala.ts @@ -12,7 +12,7 @@ export const lang = { executable: "/usr/bin/valac", parameters: ["valac", sourcePath, "-o", `${outputDirectory}/a.out`, "-D", "ONLINE_JUDGE", "-X", "-O2"], time: 5000, - memory: 1024 * 1024 * 1024, + memory: 1024 * 1024 * 1024 * 2, process: 50, // This is just a redirection. You can simply ignore this // if you can specify custom location for message output diff --git a/src/languages/vbnet.ts b/src/languages/vbnet.ts index 3febec3..1e8ab3a 100644 --- a/src/languages/vbnet.ts +++ b/src/languages/vbnet.ts @@ -12,7 +12,7 @@ export const lang = { executable: "/usr/bin/compile-dotnet", parameters: ["compile-dotnet", sourcePath, outputDirectory, "vbnc"], time: 5000, - memory: 1024 * 1024 * 1024, + memory: 1024 * 1024 * 1024 * 2, process: 10, // This is just a redirection. You can simply ignore this // if you can specify custom location for message output