|
Re: assembly ide [message #1849317 is a reply to message #1840668] |
Wed, 12 January 2022 16:58 |
Todd Longfellow Messages: 2 Registered: January 2022 |
Junior Member |
|
|
I do not believe that Eclipse has a specific plug-in for assembly language, however, you can use the C/C++ version of Eclipse to do assembly language programming. The following steps are for Linux, but if you are using Windows, you can download and install the nasm assembler.
Download and install Eclipse C/C++ IDE. Create a new project and select C Managed Build. Name your project in the next dialog box; select Empty Project and choose Linux GCC (assuming you are using Linux). Click Finish. At this point, Eclipse will have created the necessary directories under your project. With your project name selected in the project navigation window, go up to the File menu and select New Source File. In the New Source File dialog box, type in a source file name - something like test.asm - where test can be any name, but give it the extension .asm. Click Finish. You will now have an empty source code file for your assembly language source code.
Next, Eclipse needs to know about the assembler and linker. Go up to the Project Menu and select Properties. In the Properties dialog window, choose to expand the C/C++ Build group. Select Settings. For assembly language, you can ignore the GCC C Compiler group. Click on the GCC C Linker group. In the Command text box, change GCC to ld. Next, click on the GCC Assembler group. In the Command text box, change "as" to nasm (assuming that is the assembler you have installed and want to use. Move down to the Expert settings: and in the Command lin pattern: text box, between the closing brace of COMMAND and the dollar sign ($) of FLAGS, type in the nasm options you want. Something like: -f elf64 -F -g. Click on Apply and Close. You are now set up to assemble and link your assembly language program.
|
|
|
|
Powered by
FUDForum. Page generated in 0.03408 seconds