This commit is contained in:
bellard
2002-08-18 13:24:19 +00:00
parent f5b9220b60
commit 796866862f
2 changed files with 14 additions and 14 deletions

View File

@ -44,6 +44,9 @@ int main(int argc, char **argv)
exit(1);
}
/* MUST BE CALLED before any compilation or file loading */
tcc_set_output_type(s, TCC_OUTPUT_MEMORY);
tcc_compile_string(s, my_program);
/* as a test, we add a symbol that the compiled program can be