Solved

Makefile Flags and switched

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

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

I use more than 1 computer in my office for various reasons. Multiple keyboards and mice take up more than just extra space, they make working a little more complicated. Using one mouse and keyboard for all of my computers makes life easier. This co…
Developer portfolios can be a bit of an enigma—how do you present yourself to employers without burying them in lines of code?  A modern portfolio is more than just work samples, it’s also a statement of how you work.
The viewer will learn how to set up a document for the web and print and the recommended PPI for printing.
Using Adobe Premiere Pro, the viewer will learn how to set up a sequence with proper settings, importing pictures, rendering, and exporting the finished product.

696 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