You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
How to print the double value and use math function in emulator.
#include <stdio.h>
int main(void) {
double value; value = 5;
printf("The value is %f\n", value );
return 0;
}
I am trying to run the myprogram.riscv by compiling riscv-test and runing the defualtconfig ./emulator-freechips.rocketchip.system-Rocc10-debug -V $RISCV/target/share/riscv-tests/benchmarks/myprogram.riscv 3>&1 1>&2 2>&3 | spike-dasm >hello.out
I get this instead of value at output The value is %f
I am trying to use the math.h file in program and i need double, float values
This discussion was converted from issue #1427 on January 12, 2023 00:24.
Heading
Bold
Italic
Quote
Code
Link
Numbered list
Unordered list
Task list
Attach files
Mention
Reference
Menu
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
How to print the double value and use math function in emulator.
I am trying to run the myprogram.riscv by compiling riscv-test and runing the defualtconfig
./emulator-freechips.rocketchip.system-Rocc10-debug -V $RISCV/target/share/riscv-tests/benchmarks/myprogram.riscv 3>&1 1>&2 2>&3 | spike-dasm >hello.out
I get this instead of value at output
The value is %f
I am trying to use the math.h file in program and i need double, float values
Beta Was this translation helpful? Give feedback.
All reactions