Optimized memory functions?

Discussions on more advanced topics such as monolithic vs micro-kernels, transactional memory models, and paging vs segmentation should go here. Use this forum to expand and improve the wiki!
tsdnz
Member
Member
Posts: 333
Joined: Sun Jun 16, 2013 4:09 am

Re: Optimized memory functions?

Post by tsdnz »

That is what i though would happen.
I think in freestanding you have to do it yourself. not sure but that is what I had to do.
User avatar
sortie
Member
Member
Posts: 931
Joined: Wed Mar 21, 2012 3:01 pm
Libera.chat IRC: sortie

Re: Optimized memory functions?

Post by sortie »

No, gcc will not generate you a memset, memcpy, memcmp and memmove reliably. You are expected to provide these symbols. If -fbuiltin is enabled (disabled by -ffreestanding) then gcc may decide to replace calls to these functions with assembly, but it's not required to do it.
Post Reply