WebAssembly / tool-conventions

Conventions supporting interoperatibility between tools working with WebAssembly.
Artistic License 2.0
297 stars 65 forks source link

Clarify integer data representation rule in BasicCABI #218

Closed FanShupei closed 8 months ago

FanShupei commented 9 months ago

In BasicCAPI, it says how C types are represented by wasm types, but it lacks details how to actually do the conversion.

Specifically, I have two concrete questions to ask?

It's not hard to find out the answer for current clang implementation.

However, I'd like to confirm whether this is the intended behavior. If yes, we'd better clarify it in documentation.

dschuff commented 9 months ago

Yes, I think this is the behavior we intend, and I agree that the documentation should clarify it. I can work on a PR for that.