Skip to content

ibara/O

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

O

O is a peephole optimizer for qbe.

It is meant to be used in conjunction with cproc.

Why?

O is the subject of two blog posts.

Building

Just run make.

The only non-C89 functions are getline(3) and snprintf(3).

Running

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 -.

License

ISC License. See LICENSE for more information.