-
Notifications
You must be signed in to change notification settings - Fork 149
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
Assertion failed: (0), function out_op, file mir2c.c, line 65 #369
Comments
Thank you for reporting this. |
I've just fixed it. |
Great , thanks . I am removing it in order to pass compilation I also modified below to pass compilation
|
Thank you for the kind words. MIR has no information about external symbols (is it function or global variable?). It has only an |
On my Mac it is considered an error , but personally I am ok with my workaround.
|
I tried the same procedure on Getting an error
|
I fixed this. Unfortunately mir-2-c compiler is in a bad shape. A lot of new MIR constructions is not implemented and some features are not easy to implement, including multiple results funcs and BLK types used to pass args according some target specific ABIs. For example, on x86-64 struct of int and double is passed in regs and for this a MIR BLK type is used. So translation to MIR should be target specific. I should think what to do with |
Thanks for your fixes . Basically to follow the same functionality that is done for HAXE , with the Hashlink runtime These are all side pet projects , I like to play and experiment with this stuff. Thanks |
I have compiled mir2c.c as a standalone executable (m2c , defined(MIR2C) )
trying to convert a simple Fibonacci (mir <-> c),
Getting an error
fib.c
fib.mir
fib_mir_genereated.c
The text was updated successfully, but these errors were encountered: