wwwg/wasmdec

recompile

zaoqi opened this issue · 1 comments

zaoqi commented

$ LANG= gcc wasmdec_decompiled.c

wasmdec_decompiled.c: In function 'enlargeMemory':
wasmdec_decompiled.c:118:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'extern'
 extern int abortOnCannotGrowMemory()
 ^~~~~~
wasmdec_decompiled.c:439:1: error: parameter 'global$1' is initialized
 int global$1 = gimport$5;
 ^~~
wasmdec_decompiled.c:440:1: error: parameter 'global$2' is initialized
 int global$2 = gimport$6;
 ^~~
wasmdec_decompiled.c:441:1: error: parameter 'global$3' is initialized
 int global$3 = gimport$7;
 ^~~
wasmdec_decompiled.c:442:1: error: parameter 'global$4' is initialized
 int global$4 = gimport$8;
 ^~~
wasmdec_decompiled.c:443:1: error: parameter 'global$5' is initialized
 int global$5 = gimport$9;
 ^~~
wasmdec_decompiled.c:444:1: error: parameter 'global$6' is initialized
 int global$6 = 0;
 ^~~
wasmdec_decompiled.c:445:1: error: parameter 'global$7' is initialized
 int global$7 = 0;
 ^~~
wasmdec_decompiled.c:446:1: error: parameter 'global$8' is initialized
 int global$8 = 0;
 ^~~
wasmdec_decompiled.c:447:1: error: parameter 'global$9' is initialized
 int global$9 = 0;
 ^~~
wasmdec_decompiled.c:448:1: error: parameter 'global$10' is initialized
zaoqi commented

$ clang wasmdec_decompiled.c

wasmdec_decompiled.c:106:27: error: expected ';' after top level declarator
extern int enlargeMemory()
                          ^
                          ;
wasmdec_decompiled.c:112:28: error: expected ';' after top level declarator
extern int getTotalMemory()
                           ^
                           ;
wasmdec_decompiled.c:118:37: error: expected ';' after top level declarator
extern int abortOnCannotGrowMemory()
                                    ^
                                    ;
wasmdec_decompiled.c:124:44: error: expected ';' after top level declarator
extern void abortStackOverflow(int local_0)
                                           ^
                                           ;
wasmdec_decompiled.c:130:37: error: expected ';' after top level declarator
extern void nullFunc_ii(int local_0)
                                    ^
                                    ;
wasmdec_decompiled.c:136:38: error: expected ';' after top level declarator
extern void nullFunc_iii(int local_0)
                                     ^
                                     ;
wasmdec_decompiled.c:142:39: error: expected ';' after top level declarator
extern void nullFunc_iiii(int local_0)
                                      ^
                                      ;
wasmdec_decompiled.c:148:40: error: expected ';' after top level declarator
extern void nullFunc_iiiii(int local_0)
                                       ^
                                       ;