generating foo.s