4 ms·
If it's deterministic, the compiler cannot actually choose the best way to optimise it.
by usrnm 4y ago
If it's deterministic, the compiler cannot actually choose the best way to optimise it.
- rightbyte 4y agoIt just have to come up with the same best way each time?
- deleted 4y ago[deleted]
- int_19h 4y agoAt the minimum, the compiler can look at the size of the type to decide whether copying or indirection makes more sense. The size is stable for a given parameter signature and architecture, so the ABI is stable. But also, the ABI only matters between two pieces that are separately compiled. A static binary optimized at link-time doesn't have to care.