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

> So what Cosmopolitan does for memcpy() and many other frequently-called core library leaf functions, is defining a simple macro wrapper, which tells the compiler the correct subset of the abi that's actually needed

By not marking all memory as clobbered for a call to memcpy, couldn't the memcpy overwrite a local variable, in which case reads post memcpy could miss the updated value?

> The above two compiles used the same gcc flags

Why does the before have frame pointers and post does not?



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

Search: