Sujet : Re: "A diagram of C23 basic types"
De : ldo (at) *nospam* nz.invalid (Lawrence D'Oliveiro)
Groupes : comp.lang.cDate : 12. Apr 2025, 06:44:52
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <vtcukk$3n7jv$3@dont-email.me>
References : 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
User-Agent : Pan/0.162 (Pokrosvk)
On Thu, 10 Apr 2025 12:08:58 +0100, bart wrote:
* Each function now needs an accompanying struct
* The function header does not list the parameter names or types
Both are housekeeping aspects which could probably be handled with macros
(waves hands airily).
* When structs are passed by-value as is the case here, it can mean
copying the struct, an extra overhead
No more so than copying the argument list in the first place, surely.
* It can also mean construction an argument list in memory, rather than
passing arguments efficiently in registers
That’s an implementation issue.