andrescv / jupiter

RISC-V Assembler and Runtime Simulator
https://jupitersim.gitbook.io/
GNU General Public License v3.0
417 stars 36 forks source link

Assembler directives errors #29

Closed MarekPesta closed 5 years ago

MarekPesta commented 5 years ago

Hi!

I’m using pure RV32I Toolchain instaleld as described here: link.

I wrote a simple C program:

image

Using mentioned RV32I Toolchain I generated .s file. I wanted to simulate this assembler code in Jupiter but I have some errors (errors that occured are commented in the line they are related to):

image

Following the RISC-V Assembly Programmer's Manual: link directives that are used in my code should be fine.

andrescv commented 5 years ago

Hi !

The RISC-V toolchain should not be used with Jupiter because the C compiler generates directives not supported (.option, .size, .ident) by Jupiter and other features like numeric labels.

MarekPesta commented 5 years ago

OK, thank you for your answer.