0xAA55 发表于 2014-1-29 15:04:28

Turbo C++ 3.0(古董级16位C、C++编译器下载)

这是面向DOS的16位的编译器。无法在64位Windows下运行。
对于安装了DOS虚拟机的家伙们来说,用这个进行DOS编程是不错的选择。

如下图中的TC是运行在DOSBOX虚拟环境下的TC,Win7 64位无法直接运行TC,你必须安装DOSBOX才能运行TC。


原始镜像下载地址:
http://pan.baidu.com/s/1gdgl7mr

绿化后的下载地址:
http://pan.baidu.com/s/1ipLRl

DOSBOX下载地址:
http://www.0xaa55.com/thread-84-1-1.html

DOSBox下的TC的配置方法:
1、下载TC.7z
2、下载DOSBox
3、按照DOSBox的链接,配置你的DOSBox
4、配置好DOSBox后,解压TC.7z到你的DOSBox的C盘(也就是D:\VDOS\这样的文件夹)
5、改写AUTOEXEC.BAT,添加一条命令:

set path=C:\TC\bin;%path%

6、运行DOSBox,输入“TC”,可以看到TC的界面(1楼图所示)
7、开始编程吧。

TCC的命令行:Turbo C++ Version 3.00 Copyright (c) 1992 Borland International
Syntax is: TCC [ options ] file    * = default; -x- = turn switch x off
-1      80186/286 Instructions    -2      80286 Protected Mode Inst.
-Ax   Disable extensions      -B      Compile via assembly
-C      Allow nested comments   -Dxxx   Define macro
-Exxx   Alternate Assembler name-G      Generate for speed
-Ixxx   Include files directory   -K      Default char is unsigned
-Lxxx   Libraries directory       -M      Generate link map
-N      Check stack overflow      -O      Optimize jumps
-P      Force C++ compile         -Qxxx   Memory usage control
-S      Produce assembly output   -Txxx   Set assembler option
-Uxxx   Undefine macro            -Vx   Virtual table control
-X      Suppress autodep. output-Yx   Overlay control
-Z      Suppress register reloads -a      Generate word alignment
-b    * Treat enums as integers   -c      Compile only
-d      Merge duplicate strings   -exxx   Executable file name
-fxx    Floating point options    -gN   Stop after N warnings
-iN   Max. identifier length    -jN   Stop after N errors
-k      Standard stack frame      -lx   Set linker option
-mx   Set Memory Model          -nxxx   Output file directory
-oxxx   Object file name          -p      Pascal calls
-r    * Register variables      -u    * Underscores on externs
-v      Source level debugging    -wxxx   Warning control
-y      Produce line number info-zxxx   Set segment names链接器tlink的命令行:
Turbo LinkVersion 5.0 Copyright (c) 1992 Borland International
Syntax: TLINK objfiles, exefile, mapfile, libfiles
@xxxx indicates use response file xxxx
/mMap file with publics         /xNo map file at all
/iInitialize all segments       /lInclude source line numbers
/LSpecify library search paths/sDetailed map of segments
/nNo default libraries          /dWarn if duplicate symbols in libraries
/cCase significant in symbols   /3Enable 32-bit processing
/oOverlay switch                /vFull symbolic debug information
/ye Expanded memory swapping      /yx Extended memory swapping
/eIgnore Extended Dictionary
/tCreate COM file
tlib的命令行:
TLIB 3.02 Copyright (c) 1991 Borland International
Syntax: TLIB libname commands, listfile
    libname   library file pathname
    commands    sequence of operations to be performed (optional)
    listfile    file name for listing file (optional)

A command is of the form: <symbol>modulename, where <symbol> is:
    +         add modulename to the library
    -         remove modulename from the library
    *         extract modulename without removing it
    -+ or +-    replace modulename in library
    -* or *-    extract modulename and remove it

    /C          case-sensitive library
    /E          create extended dictionary
    /PSIZE      set the library page size to SIZE

Use @filepath to continue from file "filepath".
Use '&' at end of a line to continue onto the next line.
MAKE的命令行:
MAKE Version 3.6Copyright (c) 1991 Borland International
Syntax: MAKE target
    -B               Builds all targets regardless of dependency dates
    -Dsymbol         Defines symbol
    -Dsymbol=stringDefines symbol to string
    -Idirectory      Names an include directory
    -K               Keeps (does not erase) temporary files created by MAKE
    -N               Increases MAKE's compatibility with NMAKE
    -W               Writes all non-string options back to the .EXE file
    -Usymbol         Undefine symbol
    -ffilename       Uses filename as the MAKEFILE
    -a               Performs auto-dependency checks for include files
    -e               Ignores redefinition of environment variable macros
    -i               Ignores errors returned by commands
    -m               Displays the date and time stamp of each file
    -n               Prints commands but does not do them
    -p               Displays all macro definitions and implicit rules
    -q               Returns zero if target is up-to-date and nonzero
                     if it is not (for use in batch files)
    -r               Ignores rules and macros defined in BUILTINS.MAK
    -s               Silent, does not print commands before doing them
    -? or -h         Prints this message
      Options marked with '+' are on by default. To turn off a default
      option follow it by a '-', for example: -a-

0xAA55 发表于 2014-8-26 23:30:48

最近用到了。顶上去。
页: [1]
查看完整版本: Turbo C++ 3.0(古董级16位C、C++编译器下载)