diff options
Diffstat (limited to 'test/autowasm.c')
-rw-r--r-- | test/autowasm.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/test/autowasm.c b/test/autowasm.c index b62ad34..be2800d 100644 --- a/test/autowasm.c +++ b/test/autowasm.c @@ -13,6 +13,20 @@ int main (int argc, char** argv) { int wasm = open("./test.wasm", O_RDONLY); malloc_all(); + read_aggr(wasm); + magic_number* mn = ft_ret_magic_number(); + version* v = ft_ret_version(); + W_Type_Section* ts = ft_ret_W_Type_Section(); + printf("magic_number:%x\n", mn->magic_number); + printf("version:%d\n", v->version); + printf("type section id:%d\n", ts->id); + printf("type section payloadlength:%d\n", ts->payloadlength); + printf("type_section entry count:%d\n", ts->count); + for (int i=0; i < 7; ++i) { + //printf("param_count:%d\n",ts->entries[i]->param_count); + //printf("param_count:%d\n",ts->entries[i]); + } + #if 0 uint64_t test_u = 0U; int64_t test_s = 0; |