3 ms·
As long as the calling convention is deterministic from the declaration of the function it should be fine right?
by rightbyte 4y ago
As long as the calling convention is deterministic from the declaration of the function it should be fine right?
- usrnm 4y agoIf 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.