Open arthurschreiber opened 4 years ago
@indutny I see that properties don't carry any sign information - is that a purposeful design decision in llparse? Does that mean that property access in C needs to be casted appropriately to not get the unsigned value? Am I missing something? 🤔
@arthurschreiber this is a design decision that was historically motivated by bitcode output. C has to cast fields if a signed access is required.
This adds a very rough, unfinished implementation for parsing little- and big-endian integers, based on my question here: https://github.com/nodejs/llparse/issues/31
See also these 2 PRs:
This only includes the code to generate JS output (for now), and has no tests at all. 🤷‍♂ I'll try to flesh this out if I can find some more time.
Example input
Example output