i cloned riscv-tools repository (master branch) , followed build procedure. went fine.
then tried compiling hello world program rv32im instruction set, doing this:
riscv64-unknown-elf-gcc -m32 -march=rv32im -o hello hello.c -save-temps i used options save-temps keep intermediate files. (hello.s, hello.i, hello.o)
everything ok far, can run hello world program with:
spike pk hello hello world! now wanted take @ assembly code program. did following , assembly code hello.dump
riscv64-unknown-elf-objdump -d -s -l -f hello.o > hello.o.dump now interested see assembly code without pseudo instructions , non abi-register names.
it appears possible that, when do:
riscv64-unknown-elf-objdump --target-help i this:
the following risc-v-specific disassembler options supported use -m switch (multiple options should separated commas): numeric print numeric reigster names, rather abi names. no-aliases disassemble canonical instructions, rather pseudoinstructions. however when try adding these options, not work.
riscv64-unknown-elf-objdump -d -s -l -f -mno-aliases hello.o > hello.o.dump unrecognized disassembler option: no-aliases riscv64-unknown-elf-objdump -d -s -l -f -mnumeric hello.o > hello.o.dump unrecognized disassembler option: numeric riscv64-unknown-elf-objdump -d -s -l -f -mnumeric,no-aliases hello.o > hello.o.dump unrecognized disassembler option: numeric unrecognized disassembler option: no-aliases is command syntax error or not supported yet disassembler?
i can reproduce , same error message. however, riscv64-unknown-elf-objdump returns 0 , output file contain assembler dump without pseudoinstructions and/or numeric register names, requested option. seems working expected, outputs irritating error message.
the riscv-tools repo has not been updated since feb. tried build of more recent version of riscv-gnu-toolchain , here don't error message. i'd non-critical bug has been fixed in riscv-gnu-toolchain , fixed in riscv-tools riscv-gnu-toolchain updated there.
Comments
Post a Comment