Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a listing tab in the message pane #73

Open
privat opened this issue Aug 9, 2024 · 0 comments
Open

Add a listing tab in the message pane #73

privat opened this issue Aug 9, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@privat
Copy link
Collaborator

privat commented Aug 9, 2024

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.

@privat privat added the enhancement New feature or request label Aug 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant