Compiling speed

This is a discussion on Compiling speed within the C++ Programming forums, part of the General Programming Boards category; do c++ programs take longer to compile than equivalent programs writen in c ? (non OOP of course). or is ...

  1. #1
    Registered User Spectrum48k's Avatar
    Join Date
    May 2002
    Posts
    66

    Compiling speed

    do c++ programs take longer to compile than equivalent programs writen in c ? (non OOP of course).
    or is it just me, caught in a strange time warp

  2. #2
    Registered User
    Join Date
    Sep 2002
    Posts
    1,640
    As far as i know, you must really have a huge source for
    it to noticable compile slower a 100 program compiles just as
    fast as a 1000 line program

  3. #3
    &TH of undefined behavior Fordy's Avatar
    Join Date
    Aug 2001
    Posts
    5,789
    C++ does shift a lot of work on the compiler......especially with templates........but unless you are compiling a massive program then it shouldnt cause too much hassle IMO

  4. #4
    Code Goddess Prelude's Avatar
    Join Date
    Sep 2001
    Posts
    9,796
    >do c++ programs take longer to compile than equivalent programs writen in c ?
    Yes. Of course most compilers are smart enough not to recompile from scratch every time so that speeds things up considerably. Though C++ compilation is noticeably slower than C even with the most current of compilers.

    -Prelude
    My best code is written with the delete key.

  5. #5
    geek SilentStrike's Avatar
    Join Date
    Aug 2001
    Location
    NJ
    Posts
    1,141
    Anyone ever try to compile KDE from source? It's definetely not a quick experience.
    Prove you can code in C++ or C# at TopCoder, referrer rrenaud
    Read my livejournal

  6. #6
    Evil Member
    Join Date
    Jan 2002
    Posts
    638
    Well remember that you aren't just using the compiler there. KDE would make use of a parser-generator, lots of linking and relinking, et cetera.

    And I think XFree86 takes even longer than KDE, but that might just be my impression because the XF86 codebase has to be edited manually to make it compatible with bison 1.75.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. I am very new . . . :(
    By Eternalglory47 in forum C++ Programming
    Replies: 6
    Last Post: 09-05-2008, 12:29 PM
  2. Screwy Linker Error - VC2005
    By Tonto in forum C++ Programming
    Replies: 5
    Last Post: 06-19-2007, 03:39 PM
  3. Flight Simulator Wind Speed!!
    By Dilmerv in forum C++ Programming
    Replies: 6
    Last Post: 03-20-2006, 12:40 AM
  4. Replies: 6
    Last Post: 01-08-2006, 02:49 PM
  5. increased net speed
    By PING in forum A Brief History of Cprogramming.com
    Replies: 20
    Last Post: 03-29-2005, 07:05 AM

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