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

There are non-standard mechanisms to control variable initialization. GCC has -ftrivial-auto-var-init=zero for zero-init of locals (with some caveats). For globals, you can link them into a different section than bss to disable zero-init.


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

Search: