Add compile-and-dump script for dumping cmm