openpiton icon indicating copy to clipboard operation
openpiton copied to clipboard

Question about run personal program on Araine genesys2

Open BaoBao-zhu opened this issue 2 years ago • 3 comments

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 avatar Jun 03 '23 11:06 BaoBao-zhu

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

BaoBao-zhu avatar Jun 03 '23 12:06 BaoBao-zhu

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

BaoBao-zhu avatar Jun 03 '23 16:06 BaoBao-zhu

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.

Jbalkind avatar Jun 07 '23 16:06 Jbalkind