Skip to content

Add a listing tab in the message pane #73

@privat

Description

@privat

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions