You are not logged in. Please login at www.codechef.com to post your questions!

×

What are the compiler options that the judge uses?

2
5

Some languages are weirdly slow on some problems. Do they have optimization enabled/disabled while compiling? Does the online judge use any specific options while compiling my program? Is there a way for me to know what these options are for different languages?

asked 01 Nov '12, 16:55

anup's gravatar image

2★anup ♦♦
2.2k263842
accept rate: 23%

edited 01 Nov '12, 16:56

3

I wonder if you want to specify -Xss for Java as well

(02 Nov '12, 22:29) EgorK4★

  • C : O2 - second optimization level, lm - access to "math.h" library, fomit-frame-pointer - disallow to store frame pointer in CPU register, pthread - enable multithreading

  • C++ : O2 - second optimization level, lm - access to "math.h" library, fomit-frame-pointer - disallow to store frame pointer in CPU register, pthread - enable multithreading

  • Java NONE

  • Python : OO - don't store debug information + don't store docstrings

  • Python 3 : OO - don't store debug information + don't store docstrings

  • C++14 : O2 - second optimization level, lm - access to "math.h" library, fomit-frame-pointer - disallow to store frame pointer in CPU register, pthread - enable multithreading

  • Pascal : O2 - second optimization level, fomit-frame-pointer - disallow to store frame pointer in CPU register

  • Ada : O2 - second optimization level,

  • Scheme : O0 - entry optimization level

  • Haskell : O - first optimization level

  • Pascal : O2 - second optimization level

  • Common Lisp : dynamic-space-size 48 - amount of space (in MB) dedicated for startup disable-debugger - disable debugger

  • C99 : lm - access to "math.h" library, fomit-frame-pointer - disallow to store frame pointer in CPU register, pthread - enable multithreading

  • Javascript Rhino : Xmx256M - memory limit equal to 256MB Xms16M - start Java VM with 16MB of memory

  • Rust : O - first optimization level

link

answered 01 Nov '12, 17:13

admin's gravatar image

0★admin ♦♦
17.4k347487515
accept rate: 36%

edited 20 Nov, 22:15

how to run .java file with this optimization?

(12 Oct '14, 03:08) shubham0115★

Python import psyco psyco.full()

link

answered 01 Apr '16, 20:12

vsltech's gravatar image

0★vsltech
1
accept rate: 0%

toggle preview
Preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported
  • mathemetical formulas in Latex between $ symbol

Question tags:

×189
×4
×1

question asked: 01 Nov '12, 16:55

question was seen: 22,542 times

last updated: 20 Nov, 22:15