codegen for subroutines and word data