Page 5 of 5

Re: Optimized memory functions?

Posted: Mon Aug 12, 2013 2:22 am
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.

Re: Optimized memory functions?

Posted: Mon Aug 12, 2013 5:55 am
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.