What should I use to fasten the subfloor I just bought?

Use a construction adhesive to glue it to the joists, then use 8d common nails.