PDA

View Full Version : Compiling Gigantic Programs



Lurker
11-04-2003, 04:25 PM
All the programs I've worked on have been around <2000 lines of code each. About how big are many programs made in buisiness, or in game development? How long does it take to compile? What's the biggest program you guys have worked on?

Prelude
11-04-2003, 04:28 PM
>About how big are many programs made in buisiness, or in game development?
As small as 20,000 and as large as a few million.

>How long does it take to compile?
If you do it all at once, you can typically go to lunch and it should be done or mostly done by the time you get back.

>What's the biggest program you guys have worked on?
About 600,000 lines.

Govtcheez
11-04-2003, 04:41 PM
>What's the biggest program you guys have worked on?

Probably about 20,000 lines or so.

rpet
11-04-2003, 04:43 PM
I worked for a prefessional game development company for a while. We made a real time strategy game. Its size was... pfew... I guess 200.000 lines. A "rebuild all" took 3 to 4 minutes on a 1 GHz CPU. But it depends on your program's structure. The other team's project (a 3D game) took up to 10 minutes, but it was splitted into _a lot_ of separate files (one mini c++ class per file).

I think it is a good idea to split your program into seperate static libraries so you can avoid a "rebuild all". Rebuild times > 1 min are a problem, because you need to do this a hundred times a day.

Govtcheez
11-04-2003, 04:58 PM
What company and game?

rpet
11-04-2003, 05:11 PM
The company was:
http://www.funatics.de

It still exists, but they got serious financial problems, so they fired everyone (> 20 people, me too). The strategy game I worked on was Cultures 2 (www.cultures2.de). I made the network part. The 3D game I was talking about is Zanzarah (www.zanzarah.de).

You may know the people who founded this company from the games Settlers, Incubation, Battle Isle...

The game development in germany is in a mess... unfortunately. I loved this shop, although it was underpaid.

rpet
11-04-2003, 05:12 PM
_job_, not _shop_ , sorry!

Shadow
11-05-2003, 01:54 AM
> About how big are many programs made in buisiness, or in game development? How long does it take to compile?
MAME, at about a million lines of source code, takes about 20 minutes to compile on my machine.

ASUS A78NX Motherboard
AMD2000+
512mb 266mhz DDR RAM

adrianxw
11-05-2003, 02:49 AM
Typically, one avoids the need to compile all of a big program at one time. You use libraries, pre-compiled modules and other tricks to just compile the lines you modified and chuck all the object at the linker.

Our fare computer, (depending on the version), had 5-600,000 lines of Pascal code and about 40,000 lines of assembler. You wanted to compile the whole lot down to a burnable image, (ROMS), you left it while you went to lunch.

That's probably the largest single program I've worked with. The satellite ground stations were much bigger, but also much more modular, so the individual programs weren't very large, maybe 100,000 lines max.

Liger86
11-05-2003, 07:37 AM
You don't compile everything at once if you work on big project like a game; instead sometimes you got to do by trial and error, and compile by bits and pieces!

[check spelling]

-KEN-
11-05-2003, 02:28 PM
Try compiling Gnome or KDE.

DavidP
11-05-2003, 02:36 PM
i remember the first program i wrote that hit 2000 lines of code. i was freshman in high school, and it was a text rpg. I was so proud of myself! :)

I think the largest program I have written to this point (as a freshman in college) is 10,000 to 20,000 lines of code.

Lurker
11-05-2003, 04:13 PM
Do you go to college in Houston? What college do you go to?

DavidP
11-05-2003, 05:13 PM
normal residence, place where i call home: Houston, TX
current college residence: Provo, Utah

Silvercord
11-05-2003, 06:18 PM
over 10,000 for the project I'm working on (according to c-metrics)
and a brand spanking new compile (delete all object files) takes a single minute
1.4GHz amd 256mb pc2100 (mem would help a lot probably)
but u can see how if a project has half a mil or a million lines you can go jog a few miles and come back (100 mins probably for 1mil lines, depending on config)

quagsire
11-06-2003, 01:03 AM
smallest program at work was probably about 3-4000 lines. The biggest was between 16 and 17 million lines of code (luckily I did not need to write it all by myself :)). Took about 30 minutes to compile on a P4 1.7GHz using Borland C++ 5.

nvoigt
11-07-2003, 04:58 AM
I never counted lines. We have one C++ Client/Server/Server ( yes, two different Servers ). The servers compile in 2 minutes, the client in 10 probably because of all the graphical stuff. One of the servers needs 20 libraries which compile in 3 minutes each. Fortunately, a full recompile is only needed about once a month.

We have another Client/Server/Server Project ( we love this kind of structure, don't we *g* ) in C# of approximately same size which takes about the same time to compile.

chix/w/guns
07-13-2004, 08:47 PM
smallest program at work was probably about 3-4000 lines. The biggest was between 16 and 17 million lines of code (luckily I did not need to write it all by myself :)). Took about 30 minutes to compile on a P4 1.7GHz using Borland C++ 5.
that owns!!! I can't wait to get a job programming and making a program that takes that long to compile. I feel cool when just my code in the GUI takes more than a milisecond to load, and you can imagine how fast my code compiles :(. But I'm working on it!

DavidP
07-13-2004, 09:05 PM
Please explain your reasoning in bumping this several month old thread.

edit:

Look at rule 5 of the board rules.

Govtcheez
07-13-2004, 09:43 PM
that owns!!! I can't wait to get a job programming and making a program that takes that long to compile. I feel cool when just my code in the GUI takes more than a milisecond to load, and you can imagine how fast my code compiles :(. But I'm working on it!
You make 2 crappy threads and then bump a thread that's 8 months old? I'd watch my step if I were you.