Browse Source

Increase compiler's memory limit

master
Menci 6 years ago
parent
commit
196eabe381
  1. 2
      src/languages/c.ts
  2. 2
      src/languages/cpp.ts
  3. 2
      src/languages/cpp11.ts
  4. 2
      src/languages/cpp17.ts
  5. 2
      src/languages/haskell.ts
  6. 2
      src/languages/java.ts
  7. 2
      src/languages/ocaml.ts
  8. 2
      src/languages/pascal.ts
  9. 2
      src/languages/vala.ts
  10. 2
      src/languages/vbnet.ts

2
src/languages/c.ts

@ -12,7 +12,7 @@ export const lang = {
executable: "/usr/bin/gcc", executable: "/usr/bin/gcc",
parameters: ["gcc", sourcePath, "-o", `${outputDirectory}/a.out`, "-O2", "-fdiagnostics-color=always", "-DONLINE_JUDGE", "-mx32"], parameters: ["gcc", sourcePath, "-o", `${outputDirectory}/a.out`, "-O2", "-fdiagnostics-color=always", "-DONLINE_JUDGE", "-mx32"],
time: 5000, time: 5000,
memory: 1024 * 1024 * 1024, memory: 1024 * 1024 * 1024 * 2,
process: 10, process: 10,
// This is just a redirection. You can simply ignore this // This is just a redirection. You can simply ignore this
// if you can specify custom location for message output // if you can specify custom location for message output

2
src/languages/cpp.ts

@ -12,7 +12,7 @@ export const lang = {
executable: "/usr/bin/g++", executable: "/usr/bin/g++",
parameters: ["g++", sourcePath, "-o", `${outputDirectory}/a.out`, "-std=c++03", "-O2", "-fdiagnostics-color=always", "-DONLINE_JUDGE", "-mx32"], parameters: ["g++", sourcePath, "-o", `${outputDirectory}/a.out`, "-std=c++03", "-O2", "-fdiagnostics-color=always", "-DONLINE_JUDGE", "-mx32"],
time: 5000, time: 5000,
memory: 1024 * 1024 * 1024, memory: 1024 * 1024 * 1024 * 2,
process: 10, process: 10,
// This is just a redirection. You can simply ignore this // This is just a redirection. You can simply ignore this
// if you can specify custom location for message output // if you can specify custom location for message output

2
src/languages/cpp11.ts

@ -12,7 +12,7 @@ export const lang = {
executable: "/usr/bin/g++", executable: "/usr/bin/g++",
parameters: ["g++", sourcePath, "-o", `${outputDirectory}/a.out`, "-std=c++11", "-O2", "-fdiagnostics-color=always", "-DONLINE_JUDGE", "-mx32"], parameters: ["g++", sourcePath, "-o", `${outputDirectory}/a.out`, "-std=c++11", "-O2", "-fdiagnostics-color=always", "-DONLINE_JUDGE", "-mx32"],
time: 5000, time: 5000,
memory: 1024 * 1024 * 1024, memory: 1024 * 1024 * 1024 * 2,
process: 10, process: 10,
// This is just a redirection. You can simply ignore this // This is just a redirection. You can simply ignore this
// if you can specify custom location for message output // if you can specify custom location for message output

2
src/languages/cpp17.ts

@ -12,7 +12,7 @@ export const lang = {
executable: "/usr/bin/g++", executable: "/usr/bin/g++",
parameters: ["g++", sourcePath, "-o", `${outputDirectory}/a.out`, "-std=c++17", "-O2", "-fdiagnostics-color=always", "-DONLINE_JUDGE", "-mx32"], parameters: ["g++", sourcePath, "-o", `${outputDirectory}/a.out`, "-std=c++17", "-O2", "-fdiagnostics-color=always", "-DONLINE_JUDGE", "-mx32"],
time: 5000, time: 5000,
memory: 1024 * 1024 * 1024, memory: 1024 * 1024 * 1024 * 2,
process: 10, process: 10,
// This is just a redirection. You can simply ignore this // This is just a redirection. You can simply ignore this
// if you can specify custom location for message output // if you can specify custom location for message output

2
src/languages/haskell.ts

@ -12,7 +12,7 @@ export const lang = {
executable: "/usr/bin/compile-haskell", executable: "/usr/bin/compile-haskell",
parameters: ["compile-haskell", sourcePath, outputDirectory, `${outputDirectory}/a.out`], parameters: ["compile-haskell", sourcePath, outputDirectory, `${outputDirectory}/a.out`],
time: 5000, time: 5000,
memory: 1024 * 1024 * 1024, memory: 1024 * 1024 * 1024 * 2,
process: 20, process: 20,
// This is just a redirection. You can simply ignore this // This is just a redirection. You can simply ignore this
// if you can specify custom location for message output // if you can specify custom location for message output

2
src/languages/java.ts

@ -12,7 +12,7 @@ export const lang = {
executable: "/usr/bin/compile-java", executable: "/usr/bin/compile-java",
parameters: ["compile-java", sourcePath, outputDirectory], parameters: ["compile-java", sourcePath, outputDirectory],
time: 5000, time: 5000,
memory: 1024 * 1024 * 1024, memory: 1024 * 1024 * 1024 * 2,
process: 20, process: 20,
// This is just a redirection. You can simply ignore this // This is just a redirection. You can simply ignore this
// if you can specify custom location for message output // if you can specify custom location for message output

2
src/languages/ocaml.ts

@ -12,7 +12,7 @@ export const lang = {
executable: "/usr/bin/compile-ocaml", executable: "/usr/bin/compile-ocaml",
parameters: ["compile-ocaml", sourcePath, outputDirectory], parameters: ["compile-ocaml", sourcePath, outputDirectory],
time: 5000, time: 5000,
memory: 1024 * 1024 * 1024, memory: 1024 * 1024 * 1024 * 2,
process: 20, process: 20,
// This is just a redirection. You can simply ignore this // This is just a redirection. You can simply ignore this
// if you can specify custom location for message output // if you can specify custom location for message output

2
src/languages/pascal.ts

@ -12,7 +12,7 @@ export const lang = {
executable: "/usr/bin/compile-pascal", executable: "/usr/bin/compile-pascal",
parameters: ["compile-pascal", sourcePath, outputDirectory], parameters: ["compile-pascal", sourcePath, outputDirectory],
time: 5000, time: 5000,
memory: 1024 * 1024 * 1024, memory: 1024 * 1024 * 1024 * 2,
process: 10, process: 10,
// This is just a redirection. You can simply ignore this // This is just a redirection. You can simply ignore this
// if you can specify custom location for message output // if you can specify custom location for message output

2
src/languages/vala.ts

@ -12,7 +12,7 @@ export const lang = {
executable: "/usr/bin/valac", executable: "/usr/bin/valac",
parameters: ["valac", sourcePath, "-o", `${outputDirectory}/a.out`, "-D", "ONLINE_JUDGE", "-X", "-O2"], parameters: ["valac", sourcePath, "-o", `${outputDirectory}/a.out`, "-D", "ONLINE_JUDGE", "-X", "-O2"],
time: 5000, time: 5000,
memory: 1024 * 1024 * 1024, memory: 1024 * 1024 * 1024 * 2,
process: 50, process: 50,
// This is just a redirection. You can simply ignore this // This is just a redirection. You can simply ignore this
// if you can specify custom location for message output // if you can specify custom location for message output

2
src/languages/vbnet.ts

@ -12,7 +12,7 @@ export const lang = {
executable: "/usr/bin/compile-dotnet", executable: "/usr/bin/compile-dotnet",
parameters: ["compile-dotnet", sourcePath, outputDirectory, "vbnc"], parameters: ["compile-dotnet", sourcePath, outputDirectory, "vbnc"],
time: 5000, time: 5000,
memory: 1024 * 1024 * 1024, memory: 1024 * 1024 * 1024 * 2,
process: 10, process: 10,
// This is just a redirection. You can simply ignore this // This is just a redirection. You can simply ignore this
// if you can specify custom location for message output // if you can specify custom location for message output

Loading…
Cancel
Save