Finish c optimization and assembly stuff.

#7 #8