The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
Google UNIX.COM



View Single Post in UNIX Forums - Click on the Thread or Permalink to View Entire Thread -->
  #5 (permalink)  
Old 09-29-2007
Perderabo's Avatar
Perderabo Perderabo is online now
Unix Daemon
 

Join Date: Aug 2001
Location: Washington DC Area
Posts: 8,446
Quote:
Originally Posted by compbug View Post
well, how could I do that?
could you please explain?

I think it is better way to have an executable for all C codes.... atleast for the trial codes we run to understand the concepts!!

Thanks!
Most compilers let you do something like:
gcc myprogram.c -o myprogram

And anyway there is a mv command that can rename a file. So you could do:
gcc myprogram.c
mv a.out myprogram

But bear in mind that as porter mentioned, a file like xyz.c may not be a program. It could just be a function.
Reply With Quote