Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
nikki93
on Sept 7, 2020
|
parent
|
context
|
favorite
| on:
Named Parameters in C++20
https://godbolt.org/z/11931W
Here's an example where it happens even when not inlining.
flohofwoe
on Sept 7, 2020
[–]
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.
gpderetta
on Sept 7, 2020
|
parent
|
next
[–]
Note that this is not an optimization (as in something the xompiler can do when optimizing). This behaviour is mandated by the ABI.
nikki93
on Sept 7, 2020
|
parent
|
prev
[–]
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: