forked from TheThirdOne/rars
-
Notifications
You must be signed in to change notification settings - Fork 35
Open
Labels
enhancementNew feature or requestNew feature or request
Description
An assembly listing contains the original assembly source annotated with the addresses and the generated binary code.
You can have it with GNU as with the option -al for instance.
$ riscv64-linux-gnu-as -al hello-riscv.s
1 .text
2 .global _start
3 _start:
4 0000 93080004 li a7, 64
5 0004 13051000 li a0, 1
6 0008 97050000 la a1, helloStr
6 93850500
7 0010 1306F000 li a2, 15
8 0014 73000000 ecall
9 0018 9308D005 li a7, 93 # exit
10 001c 13050000 li a0, 0
11 0020 73000000 ecall
12 .data
13 0000 48656C6C helloStr: .string "Hello, RISC-V!\n"
13 6F2C2052
13 4953432D
13 56210A00
Listings are a great tools for educational purpose as it shows the translation to machine code, endianness, alignment, etc.
We could add a new tab listing in the message panel that shows the listing in a read-only text-area.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request