Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
mkup
on Dec 28, 2020
|
parent
|
context
|
favorite
| on:
Cosmopolitan Libc: build-once run-anywhere C libra...
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).
saagarjha
on Dec 28, 2020
[–]
A better way to do with with GCC at least is -fno-builtin.
fwsgonzo
on Dec 28, 2020
|
parent
[–]
You can disable them individually too: -fno-builtin-memcpy
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: