Skip to content

Compiling code

Marko Njegomir edited this page Oct 18, 2019 · 6 revisions

Compiling code

For compiling code, i386ide offers one click compiling, per project compiler options, automatic linking of all the files in the project.
The compiled file is also automatically created when you use Run or Debug actions.

Compiling projects

To compile the code in the currently selected project click on the Compile button in the toolbar, or use the Ctrl + Shift + F5 shortcut.
A new .out file will be created in the project directory and will be named after the project that is being compiled.

Compiler options

The compiler will use the default compiler options -g;-m32 when compiling, unless some other compiler options are specified.
To manually specify what options should be used when compiling the selected project, right click on the project in the tree view and select Compiler options.
A new window will appear with the text field where you can enter new options separated with ;.
There you also have the options to Save the changes, Cancel or Reset to default, witch will set the options to -g;-m32.

For more information on gcc compiler options please visit the gcc options-summary.

Manually compile from terminal

It is also possible to manually compile using the built-in terminal, just like you would use any other terminal for compiling.
Files can be compiled by using any compiler available on your system.

You can either use full paths when compiling from the terminal, or position yourself in the project folder using the cd command, and compile the files present in the project folder without having to type in the full path of the files.

Assemble files

To manually assemble files use as -o {file.o} {file.S}

Linking files

To manually link files use ld -o {project_name.out} {file_names.o}