-
Notifications
You must be signed in to change notification settings - Fork 97
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add mangling for fixed point types proposed in N1169. #161
Add mangling for fixed point types proposed in N1169. #161
Conversation
Not sure how to "reference" issues with PRs, but this is for issue #56 |
81e56e4
to
0ffd83d
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Generally looks good to me; just a couple minor editorial requests.
We have an active PR in #159 to make certain extended types substitutable. Should these be substitution candidates if the same type is used in multiple places?
0ffd83d
to
c204e5f
Compare
I asked around and we unfortunately don't know how common it would be to have mangled signatures with fixed-point types in them in places we might intend to use them. Sorry for the incomplete answer. Although given that the largest mangling for a fixed-point type is 5 characters and substitutions should be less than that, we still think having a sub should provide savings. |
Okay. The abstract guideline here is that adding substitutions does have a cost: in longer symbols, it can actually increase overall symbol size by filling the substitution table with a lot of extra types, making later substitutions larger. I would say the line is around 4 bytes — a 3-byte mangling is probably not worth substituting, but a 5-byte mangling probably is. Applying that to this would make only the saturating types candidates. But treating different fixed-point types differently might be annoying to implement, and it's probably not a big deal either way. Given that, do you have a strong opinion? |
Yeah in that case I'd probably want to aim for consistency and would lean towards not making any of them candidates. |
ping for any more comments on this |
Looks good to me. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
Alright, I think this has been open for long enough. |
No description provided.