Go to Post Because, y'know, FIRST can't make it easy for us. - WinterPoet [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #9   Spotlight this post!  
Unread 27-09-2011, 15:12
byteit101's Avatar
byteit101 byteit101 is offline
WPILib maintainer (WPI)
AKA: Patrick Plenefisch
no team (The Cat Attack (Formerly))
Team Role: Programmer
 
Join Date: Jan 2009
Rookie Year: 2009
Location: Worcester
Posts: 699
byteit101 is a glorious beacon of lightbyteit101 is a glorious beacon of lightbyteit101 is a glorious beacon of lightbyteit101 is a glorious beacon of lightbyteit101 is a glorious beacon of lightbyteit101 is a glorious beacon of light
Re: Programming Build Times?

C++ has a interesting compiler model that saves tons of time on most builds. In a nutshell, it only builds the .cpp files that have changed, so if you have a million lines of code, and change one file, it only needs to recompile the one file (which produces a .o file), then joins all the .o files together, which is much faster than the .o file compilation. The result: a speedy build 90% of the time. Unless you mush lots and lots and lots of code into one file, C++ is fast at compiling changes. Do be aware that the compiler is smart and figures out if dependencies of a file change most of the time, but occasionally the compiler does not recompile something that it should (.h file changes usually), leaving two incompatible .o files. Rebuilding solves this issue (when we have errors, most of the time rebuilding solves it), and our code last year (which had quite a few largeish files) would rebuild completely in about 30 seconds, and a regular build of our main file took 10 seconds tops. C/C++ compiling is an interesting subject.
__________________
Bubble Wrap: programmers rewards
Watchdog.Kill();
printf("Watchdog is Dead, Celebrate!");
How to make a self aware robot: while (∞) cout<<(sqrt(-∞)/-0);
Previously FRC 451 (The Cat Attack)
Now part of the class of 2016 at WPI & helping on WPILib
 


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 18:50.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi