bin/compile: properly call sub