Replies: 1 comment
-
I believe what's happening here is that the return value from If you create a larger than 8 bytes struct, it switches to using (I am just starting to learn about MIR through c2m too, so this may be wrong.) |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I've been looking at this project recently and trying to understand it and potentially use it for an embeddable scripting language. however I got confused when it got to return values, I've been mostly exploring the language via c2m and wanted to see how it handled compund(non primitive) return types, so I have the following c code
the corresponding generated mir is
I have a few questions
f:4(fp):f
andi32:(fp):i
doing exactly, I'm guessing dereferencing and casting, but I'm not exactly surep
instead ofi64
for pointers(gotten fromalloca
)Beta Was this translation helpful? Give feedback.
All reactions