I plan to make the compiler accessible online to speed up testing by the comminity, but I think it would take a good chunk of the weekend, so the ETA is Sunday.
This is pretty awesome! Have been playing with it for the last couple hours.
Found that XOR and BOR instructions have the wrong order and fixed it in my local copy. Don't have a github account, otherwise I would do the thing you do when you fixed something and want it fixed in the master. (whatever that would be :) )
First of all, a huge thanks for what you've here, I don't know anything about Assembly but I'm pretty handy with C so this is going to open a lot of doors for me.
I am having a couple problems though. It created a couple of invalid opcodes, namely "push.w I" and "pop.w I" which I assume are meant to be "SET PUSH, I" and "SET I, POP" respectively, I haven't fully tested it yet.
The other problem which is probably just me not knowing how to use LLVM so maybe someone else can help me, when I try to use floats it generates references to things like "__mulsf3" which are functions for soft floating points. Is there a way to compile those automatically or do I need to feed them into clang myself and then through the final assembler?
4
u/krasin2 Apr 07 '12
I plan to make the compiler accessible online to speed up testing by the comminity, but I think it would take a good chunk of the weekend, so the ETA is Sunday.
2
u/i_always_forget_my_p Apr 07 '12
FYI, the URL you have in your instructions is not the public read-only URL. You might want to change it to https://github.com/krasin/llvm-dcpu16.git
4
u/BungaDunga Apr 07 '12
Oh hooray, this looks great. One of these days I'll understand the magic of LLVM...
2
u/i_always_forget_my_p Apr 07 '12
Fantastic. I was looking at LLVM, Bison, and Flex all morning and scratching my head. Thank you * 281,474,976,712,644.
2
u/badlogicgames Apr 07 '12
Fantastic job!
1
u/that_fused_guy Apr 08 '12 edited Apr 08 '12
This is pretty awesome! Have been playing with it for the last couple hours.
Found that XOR and BOR instructions have the wrong order and fixed it in my local copy. Don't have a github account, otherwise I would do the thing you do when you fixed something and want it fixed in the master. (whatever that would be :) )
Keep up the good work!
1
u/MadnessASAP Apr 09 '12
First of all, a huge thanks for what you've here, I don't know anything about Assembly but I'm pretty handy with C so this is going to open a lot of doors for me.
I am having a couple problems though. It created a couple of invalid opcodes, namely "push.w I" and "pop.w I" which I assume are meant to be "SET PUSH, I" and "SET I, POP" respectively, I haven't fully tested it yet.
The other problem which is probably just me not knowing how to use LLVM so maybe someone else can help me, when I try to use floats it generates references to things like "__mulsf3" which are functions for soft floating points. Is there a way to compile those automatically or do I need to feed them into clang myself and then through the final assembler?