How to control GCC builtin functions optimization

Martin Liška
Fri Jan 11 09:22:00 GMT 2019

On 1/11/19 4:03 AM, Cao jin wrote:
> Now the questions is: from code-reading, it is kind of non-intuitive, is
> there any explicit way to control the optimization behavior accurately?


Please take a look here:

you are searching for:
Force (do not force) the use of memcpy for non-trivial block moves. The default
is ‘-mno-memcpy’, which allows GCC to inline most constant-sized copies

and possibly for:



More information about the Gcc-help mailing list