Solved

Makefile Flags and switched

Posted on 2008-10-05
5
836 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 34

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

Salesforce Has Never Been Easier

Improve and reinforce salesforce training & adoption using WalkMe's digital adoption platform. Start saving on costly employee training by creating fast intuitive Walk-Thrus for Salesforce. Claim your Free Account Now

Question has a verified solution.

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

The article will include the best Data Recovery Tools along with their Features, Capabilities, and their Download Links. Hope you’ll enjoy it and will choose the one as required by you.
This article was originally published on Monitis Blog, you can check it here . If you have responsibility for software in production, I bet you’d like to know more about it. I don’t mean that you’d like an extra peek into the bowels of the sourc…
This video demonstrates basic masking and how to edit the mask to reveal the desired image.
With the power of JIRA, there's an unlimited number of ways you can customize it, use it and benefit from it. With that in mind, there's bound to be things that I wasn't able to cover in this course. With this summary we'll look at some places to go…

734 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