Skip to content

Commit acd0979

Browse files
committed
switch back to -O2
1 parent fb2d41b commit acd0979

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

vm/backend/exec.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,8 +108,8 @@ void *vm_cache_comp(const char *comp, const char *flags, const char *src) {
108108
fwrite(src, len, 1, out);
109109
fclose(out);
110110
vm_io_buffer_t *cmd_buf = vm_io_buffer_new();
111-
// vm_io_buffer_format(cmd_buf, "%s -shared -O2 -foptimize-sibling-calls -fPIC %s %s -o %s -w -pipe", comp, flags, c_file, so_file);
112-
vm_io_buffer_format(cmd_buf, "%s -shared -g3 -foptimize-sibling-calls -fPIC %s %s -o %s -w -pipe", comp, flags, c_file, so_file);
111+
vm_io_buffer_format(cmd_buf, "%s -shared -O2 -foptimize-sibling-calls -fPIC %s %s -o %s -w -pipe", comp, flags, c_file, so_file);
112+
// vm_io_buffer_format(cmd_buf, "%s -shared -g3 -foptimize-sibling-calls -fPIC %s %s -o %s -w -pipe", comp, flags, c_file, so_file);
113113
int res = system(cmd_buf->buf);
114114
if (res) {
115115
return NULL;

vm/backend/tb_dyn.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1306,6 +1306,9 @@ vm_tb_dyn_func_t *vm_tb_dyn_comp(vm_tb_dyn_state_t *state, vm_block_t *entry) {
13061306
}
13071307
}
13081308
const char *buf = tb_c_buf_to_data(cbuf);
1309+
if (state->config->dump_c) {
1310+
printf("\n--- c ---\n%s", buf);
1311+
}
13091312
const char *cc_name = NULL;
13101313
switch (state->config->target) {
13111314
case VM_TARGET_TB_CC:

0 commit comments

Comments
 (0)