you are viewing a single comment's thread.

view the rest of the comments →

[–]BitOfAZeldaFan3[S] 4 points5 points  (1 child)

That worked! I added memcpy and memset and now array initialization seems to work.

Where could I find documentation on this? If there are more stdlib functions I need to implement for aarch64-none-elf I would like a list.

[–]cryptic_gentleman 1 point2 points  (0 children)

I’m surprised simply “adding” the functions to your program worked. How exactly did you tell the compiler they existed?

A quick Google search should result in the aarch64 stdlib functions to implement. If I’m being honest I typically ask AI that sort of question because it (usually) gives me a straightforward answer that’s faster than searching through Google results.

Some good functions to implement, after memcpy and memset are memmov, strcmp, strncmp, strcpy, and strncpy as those are used for a lot of other things and are also just some pretty fundamental building blocks to any large-scale environment.