Extract code to generate .a
Simplify