Compiling Gigantic Programs

This is a discussion on Compiling Gigantic Programs within the A Brief History of Cprogramming.com forums, part of the Community Boards category; All the programs I've worked on have been around <2000 lines of code each. About how big are many programs ...

  1. #1
    The Defective GRAPE Lurker's Avatar
    Join Date
    Feb 2003
    Posts
    949

    Compiling Gigantic Programs

    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?
    Do not make direct eye contact with me.

  2. #2
    Code Goddess Prelude's Avatar
    Join Date
    Sep 2001
    Posts
    9,796
    >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.
    My best code is written with the delete key.

  3. #3
    Mayor of Awesometown Govtcheez's Avatar
    Join Date
    Aug 2001
    Location
    MI
    Posts
    8,825
    >What's the biggest program you guys have worked on?

    Probably about 20,000 lines or so.

  4. #4
    Registered User
    Join Date
    Oct 2001
    Posts
    62
    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.

  5. #5
    Mayor of Awesometown Govtcheez's Avatar
    Join Date
    Aug 2001
    Location
    MI
    Posts
    8,825
    What company and game?

  6. #6
    Registered User
    Join Date
    Oct 2001
    Posts
    62
    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.

  7. #7
    Registered User
    Join Date
    Oct 2001
    Posts
    62
    _job_, not _shop_ , sorry!

  8. #8
    Unleashed
    Join Date
    Sep 2001
    Posts
    1,765
    > 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
    The world is waiting. I must leave you now.

  9. #9
    It's full of stars adrianxw's Avatar
    Join Date
    Aug 2001
    Posts
    4,831
    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.
    Wave upon wave of demented avengers march cheerfully out of obscurity unto the dream.

  10. #10
    In your face... ha ha ha Liger86's Avatar
    Join Date
    Dec 2002
    Location
    Motorcity Capital
    Posts
    321
    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]
    From Ukraine with love!

    Internationally known widely respected

    - Digitally yourz -

  11. #11
    Just one more wrong move. -KEN-'s Avatar
    Join Date
    Aug 2001
    Posts
    3,230
    Try compiling Gnome or KDE.

  12. #12
    l'Anziano DavidP's Avatar
    Join Date
    Aug 2001
    Location
    Plano, Texas, United States
    Posts
    2,738
    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.
    My Website

    "Circular logic is good because it is."

  13. #13
    The Defective GRAPE Lurker's Avatar
    Join Date
    Feb 2003
    Posts
    949
    Do you go to college in Houston? What college do you go to?
    Do not make direct eye contact with me.

  14. #14
    l'Anziano DavidP's Avatar
    Join Date
    Aug 2001
    Location
    Plano, Texas, United States
    Posts
    2,738
    normal residence, place where i call home: Houston, TX
    current college residence: Provo, Utah
    My Website

    "Circular logic is good because it is."

  15. #15
    Banned
    Join Date
    Jan 2003
    Posts
    1,708
    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)

Page 1 of 2 12 LastLast
Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Problems compiling two c programs together
    By Overworked_PhD in forum C Programming
    Replies: 6
    Last Post: 05-27-2009, 01:20 PM
  2. Recommend upgrade path for C programs
    By emanresu in forum C Programming
    Replies: 3
    Last Post: 11-22-2007, 06:32 AM
  3. Screwy Linker Error - VC2005
    By Tonto in forum C++ Programming
    Replies: 5
    Last Post: 06-19-2007, 02:39 PM
  4. POSIX/DOS programs?
    By nickname_changed in forum C++ Programming
    Replies: 1
    Last Post: 02-28-2003, 04:42 AM
  5. Problem with Borland 5.5 Compiling Windows Programs
    By Unregistered in forum C++ Programming
    Replies: 3
    Last Post: 08-28-2001, 09:04 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21