Hi,
Please help me to create executable file for c program using run prompt(i.e. without using Turbo/Borland C such compilers).
Printable View
Hi,
Please help me to create executable file for c program using run prompt(i.e. without using Turbo/Borland C such compilers).
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.
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.