 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
mika Guest
|
Posted: Wed Aug 11, 2004 6:38 am Post subject: Simple questions about Borland build settings |
|
|
Hi,
I'm a new in Symbian C++ programming with C++Builder. Now I have a privilege to make some additions/modifications to existing middle/large size Symbian program.
My (not the only) problem is how can I tune my C++Builder so that the building time would decrease. For some reason now Borland C++Builder seems to preprocessing *all* the source files *everytime* I hit Build -button even I have modified only one file? My previous experience says that preprocessing and compilation should be done only for modified parts of the soucecode base which decreases total time considerably. Now it takes about 1-1.5 minutes for building the project after every small modification. It is pretty frustrating!
If I do only make, that doesn't change preprocessing time. How I can I set C++Builder so that this preprocessing stage will be done only for modified parts of the program? All other untouched parts should be ok, and only aleardy compiled object files are linked to those modified & recompiled.
br, mika
|
|
| Back to top |
|
 |
Remy Lebeau (TeamB) Guest
|
Posted: Wed Aug 11, 2004 8:00 am Post subject: Re: Simple questions about Borland build settings |
|
|
"mika" <antti (AT) celifer (DOT) com> wrote
| Quote: | For some reason now Borland C++Builder seems to
preprocessing *all* the source files *everytime* I hit
Build -button even I have modified only one file?
|
That is what it is supposed to do. "Build" recompiles everything. "Make"
recompiles only the files that had been modified since the last compile.
| Quote: | If I do only make, that doesn't change preprocessing time.
|
You probably don't have your source code separated from dependancies very
well, such that even small chances get noticed throughout the project and
thus require a full recompile anyway.
Gambit
|
|
| Back to top |
|
 |
mika Guest
|
Posted: Wed Aug 11, 2004 9:12 am Post subject: Re: Simple questions about Borland build settings |
|
|
"Remy Lebeau (TeamB)" <gambit47.no.spam (AT) no (DOT) spam.yahoo.com> wrote:
| Quote: |
"mika" <antti (AT) celifer (DOT) com> wrote in message
news:4119bee5$1 (AT) newsgroups (DOT) borland.com...
For some reason now Borland C++Builder seems to
preprocessing *all* the source files *everytime* I hit
Build -button even I have modified only one file?
That is what it is supposed to do. "Build" recompiles everything. "Make"
recompiles only the files that had been modified since the last compile.
If I do only make, that doesn't change preprocessing time.
You probably don't have your source code separated from dependancies very
well, such that even small chances get noticed throughout the project and
thus require a full recompile anyway.
Gambit
|
Ok,
Thank you for your answer! I knew this Build/make difference and actually the last part of your reply was the key. Now, I'm pretty newbie in C++, do these "dendencies" mean that through included headers in many places, a change in one class "propagate" from class to class. It can be the case because when I do the make, quite many but, not all untouched source code segments are again preprocessed.
Is there any cure for that? I'm doing modifications to a program made by other person, so I'm not very willing to do major modifications to the programs itself. Is there any "switch" or other ways to switch off that feature as I'm 100% sure that my modifications do not affect to other classes.
br, mika
ps. I noticed that I did a slight mistake when posting my first orginal question. I put my official email -address to that post instead to of some temporary hotmail address, which means that this address will be corrupted by spam pretty soon.
Please, could you either remove my message from a list or change that email addresss to something else, like the one I put to this message.
Thank's in advance!
|
|
| Back to top |
|
 |
Remy Lebeau (TeamB) Guest
|
Posted: Wed Aug 11, 2004 5:11 pm Post subject: Re: Simple questions about Borland build settings |
|
|
"mika" <aep (AT) sunpoint (DOT) net> wrote
| Quote: | do these "dendencies" mean that through included headers in many
places, a change in one class "propagate" from class to class.
|
Changes in header files can propagate, yes.
| Quote: | Is there any "switch" or other ways to switch off that feature
|
This is not an IDE or compiler issue. It is a coding issue.
| Quote: | Please, could you either remove my message from a list or change
that email addresss to something else, like the one I put to this
message.
|
There is no way to alter posted messages. The only thing I could do is
delete the message from Borland's server altogether, but by this time the
message has probably already propegated to other newsgroup systems.
Gambit
|
|
| Back to top |
|
 |
mika Guest
|
Posted: Wed Aug 11, 2004 7:14 pm Post subject: Re: Simple questions about Borland build settings |
|
|
| Quote: | There is no way to alter posted messages. The only thing I could do > is delete the message from Borland's server altogether, but by this > time the message has probably already propegated to other newsgroup >systems.
Gambit
|
Please do that even thought that can be late!
I got your answer, thanks!
br, mika
|
|
| Back to top |
|
 |
Chris Croughton Guest
|
Posted: Thu Aug 12, 2004 3:13 pm Post subject: Re: Simple questions about Borland build settings |
|
|
On 11 Aug 2004 12:14:19 -0700, mika
<aep (AT) sunpoint (DOT) net> wrote:
| Quote: | There is no way to alter posted messages. The only thing I could do
is delete the message from Borland's server altogether, but by this
time the message has probably already propegated to other newsgroup
systems.
Gambit
Please do that even thought that can be late!
I got your answer, thanks!
br, mika
|
It won't help, it's been on the Berlin server for days and on Google,
probably on all of the major servers. Once a message is out it's
everywhere, a lot of servers don't handle cancel messages now because
they are easy to forge (you can get a message removed from Google but
you have to write to them and explain what you want removed).
Chris C
|
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|