Learn with SHAKTI

My First ASM Program

The necessary files to compile and simulate a C program in spike environment, are hosted inside the spiking folder.

Please, copy and paste the below commands to download the spiking folder.

Move to spiking folder

Open a file in a text editor and save it inside spiking folder


example.S content:


Before starting compilation, Please check if the shakti-tools are successfully installed.

Please ensure you're inside spiking folder and run the below command

On successful compilation, a executable binary named example.elf will be generated.

Object dump for the compiled ASM Program

riscv64-unknown-elf-objdump displays the dis-assembled code of the elf file.

Use vim or gedit to view the objdump file created i.e log