Page 1 of 1

compile arguments in live-archive

Posted: Mon Dec 12, 2005 8:58 pm
by Rostislav
What optimizations are used when compiling a C++ source in the live-archive.
I am curious because at home on 2Ghz my program runs for ~6 sec. but on the judge it takes more than 30 sec.

Rostislav

Posted: Mon Dec 12, 2005 11:49 pm
by Krzysztof Duleba
None, if live archive has similar configuration to the OJ (and I'm pretty sure it has). CPU speed is much slower, too.

Re: compile arguments in live-archive

Posted: Tue Dec 13, 2005 1:26 pm
by Martin Macko
Rostislav wrote:I am curious because at home on 2Ghz my program runs for ~6 sec. but on the judge it takes more than 30 sec.
OJ is Pentium III - 800 MHz http://acm.uva.es/problemset/computer.html

Posted: Tue Dec 13, 2005 7:52 pm
by Rostislav
I meant - gcc -c ... ?
or - g++ ... ?

Posted: Tue Dec 13, 2005 9:00 pm
by misof
Rostislav wrote:I meant - gcc -c ... ?
or - g++ ... ?
As Krzysztof already said, probably there are no switches at all. In particular, don't expect any optimization. Probably the only switch is gcc -lm (to link the math library), nothing else.