Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

This is true, but it's possible to prevent this behavior by turning off optimizations for just one function (by adding ``#pragma optimize("g", off)'' before the function definition and ``#pragma optimize("g", on)'' after the function definition).


A better way to do with with GCC at least is -fno-builtin.


You can disable them individually too: -fno-builtin-memcpy




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: