我如何编译C程序在Dos提示符下使用tcc和tc [英] How can i Compile a C program on Dos prompt using tcc and tc

查看:642
本文介绍了我如何编译C程序在Dos提示符下使用tcc和tc的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想编译c程序在dos提示使用tcc和tc,而不使用c编辑器。请提供完整的程序。

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

推荐答案

我会看看TCC文档,特别是快速入门指南,在TCC网页上提供。假设你已经有一些源代码,编译就像

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

您也可以使用 -run 选项直接运行C文件

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

tcc -run sourcefile.c

这篇关于我如何编译C程序在Dos提示符下使用tcc和tc的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆