ENG  RUSTimus Online Judge
Online Judge
Problems
Authors
Online contests
About Online Judge
Frequently asked questions
Site news
Webboard
Links
Problem set
Submit solution
Judge status
Guide
Register
Update your info
Authors ranklist
Current contest
Scheduled contests
Past contests
Rules
back to board

Common Board

C/C++ Compiler switches changed (+)
Posted by Vladimir Yakovlev (USU) 21 Nov 2007 23:35
Switch /O1 was added to command line of C/C++ compiler. This switch is used instead of default /O2 switch. Description from compiler help:
/O1    optimize for maximum speed, but disable some optimizations which
          increase code size for a small speed benefit
/O2    optimize for maximum speed (DEFAULT)
ICL compiler sometimes makes wrong code with /O2 switch. To prevent wrong verdicts we have changed switches but loose some performance. Some programs will work a little bit slower now.

Current compiler's command line:
// C
icl /GX /TC /Za /O1 /D ONLINE_JUDGE

// C++
icl /GX /TP /Za /O1 /D ONLINE_JUDGE
(See http://acm.timus.ru/help.aspx?topic=cpp )

Edited by author 21.11.2007 23:39