News for hackers. Stuff that matters.
Re:LLVM backend for DCPU-16 by viraptor on Sunday April 08, 2012 @06:55AM (#3813575)
Great work :) I just spotted something in the compiled example and wonder if this:

    SET  J, [4+C] ; The Notch order
    ADD  J, 1 ; The Notch order
    SET  [4+C], J ; The Notch order
Is not transformed to

    ADD  [4+C], 1
due to some assumptions in llvm, or do you not handle the literal values as arguments yet?
Re:LLVM backend for DCPU-16 by krasin on Sunday April 08, 2012 @03:33PM (#3814666)
It's just because the focus is now on generating valid assembly (there're tons of bugs so far) and I have not paid any attention to optimization yet.

Thanks for reporting, tracked by issue https://github.com/krasin/llvm-dcpu16/issues/67