Open ErezBinyamin opened 4 years ago
The front end lcc
follows ANSI C, whereas binary constants (0b prefix) are non-standard and certainly not ANSI.
These will become part of the C standard only in C23; meanwhile they only exist as extensions in gcc
or llvm
.
Further information: https://en.cppreference.com/w/c/language/integer_constant
Not an urgent issue, but something that seems like it may be an easy fix.
Source Code:
movcc output:
I'm just a cryptography student trying to obfuscate my algorithms for a ctf I'm working on. The problem is easily fixed when I make the change to decimal representation, but... it'd be nice to have more readable source code that is compatible with movcc.
working source:
I have never contributed to a github project before, but I would be happy to take a look at the source, attempt an edit, and submit a pull request if you do that sort of thing..