Solved

Makefile Flags and switched

Posted on 2008-10-05
5
838 Views
Last Modified: 2013-12-13
What does ld nm and gcc -Wall options do in a Makefile
0
Comment
[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
5 Comments
 
LVL 74

Expert Comment

by:Jeffrey Coachman
ID: 22647651
amit_at_expertsexchange,

You question is posed in very vague terms.

Can you take the time to fully state your question please?

JeffCoachman
0
 
LVL 53

Expert Comment

by:Infinity08
ID: 22647880
They are not options. They are commands :

        nm : lists the symbols in an object file
        ld : is the linker - it links object files together (into an executable eg.)
        gcc : is the compiler - it compiles object files from source code

For more info, you can always do a man on it, for example :

        man nm
0
 
LVL 35

Accepted Solution

by:
Duncan Roe earned 75 total points
ID: 22647991
nm prints symbols in an executable, library or object  file
ld loads (links) object files to produce an executable or shared object
gcc is the GNU C compiler (gcc nowadays stands for Gnu Compiler Collection - it is a frontend for C++, FORTRAN and many others). The -Wall options instructs it to issue warnings for a number of common possible mistakes.
A Makefile can include these commands, but it can include *any* commands. These commands are in no way specific to make.
0
 

Author Closing Comment

by:amit_at_expertsexchange
ID: 31503190
Thanks for the help
0

Featured Post

Back Up Your Microsoft Windows Server®

Back up all your Microsoft Windows Server – on-premises, in remote locations, in private and hybrid clouds. Your entire Windows Server will be backed up in one easy step with patented, block-level disk imaging. We achieve RTOs (recovery time objectives) as low as 15 seconds.

Question has a verified solution.

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

Healthcare organizations in the United States must adhere to the guidance of both the HIPAA (Health Insurance Portability and Accountability Act) and HITECH (Health Information Technology for Economic and Clinical Health Act) for securing and protec…
There are many software programs on offer that will claim to magically speed up your computer. The best advice I can give you is to avoid them like the plague, because they will often cause far more problems than they solve. Try some of these "do it…
This video demonstrates basic masking and how to edit the mask to reveal the desired image.
This video Micro Tutorial shows how to password-protect PDF files with free software. Many software products can do this, such as Adobe Acrobat (but not Adobe Reader), Nuance PaperPort, and Nuance Power PDF, but they are not free products. This vide…

617 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