-
Hi, I was wondering if there is a way, with some kind of pragma maybe, to tell the compiler to assign a specific table index to a function, for example: void func(int a, int b) {
/* body */
}
#pragma index (func, 5) |
Beta Was this translation helpful? Give feedback.
Answered by
sbc100
May 23, 2023
Replies: 1 comment
-
No, there is no way to do this. The linker (wasm-ld) assigns indexes to functions at link time and there no way to control what the index will be. |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
debevv
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
No, there is no way to do this. The linker (wasm-ld) assigns indexes to functions at link time and there no way to control what the index will be.