./configure --prefix=/opt/riscv --enable-multilib
sudo make
After that i ran the
/opt/riscv/bin/riscv64-unknown-elf-gcc /home/waleedbinehsan/Desktop/main.c -lm -lgcc -march=rv32i -mabi=ilp32 -o main
Yet still its calling the __adddf3 routines how can i get the asm file that have been linked the respective libraries call
I actually want to run the code on a core, so I made object file using the following command
''/opt/riscv/bin/riscv64-unknown-elf-gcc -I
SweRV-Original/SweRV-EL2_older_release/snapshots/default/ -g -O3
-funroll-all-loops -mabi=ilp32 -march=rv32imc -nostdlib -c main.c -o
main.o''
After that to make the exe file i used the following command
''/opt/riscv/bin/riscv64-unknown-elf-ld -m elf32lriscv --discard-none -T
SweRV-Original/SweRV-EL2_older_release/testbench/link.ld -o main.exe
main.o''
But now I am getting errors such as:
/opt/riscv/bin/riscv64-unknown-elf-ld: /home/waleedbinehsan/Desktop/main.c:118: undefined reference to `__adddf3'
I tried these commands too
To generate the object file
/opt/riscv/bin/riscv64-unknown-elf-gcc -I SweRV-Original/SweRV-EL2_older_release/snapshots/default/ -g -O3 -funroll-all-loops -lgcc -lm -mabi=ilp32 -march=rv32imc -c main.c -o main.o
To generate exe file
/opt/riscv/bin/riscv64-unknown-elf-ld -m elf32lriscv -lgcc -lm --discard-none -T SweRV-Original/SweRV-EL2_older_release/testbench/link.ld -o main.exe main.o
After this command i am getting the following error:
