WebAssembly / conditional-sections

Other
14 stars 7 forks source link

Name section #16

Open tlively opened 4 years ago

tlively commented 4 years ago

TODO: Figure out how the name section should work with conditional sections. I expect we will just want to allow multiple name sections, but we need specific text describing how that will work.

xtuc commented 4 years ago

I would assume the name section to be flat regardless of conditional code/types. At least to me, it's difficult to imagine how conditional naming would work at a source level.

For instance:

__attribute__((target("arch=atom")))
void foo() {}
__attribute__((target("default")))
void foo() {}

foo will endup at the same funciton index? Also depends on the outcome of https://github.com/WebAssembly/conditional-sections/issues/14