O
is a peephole optimizer for
qbe.
It is meant to be used in conjunction with cproc.
O
is the subject of two
blog
posts.
Just run make
.
The only non-C89 functions are
getline(3)
and
snprintf(3)
.
usage: O in.s [-o out.s]
Output is listed on stdout
unless -o
is passed on the command line.
You can pass this to an assembler using something like:
$ O file.s | as -o file.o -
O
can read from stdin
if invoked as O -
.
ISC License. See LICENSE
for more information.