Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Question about run personal program on Araine genesys2 #128

Open
BaoBao-zhu opened this issue Jun 3, 2023 · 3 comments
Open

Question about run personal program on Araine genesys2 #128

BaoBao-zhu opened this issue Jun 3, 2023 · 3 comments

Comments

@BaoBao-zhu
Copy link

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
Copy link
Author

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

@BaoBao-zhu
Copy link
Author

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

@Jbalkind
Copy link
Collaborator

Jbalkind commented Jun 7, 2023

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants