compile arguments in live-archive

Write here if you have problems with your C++ source code

Moderator: Board moderators

Post Reply
Rostislav
New poster
Posts: 21
Joined: Sun Oct 05, 2003 11:19 am
Location: Bulgaria, Shoumen
Contact:

compile arguments in live-archive

Post by Rostislav » Mon Dec 12, 2005 8:58 pm

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

User avatar
Krzysztof Duleba
Guru
Posts: 584
Joined: Thu Jun 19, 2003 3:48 am
Location: Sanok, Poland
Contact:

Post by Krzysztof Duleba » Mon Dec 12, 2005 11:49 pm

None, if live archive has similar configuration to the OJ (and I'm pretty sure it has). CPU speed is much slower, too.

User avatar
Martin Macko
A great helper
Posts: 481
Joined: Sun Jun 19, 2005 1:18 am
Location: European Union (Slovak Republic)

Re: compile arguments in live-archive

Post by Martin Macko » Tue Dec 13, 2005 1:26 pm

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

Rostislav
New poster
Posts: 21
Joined: Sun Oct 05, 2003 11:19 am
Location: Bulgaria, Shoumen
Contact:

Post by Rostislav » Tue Dec 13, 2005 7:52 pm

I meant - gcc -c ... ?
or - g++ ... ?

misof
A great helper
Posts: 430
Joined: Wed Jun 09, 2004 1:31 pm

Post by misof » Tue Dec 13, 2005 9:00 pm

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.

Post Reply

Return to “C++”