Vladimir Makarov
Vladimir Makarov
> I want to generate a function that takes a C struct as parameter and returns another C struct. As far as I understand, the argument can be of type...
You can find how to use blk types for x86-64 in `mir-gen-x8_64.c`. Here are the brief descriptions for SYSV ABI: o MIR_BLK + 1 is used for passing unions/structures (of...
> @vnmakarov would using MIR_BLK for all cases work even though it would be sub-optimal? Yes. I believe it should work. The problem will be only when you try to...
> @vnmakarov several question around passing struct/union by value: > > * How do I return a struct/union? `MIR_T_RBLK` is not accepted as return type (then what is that type...
I am not against to have MIR_get_global_item and MIR_get_module_item in API. I don't like this `MIR_get_global_item`. The function actually finds the first item with the name. The item may be...
Sorry for long delay with the answer, I overlooked your message. I think custom allocation would be useful for some applications. So it is worth to pursue this. I only...
Thank you for all the tests. I fixed this one by [bdac1fa](https://github.com/vnmakarov/mir/commit/bdac1fa32a522e0bb24023420350b01648d8df92)
Thank you for sharing your ideas. The first approach you are describing basically used by GCC JIT. This is because GCC has no embedded assembler which can not produce code...
Sorry for delay with the answer and thank you for reporting this problem. I am really interesting in the source code. Could you, please, post it here. I'll try to...
> Gladly. The code is very long, and I do not wish to share it here. Do you have a mail address that I could use? [email protected]