Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

a question about c / C++ IDE.

Posted on 2003-12-01
6
Medium Priority
?
401 Views
Last Modified: 2012-05-04
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.
0
Comment
Question by:soodsandeep
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
6 Comments
 
LVL 4

Expert Comment

by:skypalae
ID: 9856307
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
 
LVL 45

Expert Comment

by:sunnycoder
ID: 9856373
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
 

Author Comment

by:soodsandeep
ID: 9856524
hi, thanks for your quick replies.
Experts, i am using TCC.
Thanks.
Sandeep.
0
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 45

Expert Comment

by:sunnycoder
ID: 9856535
You need any further clarifications Sandeep ?
0
 

Author Comment

by:soodsandeep
ID: 9856584
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
 
LVL 45

Accepted Solution

by:
sunnycoder earned 150 total points
ID: 9856591
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

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This tutorial is posted by Aaron Wojnowski, administrator at SDKExpert.net.  To view more iPhone tutorials, visit www.sdkexpert.net. This is a very simple tutorial on finding the user's current location easily. In this tutorial, you will learn ho…
This is a short and sweet, but (hopefully) to the point article. There seems to be some fundamental misunderstanding about the function prototype for the "main" function in C and C++, more specifically what type this function should return. I see so…
The goal of this video is to provide viewers with basic examples to understand recursion in the C programming language.
The goal of this video is to provide viewers with basic examples to understand and use switch statements in the C programming language.
Suggested Courses

636 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question