print more info

This commit is contained in:
CismonX 2020-05-25 03:01:43 +08:00
parent c4dac9fbc8
commit 15a7173de0
No known key found for this signature in database
GPG Key ID: 315D6652268C5007
2 changed files with 2 additions and 1 deletions

View File

@ -141,7 +141,7 @@ u6a_runtime_info(FILE* restrict input_stream, const char* file_name) {
printf("Size of section .text (bytes): 0x%08X\n", ntohl(header.prog.text_size));
printf("Size of section .rodata (bytes): 0x%08X\n", ntohl(header.prog.rodata_size));
} else {
printf("Program header unrecognizable (%d bytes)", header.file.prog_header_size);
printf("Program header unrecognizable (%d bytes)\n", header.file.prog_header_size);
}
}
return true;

View File

@ -213,6 +213,7 @@ main(int argc, char** argv) {
goto terminate;
}
u6a_codegen_init(options.output_file, options.output_file_name, options.optimize_const, options.dump_mnemonics);
u6a_info_verbose(info_toplevel, "writing to %s", options.output_file_name);
if (UNLIKELY(!u6a_write_prefix(options.output_file_prefix))) {
exit_code = EC_ERR_CODEGEN;
goto terminate;