On Sat Jun 22 01:16:31 2024 +0000, Davide Beatrici wrote:
Can we move the thunks to `mmdevapi` somehow? That way we don't duplicate them across backends... If I recall correctly @huw suggested that in a merge request of mine.
Do you have some reference so I could see the suggestion? Generally I don't think we can exactly move the thunks, logically that belongs to Unix backend. What could be done is using 32 / 64 bit compatible structures (at the cost of additional casts in mmdevapi on every parameter structure fill), but I am not sure if that is a clear win: it will avoid duplicating thunk but will be prone to errors in struct definition, it is easy to make those incompatible. Anyway, I guess it is a bit orthogonal to my MR and also we should probably stick to the same way of doing it throughout the modules?