Add the TC compiler to editplus

Source: Internet
Author: User

1. editplus tool Integration
Tool integration-compiler integration examples (Java, Borland C ++, Visual C ++, Inno Setup, NSIs)
On the "Tools> Parameter Selection> User Tools" option page, set steps
① Set the group name. You can leave it unspecified here.
② Click "add tool> application" and make the following settings
③ Various parameters similar to "$ (filepath)" can be obtained from the arrow drop-down menu on the right of the text box. The specific meanings are as follows:
Parameter description
$ (Filepath) file path (full name of the file, including the Directory and file name)
$ (Filedir) file directory (without file name)
$ (Filename) file name (without directory)
$ (Filenamenoext) file name without extension (without directory)
$ (Fileext) Extension (current file)
$ (Projectname) project name (current project name)
$ (Curline) current row number (the row number at the cursor position)
$ (Curcol) Current column number (column number at the cursor position)
$ (Cursel) Current text (insert selected text)
$ (Curword) current word (insert current word)
$ (Windowlist) display the current window list and select a specific file

Ii. Compilation of Turbo C
The turbo C2 directory contains three Doc help documents. Please take a look before proceeding !! Then you will know
Tc.exe is a DOS-based graphical interface compiler whose configuration file is tcconfig. TC, this file can be opened through tc.exe, then Alt + O open the "option" menu, select "directories", set the include file, library file, and Turbo C root path, click "Save options" to save it to tcconfig. TC file. however, this program is too slow and the interface is too unattractive. Let's talk about how to use editplus for compilation!
Tcc.exe is a command line compiler: the configuration file is turboc. cfg, which can be opened in a text editor. The default configuration file contains two lines:
-Ic:/turboc2/include
-LC:/turboc2/lib
This refers to the directory of the include file and library file. You can drag the path according to the gourd and modify the path according to your actual situation. After configuring the path, you can open editplus,
-> Select "Tools"
-> "Configure user tools"
-> "Add tool"
-> "Application"
-> Set a title, such as "compile C"
-> Command line C:/TC/TCC. exe
-> Parameter-ic:/TC/include-LC:/TC/lib-N $ (filedir) $ (filepath)
-> Select the TC root directory (for example, "C:/Tc2") as the initial directory. Otherwise, the tlink. exe program cannot be found during compilation)
-> Select "Capture output" and "Save opened files"
The above settings should be based on the actual path
-> Click "application", "OK", and complete. Then you can use editplus to write C Programs and compile the program. However, the turboc integrated development environment debugging and tracing functions are missing!
Note: When editplus is used, folder names with more than 8 characters cannot be found in all used file directory paths !! By default, all compiled programs are stored in the TC root directory. If you want to output the compiled files to the specified directory, you must go to turboc. add a line "-ne:/outdir" to the CFG configuration file. Here, "E:/outdir" is the Output Folder path you want to set; for more configuration options, see the prompt displayed when you press "tcc.exe" in the help document or command line.

Iii. Compile and run
To run the compiled *. EXE file, you can make the following settings (the executable file must have the same name as the compiled file ):
Menu text: Run
Command: $ (filenamenoext)
Parameters:
Initial Directory: $ (filedir)
In addition, you can add other applications, help documents, and keyboard Macros in the user tool (you can record them yourself ).

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.