Collection of Turbo C 2.0

Source: Internet
Author: User
Tags exit in

Introduction to the main file list of Turbo C 2.0:

Install. EXE installer file
TC. EXE integrated compilation
Configuration setup for tcinst. EXE integrated development environment
Tchelp. Tch Help File
Thelp. com reads the resident program of tchelp. Tch.
Readme information file on Turbo C
Tcconfig. EXE configuration file conversion program
Make. EXE project management tool
TCC. EXE command line compilation
Tlink. EXE Turbo C series Connector
Tlib. EXE Turbo C series library management tools
C0 ?. OBJ startup code in different modes
C ?. Library running in different lib Modes
Graphics. Lib graphics library
EMU. Lib 8087 simulation Library
Fp87.lib 8087 Library
*. H Turbo C header file
*. BGI different display graphics drivers
*. C Turbo C routine (source file)
Where: The above? They are:
T tiny (micro Mode)
S small (small Mode)
C compact (compact Mode)
M medium (medium mode)
L large (Large Mode)
H huge (massive Mode)

Important Document Description

1. TCC. EXE and TC. exe

The Turbo C package has two compilers: TC. EXE in the integrated development environment and TCC. EXE in the command line mode.
The integrated development environment includes: Integrated Editor, command line compiler, connector, and debugger.

Trubo C command line compilation connection
Command Line compilation refers to calling the tcc.exe program of trubo CIN dos. to complete the compilation and connection of the Turbo C source program. when you select the suffix *. during compilation of ASM assembler files, TCC must call tasm before the suffix is. ASM files are compiled. This method is suitable for the compilation connection of C program and assembly language mixed programming. When C program is embedded in assembly instructions, it must also be compiled and connected using this method.
The command line compilation format is:
TCC [option 1 option 2...] file Name 1 file name 2... the options are the options used to connect to the subsequent files. The optional common options are as follows: each option is preceded by a "-" number and case sensitive. The file name refers to the source file. C or the target file. OBJ or library file. when the Lib does not specify that only compilation is not connected, TCC completes the compilation and connection steps. the LIB Library only performs formal connections, and the standard library users do not need to connect.
For example:
TCC-IB:/include-LB:/lib-Etest start. C body. OBJ contains (given by-test ).
-IB:/include indicates that the path of the file to be included is B:/include.
-IB:/lib indicates that the path of the library file is B:/lib.
For example:
TCC-MS-efile-LC:/TC/lib file1 file2.obj graphics. Lib
-Ms indicates selecting the small memory mode for compilation. It is also the default compiling mode of Turbo C. It compiles file1 and then connects file2.obj and graphics.libto generate the executable file of file.exe. graphcis. the path of the Lib library is C:/TC/lib, which means to search for graphics in the C:/TC/lib directory. lib file. for mixed programming, if the assembly program s3.asm already exists, its command line can be written
Tcc ic:/TC/include-LC:/TC/lib-mm S1 S2 s3.asm mylib. Lib
Compile. during compilation, find the inclusion file in the C:/TC/include directory
C: Find the library file mylib. Lib in the/TC/lib directory.

2. tlink. EXE is the connection program.

What is an OBJ file?
The content of the target file is the code that completes a certain function, but the machine code that is stored.
It can be understood that the target file is a subroutine or subfunction.
What is the role of tlink.exe?
Connect the startup Code (which is also an OBJ file, responsible for setting the environment, calling the main function, and so on) + the OBJ used by the OBJ + main function where the main function is located to generate the EXE file.

3. tlib. EXE is a tool used to operate lib files.

What is the Lib file?
Object collection, you can use tlib.exe to retrieve the object OBJ from the Lib file, add the object OBJ to the Lib file, and perform other operations.

4, *. h file

The include folder contains the description of the library functions provided by Turbo C.
If you want to use a function, you need to include the corresponding header file.
Of course, you can define your own header files.

5. Set the path

The Edit-related function keys are as follows:
F1 obtains help information about the Turbo C 2.0 editing command.
F5 expands the editing window to the entire Screen
F6 switch between the editing window and the Information Window
F10 go from the editing window to the main menu

Edit command introduction:
Pageup front flip
Pagedn flip back
Home move the cursor to the beginning of the row
End move the cursor to the end of the row
CTRL + y Delete the row where the cursor is located
CTRL + T delete a word at the cursor
CTRL + kb set block start
CTRL + kk
CTRL + kv Block Movement
CTRL + KC copy
CTRL + Ky block Deletion
CTRL + kr Read File
CTRL + kW save file
CTRL + KP block file Printing
CTRL + F1 if the cursor is located at the Turbo C 2.0 library function, get help on this function
Information
CTRL + Q [find the matching character of the Turbo C 2.0 dual-line operator
CTRL + q] Find the pre-match of the Turbo C 2.0 dual-line operator

Note:
A. The dual-interface operators of Turbo C 2.0 include the following symbols:
Included characters {And}
Tip character <and>
Circle character (and)
Square brackets [and]
Annotator/* and */
Double quotation marks"
Single quote'
B. When editing files, Turbo C 2.0 also has the function of automatic indentation, that is, cursor positioning.
Alignment with the previous non-empty character. In the editing window, CTRL + ol is the control key for the automatic indent switch.

File menu
. OS shell (temporarily quit)
Temporarily exit Turbo C 2.0 to the DOS prompt. You can run the DOS command.
In Turbo C 2.0, enter exit in DOS state.
. Quit (Exit)
Exit Turbo C 2.0 and return to the DOS operating system. The hotkey is Alt + X.

If Pascal call conventions are used during program compilation (For details, refer to Borland C ++ & Turbo C ++.
In the programmer's manual, the "and assembly language interface" chapter must explicitly state that main is in C format. In this case, you can use the keyword cdecl to explicitly describe:
Cdecl main (INT argc, char * argv [], char * envp [])

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.