Paulo Matos
unread,Oct 24, 2017, 3:22:59 AM10/24/17Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to RISC-V SW Dev
Hello,
I was quite surprised to see li in the objdump -d output. It looks like:
00000003 <foo>:
3: ff010113 addi sp,sp,-16
7: 00300793 li a5,3
b: 00f12623 sw a5,12(sp)
f: 00c12783 lw a5,12(sp)
13: 01010113 addi sp,sp,16
17: 00a78533 add a0,a5,a0
1b: 00008067 ret
Although I do understand this might be for readability, I would also
like to have an option to see the raw instructions. In this case,
instead of li a5, 3 I would like to see addi x15, x0, 3. Is this possible?
I understand the assembler to be generated by the compiler to use
pseudo-instructions, after all it makes the compiler life easier and the
assembler reader as well, but I am not so happy to see pseudo
instructions to come out of the objdump. What was the rationale behind
this decision?
Kind regards,
--
Paulo Matos