How to Use EditPlus to configure the Program Development Environment (NASM)

Source: Internet
Author: User

From: http://blog.csdn.net/rikiss/article/details/6418461

Are you tired of VS2008, which is too slow to open? Can't stand Eclipse with a large memory usage? So I suggest you use some lightweight editors to build a development environment for your work. This article mainly introduces, how to Use Editplus, one of the most widely used editors, to build your development environment.

This article is a reference. I hope you will be able to familiarize yourself with the configuration methods of this type of environment through some introduction in this article. What is NASM? Have you heard of it? As the main body of the development environment:

1. Download the NASM Compiler (nonsense), decompress the package, and put it in the "D:/NASM" Directory (well, you can choose the directory as long as you remember it );

 

2. Download and install EditPlus (Declaration: only genuine edition is supported), and select the path freely;

 

3. in the beginning, open EditPlus and choose Tools> Configure User Tools. At this time, we can see that there is a User tool under the Tools tree in the left navigation menu, and select it, there will be a Groups and tool items on the right. The drop-down box below is the first Group "Group 1" by default. Click the Group Name on the right and change the Name to NASM (okay, you can choose not to change the name ...);

 

4. Click the second button "Add Tool" and select Program. At this time, a "New Program" will be added and the "Menu scheme" below will be displayed.

 

5. we know that the nasm compilation command is "nasm source file name. asm-o target file. bin ". Therefore, we need to click the rightmost arrow of" Argument "and select" File Name "(this is with the File suffix ), then the text after "Argument" is changed to "$ (FileName)". We manually change it to "$ (FileName)-o" ("-o" is followed by a space ), click the arrow again and select "File Name Without Extention" (File Name Without suffix). At this time, the text box after "Argument" becomes "$ (FileName) -o $ (FileNameNoExt ). bin ";

 

6. at this time, our basic commands are finished, but they cannot be used. We also need to specify the path and click the arrow behind "Initial directory, select "File Directory" (the folder where the opened File is located). This setting is complete and can be used;

 

7. (This step is optional and depends on your needs.) Open the "Action" drop-down box and we can see that one of the options is "Capture output". This option table is used, after executing this command, any output will be captured and displayed in the output box of Editplus (If this option is selected, the command line window will not pop up, the relative positions of the settings in different versions of Editplus may be different, but they are all in this page );

 

8. after everything is done, click "OK" to complete the settings. At this time, we can see that there is an option in the Tools menu, that is, the "NASM" We just added, the shortcut key is "CTRL + 1";

 

9. now, open a written nasm source code file, click the "NASM" command, or press "CTRL + 1" to compile the code, and generate a binfile!

 

 

Note:

1. if you need to integrate multiple compilers for the development environment at the same time, remember to select another Group, such as "Group 2" in step 2, otherwise, the previously set group will be overwritten;

2. to switch between different command groups, open the menu Tools and select the Command Group to be used in the User Tool Group, for example, the added "NASM" and "JAVA" groups.

3. If you need to add multiple different commands under a group, Repeat 4-8.

 

Disclaimer: the NASM used in this article comes from http://sourceforge.net/projects/nasm; the Editplus version is V3.30

 

In fact, there are still a lot of useful functions about Editplus. I have the opportunity to introduce it to you, such as syntax font highlighting.

 

Finally, thank you for your patience.

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.