Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can i Compile a C program on Dos prompt using tcc and tc

I want to compile c program on dos prompt using tcc as well as tc without using c editor. please give the full procedure.

like image 596
Sumeshsankar Avatar asked Oct 21 '25 01:10

Sumeshsankar


1 Answers

I would look at the TCC documentation, specifically the quick start guide, provided on the TCC web page. Assuming you have some source code already, a compilation is as simple as

tcc -o executable.exe sourcefile.c

You can also run a C file directly with the -run option, as in

tcc -run sourcefile.c
like image 149
Tim Avatar answered Oct 23 '25 14:10

Tim



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!