Menu Details First, File (File) Menu Press Alt F to enter the File menu, which includes the following: .load (load) load a file, available a list of DOS-like wildcards (such as * .c) list selection . You can also load other extensions, as long as the file name (or only the path) is given. The hotkey of this item is F3, ie, as long as you press F3 in the main menu, you can enter the item without need to enter the File menu and then select this item. .Pick lists the 8 files recently loaded into the editing window allows the user to select, after selecting the program into the editing area, and lays the light to the last modified place. It is thermal into ALT-F3. .New (new file) Description file is new, the default file is named Noname.c, and the rename is renamed when the deployment. .Save (storage) will ask if the file name is Noname.c, if the file name is Noname.c, the hotkey is F2. .Write to (save) can give the file name in the editing area by the user, if the file already exists, ask if you want to overwrite. .Directory (directory) Displays files in the directory and directory, and can be selected by the user. .Change Dir Displays the current directory, the user can change the displayed directory. .OS shell (Temporarily Exit) Temporarily exit Turbo C 2.0 to DOS prompt, at which time you can run the DOS command, if you want to go back to Turbo C 2.0, you can type EXIT in the DOS state. .Quit (exit) exits Turbo C 2.0, returns to the DOS operating system, the hotkey is Alt X.
Explanation: The above can be selected with the cursor keys to move the color bar, and the carriage return is performed. You can also choose from the first uppercase letter for each item. To return to the main menu or return to the next level menu list box to return to the ESC key, all menus of Turbo C 2.0 use this method, and the following will not be described. Second, Edit menu Press Alt E to enter the editing menu. If you return it, the cursor appears in the editing window, at which time the user can perform text editing. The editing method is basically the same as WordStar, and the F1 key can be used to obtain help information about the editing method. The function keys related to editing are as follows: f1 Get the help information of the Turbo C 2.0 Edit Command F5 Enlarge Edit window to the entire screen F6 switched between the edit window and the information window to transfer the F10 from the edit window to the main menu Edit command: Pageup The front page pagedn is turned backward home to move the cursor to the start of the row END to move the cursor to the end of the line Ctrl Y Delete the cursor where the cursor is located. Ctrl KB Setting block. Ctrl KK Set Block End CTRL KV Block Mobile Ctrl KC Block Copy Ctrl KY Block Delete Ctrl KR Read File Ctrl KW Save File Ctrl KP Block File Print Ctrl F1 If the cursor is the Turbo C 2.0 library function , Obtain help information about the function Ctrl Q [Look for the Turbo C 2.0 Double Degree Ctrl Q] Find front matching of Turbo C 2.0 double-border
Note: 1. The double-border of Turbo C 2.0 includes the following symbols: Petronics {and} poachet
4. Compile menu Press Alt C to enter the Compile menu, which has the following contents: .Compile to obj (Compile Generate Target Code) Compiles a C source file to generate .Obj target files, and display the generated file name. Its hotkey is Alt F9. .MAKE EXE FILE (Generate Execution File) This command generates a .exe file and display the generated .exe file name. Where the .exe file name is one of the next few. 1. The project file name description by Project / Project Name. 2. If there is no project file name, the source file description by Primary C File. 3. If there are no file names above, the file name of the current window. .LINK EXE FILE (Connection Generation Execution File) Connect the current .Obj file and library files together to generate .exe files. .Build All (Create all files) Re-compiling all files in the project and assemble the build .exe file. This command does not perform an extensive check (the above command to be checked, that is, if the date and time of the current project source file is the same or earlier, the source file is rejected). .Primary c file (main C file) When the primary file is specified in this item, in future compilation, if there is no project file name, compiling the main C file specified in this item, if there is an error in the compilation, This file is transferred to the editing window, regardless of the main C file in the current window. .GET INFO (get information about the current path, source file name, source file byte size, compilation, available space, etc. 5, Project "menu Press Alt P to enter the Project menu, the menu includes the following Content: .project name The name of the .prj extension, including the file name to be compiled, connected. For example, a program consists of file1.c, file2.c, file3.c, to put these 3 The file compiles into a file.exe execution file, you can build a file.prj project file, which is as follows: file1.c file2.c file3.c At this point, File.PRJ is put in the Project Name entry, The three source files specified in the project file will be automatically compiled later. Then connect to a file.exe file. If some of these files have been compiled into .Obj files, but have not been modified, they can be written directly. Obj extension. This will not be compiled again. For example, file1.obj file2.c file3.c will not be compiled, and directly connect directly. Description:
When each file in the project file is free of extension, all according to the source file, in addition, the files can also be a library file, but must write the extension .lib. . BREAK Make ON is compiled by the user if there is a Warining (Warning), ERRORS (Error), Fatal Error, or before the Link (Connection). .Auto dependengies (Automatic dependencies) When the switch is ON, check the source file and the corresponding .Obj file date and time, do not check it. . Clear Project Clears the project file name in Project / Project Name. .Remove Messages Clear the error message from the information window. 6. Options (Select Menu) Press Alt O to enter the Options menu, which is cautious about beginners. .COMPILER This item selects many submenus, allows users to select hardware configuration, storage model, debugging technology, code optimization, conversation information control, and macro definition. These submenities are as follows: Model has Tiny, Small, Medium, Compact, Large, and huge, six different modes can be selected by the same. Define opens a macro definition box, and the same host can enter macro definition. Multi-definition can be used as a selection, assignment available equal sign. Code generation has many options that tell the compiler what kind of target code. Calling convention can select C or PASCAL way to pass parameters. Instruction Set Select 8088/8086 or 80186/80286 instruction series. FLOATING POINT selects simulation floating point, mathematical coprocessor floating point or no floating point operation. Default Char Type specifies the type of char. AlignNent specifies the address alignment principle. Merge Duplicate Strings makes optimized, combining duplicate strings together. Standard Stack Frame produces a standard stack structure. Test Stack Overflow generates a program running code that detects the stack overflow. Line Number is placed in the .Obj file for debugging. Obj debug information produces debugging information in .Obj files. Optimization Optimize FOR selection is to optimize the program miniaturization or the program speed. Use register variable is used to select whether register variables are allowed. Register Optimization uses register variables as much as possible to reduce excessive number of octures. Jump Optimization is compressed by removing excess jumps and adjusts the ways and switching statements. Source Indentifier Length illustrates the number of identifier valid characters, default is 32. NESTED Comments allows nesting. ANSI Keywords ONLY is only allowed by the ANSI key or the Turbo C 2.0 keyword error ERROR STOP AFTER stops compiling, default is 25. How many warnings when WARNING STOP AFTER stops compiling, it is 100.
Display Warning Portability Warning Portion Warning error. ANSI ViOLATIONS infringes the warning error of the ANSI keyword. Common Error common warning error. Less Common Error rare warning error. Names is used to change the name of Segment, Group (Group), and the default is Code, Data, BSS. .Linker This menu sets the selection of the connection, which has the following: Map file menu Select whether to generate .map file. Initialize Segments does not initialize the paragraph that does not initialize during connection. DEVAULT LIBRARIES is looking for its default library when connecting the target files generated by other compilers. Does Graphics Library connects to a function in the Graphics library. WARN DUPLICATE SYMBOLS Generates warning information when there is a repeating symbol. STACK WARINIG is whether the connection program produces no Stack warning information. Does Case-Sensitive Link distinguish between large, lowercase.
.Environment This menu specifies whether the file error in the edit window is tracked for some files and tab keys and screen sizes. All files track all file errors. OFF is not tracked. Keep Message is compiled to clear the information in the Message window. When Config Auto Save is ON, before run, shell, or exit the integrated development environment, if the configuration of Turbo C 2.0 is changed, the change will be stored in the configuration file. Do not store when you choose OFF. EDIT Auto Save automatically stores the edited source file before run or shell. The Backup file generates a reserve file (.bak file) when the source file is stored. Tab Size Sets Table Size and defaults to 8. Zoomed Windows enlarges the current active window to the entire screen and its hotkey is F5. Screen Size Sets the screen text size.
.Directories (path) specify the path to compile, connect the required file, and the following: include Directories contains the path of the file, multiple subdirectory ";" separate. Library Directories library file path, multiple subdirectory ";" separate. The directory of the Output Directoried output file (.obj, .exe, .map). Turbo C Directoried Turbo C The directory where you are located. Pick File Name Defines the loaded PICK file name, if not, take it from the current pick file.
.Arguments (command line parameters) allows users to use command line arguments. .SAVE OPTIONS (Storage Configuration) Save all selected compilers, connect, debug, and projects into the configuration file, the default configuration file is Tcconfig.TC.
. RETRIVE OPTIONS is loaded into a configuration file to TC, and TC will use the selection item of the file. Seven, Debug (Debug) menu Press Alt D to select the Debug menu, which is mainly used to find the error, which includes the following: Evaluate Expression To calculate the expression of the result. Result shows the calculation results of the expression. New value assigns a new value. Call Stack This item cannot be in contact. It is used to check the stack when Turbo C DEBUGER. The Find function is used to display a specified function when running Turbo C Debugger. Refresh Display If the edit window is overridden by the user window to rewrite the contents of this recovery editing window.
8. Break / Watch (breakpoints and monitor expressions) Press Alt B to enter the Break / Watch menu, which is the following: add Watch inserts a monitoring expression to the monitor window. DELETE WATCH removes the current monitoring expression from the monitor window. Edit Watch edits a surveillance expression in the monitor window. REMOVE All Watches removes all monitor expressions from the monitor window. Toggle BreakPoint Sets or clears breakpoints on the row where the cursor is located. Clear All BreakPoints Clear all breakpoints. View Next BreakPoint moves the cursor to the next breakpoint.
Turbo C 2.0 configuration file
The so-called configuration file is a file containing Turbo C 2.0 information about information, including information such as compilation, connection and path. The following method can be created with the following: 1. Create a user-named configuration file to select the options / save options from the Options menu to store all configurations of the current integrated development environment into a configuration file named by the user. in. The next time the TC is started under DOS, just type: TC / C