

makefile -make will run some or all of the three shell commands contained in the makefileįollow the official guide to install CLion.functions.asm - source code of the func() x86_64 assembly function.main.c - source code of the main function which invokes the func() written in x86-64 assembly.The example program goes through a string of text, character by character, changing 'a' to '*' and stopping when it encounters the null terminating string character. # gcc -m64 -g -o program main.o functions.o # nasm -o functions.o -f elf64 -g -l functions.lst functions.asm Now we once we run the make command, it will assemble, compile and link the code: make Move to the AssemblyProjects directory and download the example program: mkdir ~/AssemblyProjects & cd ~/AssemblyProjects Learning resources Guide for 64-bit x86 Run 64-bit x86 code from the terminal Configure CLion to run and debug 32-bit x86 code.Ĥ.Configure Linux to be able to run 32-bit x86 code from the terminal.Configure CLion to run and debug 64-bit x86 code.Configure Linux to be able to run 64-bit x86 code from the terminal.This guide consists of two independent parts: 64-bit and 32-bit and the third and fourth part which are common for both architectures.

#Clion download for students how to#
In this guide I will show you how to configure Linux for writing hybrid C/C++ and x86 NASM code.
