By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
454,904 Members | 4,621 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 454,904 IT Pros & Developers. It's quick & easy.

creating .EXE files

P: 16
Hai to all,

It will be helpful for me if anyone answers me.

Suppose our executable (.EXE ) files have been deleted accidentally and if
we want to copy all executable files to the specified directory, we have to recompile all the files. This process is cumbersome. How can we compile all the files in a single pass. I am using TURBOC3 compiler.
Dec 27 '06 #1
Share this Question
Share on Google+
3 Replies

P: 66
You can use command-line tcc command.

Dec 29 '06 #2

P: 16
thank you!
i am learning C now so will you please provide the syntax under MS-DOS. It will help me a lot.
Dec 30 '06 #3

P: 66
Compilation of a C program is two-step process. First, the file is compiled to intermidiate object file (.obj). Then, object file/s is/are linked to produce executable.
Simply type the following commands to see available options/switches:
C:\>tcc --> This is C compiler
C:\>tlink --> This is C linker

To build a exe out of single file:
C:\> tcc -I<include dir> -L<library dir> <source file>

If exe contains more than one source, each source is compiled (not linked) separately by using -c switch. This produces .obj files for each source. Then, all these OBJs are linked together using TLINK to produce an execuatable.
Jan 3 '07 #4

Post your reply

Sign in to post your reply or Sign up for a free account.