Recently we observed that stackframe struct types should not be exposed to clients (#82).
But also, stackframe struct types are space-inefficient anyway because a given frame has so many variants. These are a principal component of excessive uniqtype size on disk (see also #12).
Taking inspiration from the 'compiled' approach of eh_elfs (#83), can we devise a similar approach? This would mean some generated code computes the frame layout on demand, or perhaps computes the answers to the query "given an offset in the frame, what lives there?".
I think this would be very similar to the eh_elfs approach, although note that a big 'compiled' binary search tree is not space-efficient either, so maybe a custom table is the way (#83 again) and the only compiled code snippets are somehow outlined/commoned parts. Or maybe they disappear entirely and it's just a custom table! The main idea is pooling over all functions and all layouts thereof, to save space opportunistically.