Thread: exe file creation using run prompt

  1. #1
    Registered User
    Join Date
    Sep 2010
    Posts
    32

    Lightbulb exe file creation using run prompt

    Hi,
    Please help me to create executable file for c program using run prompt(i.e. without using Turbo/Borland C such compilers).

  2. #2
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,659
    OK, so two compilers off the list.

    Which other ones can we use?

    Normally, it's something like
    cc -o program.exe prog.c

    cc is the name of your compiler, which may be gcc or cl or ....
    -o is what you want to call your executable file, though try /o for something more M$ based.
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

  3. #3
    Banned
    Join Date
    Aug 2010
    Location
    Ontario Canada
    Posts
    9,547
    Quote Originally Posted by siperi View Post
    Hi,
    Please help me to create executable file for c program using run prompt(i.e. without using Turbo/Borland C such compilers).
    You're not going to create an executable program without some sort of compiler. No matter what you're doing it has to go through a number of steps to get from text to object code to PE image... How do you plan to do that without a compiler?

    As for Turbo C ... It's a dinosaur that you should be ashamed of running. It generates 16 bit code witch is barely supported anymore and won't run on 64 bit OSs. You seriously need to get modern... at minimum 32 bits, preferably a compiler that will produce both 32 and 64 bit programs.

    I generally recommend Pelles Cfor C development or Code::Blocks with MinGwfor C and C++ work. Both are free.

    A lot of mid-eastern schools are still pounding TurboC. But it makes no sense whatsoever to do so in a world of 64 bit machines.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Newbie homework help
    By fossage in forum C Programming
    Replies: 3
    Last Post: 04-30-2009, 04:27 PM
  2. Formatting a text file...
    By dagorsul in forum C Programming
    Replies: 12
    Last Post: 05-02-2008, 03:53 AM
  3. Inventory records
    By jsbeckton in forum C Programming
    Replies: 23
    Last Post: 06-28-2007, 04:14 AM
  4. C++ std routines
    By siavoshkc in forum C++ Programming
    Replies: 33
    Last Post: 07-28-2006, 12:13 AM
  5. Unknown Memory Leak in Init() Function
    By CodeHacker in forum Windows Programming
    Replies: 3
    Last Post: 07-09-2004, 09:54 AM