PrincetonUniversity / openpiton

The OpenPiton Platform
http://www.openpiton.org
629 stars 212 forks source link

Question about run personal program on Araine genesys2 #128

Open BaoBao-zhu opened 1 year ago

BaoBao-zhu commented 1 year ago

I tried run the personal code on genesys2, but when I use the function malloc, it broke. Then I changed the rv64_cc file to enable the stdlib,but it still not works. I want to know whether the program support the stdlib?

image

9)X0K6S`)K}WI241A480F1F

BaoBao-zhu commented 1 year ago

This problem mainly occurs when the function calls malloc, and running malloc and free in the main function is not a problem.

BaoBao-zhu commented 1 year ago

When the space of malloc increases, an error will also be reported

Jbalkind commented 1 year ago

We don't support the use of malloc in our bare metal environment. If you're bringing your own binaries that you're building yourself then it's your responsibility to handle providing a functioning bare metal libc.