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

https://godbolt.org/z/11931W Here's an example where it happens even when not inlining.


I guess that's because the struct size is below 16 bytes (see my sister comment). Adding two more ints to the struct places the entire content on the stack.


Note that this is not an optimization (as in something the xompiler can do when optimizing). This behaviour is mandated by the ABI.


Sure, so it doesn't have to do with inlining.




Consider applying for YC's Winter 2026 batch! Applications are open till Nov 10

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

Search: