Open YerinAlexey opened 2 years ago
Whoops, this PR totally went past me!!
Looks like a solid change to me. Do you mind documenting this in the changelog? Maybe add the code as a test case?
Looks like a solid change to me. Do you mind documenting this in the changelog? Maybe add the code as a test case?
I still have to figure out alignment, right now it's likely to miscompile when struct has members of different sizes
Description
Implements a few cool things for structs in the QBE backend. Now it should be much more usable. Unfortunately, right now it uses
memcpy
which means now all programs using structs implicitly depend on libc.Aside: a proper type system would have helped here significantly.
Example (Antimony + C):
ToDo