icfp12/ovm/ovmjit.c

18 lines
240 B
C
Raw Normal View History

2009-06-26 21:13:17 +00:00
#include "ovm.h"
int main(int argc, char** argv) {
ovm_t *ovm;
if (argc < 3) {
fprintf(stderr, "Wrong syntax. %s in out\n", argv[0]);
exit(1);
}
ovm = ovm_load(argv[1]);
ovm_print_c(ovm, argv[2]);
ovm_free(ovm);
return 0;
}