我怎样才能使用TCC和TC编译在DOS提示符C程序 [英] How can i Compile a C program on Dos prompt using tcc and tc

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

问题描述

我要编译DOS的C程序提示使用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网页上。假设你有一些源$ C ​​$ C则已,一汇编很简单,只要

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

您也可以用经营; 选项直接运行C文件,在

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

tcc -run sourcefile.c

这篇关于我怎样才能使用TCC和TC编译在DOS提示符C程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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