Skip to content

Commit 83ab9ea

Browse files
committed
examples/layout: comment
1 parent 82ee556 commit 83ab9ea

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

examples/layout/layout.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -218,6 +218,10 @@ main(int argc, char **argv)
218218
me->me_idx = i;
219219
me->me_u.u_data.size = data->init_size;
220220
}
221+
/*
222+
* globals are typically offsets in the default memory.
223+
* (notable exceptions: __tls_size etc)
224+
*/
221225
for (i = m->nimportedglobals; i < m->nimportedglobals + m->nglobals;
222226
i++) {
223227
const struct global *g = &m->globals[i];

0 commit comments

Comments
 (0)