• C

a question about c / C++ IDE.

hello experts, i have a general question about c / c++, in Compile Menu Bar it has options like Complie, Make, Link And build all.
Please tell me how does these four diffier. Especially what is difference between make and build all.
Waiting...
Thanks.
Sandeep.
soodsandeepAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

skypalaeCommented:
Hi,
I don't know which IDE you use, but this should be similar to all environments i know. There should be also one more item called 'Clean'. And now, what they do.

Compile: compiles your source making .obj (or .o on UNIX) files, one for each source file. It usually compiles new/changed sources only.
Link: Links all the .obj files together to make one .exe (also links resource files and some more).
Clean: Deletes all the .obj files from your project folder (can delete some more temporary files).
Make: Usually does Compile, Link.
Build all: Usually does Clean, Make.

S.
0
sunnycoderCommented:
there are various stages of what we commonly refer to as compilation
first the source is put through a preprocessor to get processed source code
next it is converted to assembly code ( not necessary)
next it is converted to object code ... this is compiled code which can be loaded in to memory .. only problem being that it includes/calls some libraries and ofcourse we have not written/compiled code for the libraries with it ... so we need to link it to the library ... thus next step is linking

linking basically inserts addresses/calls for these library routines in the object code so that while executing, we know where to find the routine
futher reference
http://www.magma.ca/~louievb/gcc/gcc_tutorial.html
gcc.gnu.org

make is a tool/utility which is widely used for larger projects ... it selectively compiles only those files of a project which have changed since last compilation and their dependent source files ... this eliminates the overhead of having to recompile entire project for a small change in a single file. Build all generally refers to a command for "making" all the "targets" or executables in a project.
http://www.gnu.org/manual/make-3.79.1/html_chapter/make_toc.html
0
soodsandeepAuthor Commented:
hi, thanks for your quick replies.
Experts, i am using TCC.
Thanks.
Sandeep.
0
Ultimate Tool Kit for Technology Solution Provider

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy now.

sunnycoderCommented:
You need any further clarifications Sandeep ?
0
soodsandeepAuthor Commented:
yes, sunnycoder ! Please help me little more. i am working in Turbo C++. Its IDE has these options : Compile, Make, Build All, Link.
Please tell me the difference in these.
0
sunnycoderCommented:
I just did !!!

make is a tool/utility which is widely used for larger projects ... it selectively compiles only those files of a project which have changed since last compilation and their dependent source files ... this eliminates the overhead of having to recompile entire project for a small change in a single file. Build all generally refers to a command for "making" all the "targets" or executables in a project.

linking basically inserts addresses/calls for these library routines in the object code so that while executing, we know where to find the routine

I have also posted some links for further reference ... pls go through them
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
C

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.