Skip to content

Use section codes instead of section names#739

Closed
titzer wants to merge 1 commit intobinary_0xcfrom
binary_0xc_section_codes2
Closed

Use section codes instead of section names#739
titzer wants to merge 1 commit intobinary_0xcfrom
binary_0xc_section_codes2

Conversation

@titzer
Copy link

@titzer titzer commented Aug 1, 2016

(rebasing onto 0xC instead of master)

This PR proposes uses section codes for known sections, which is more compact and easier to check in a decoder.
It allows for user-defined sections that have string names to be encoded in the same manner as before.
The scheme of using negative numbers proposed here also has the advantage of allowing a single decoder to accept the old (0xB) format and the new (0xC) format for the time being.

This PR proposes uses section codes for known sections, which is more compact and easier to check in a decoder.
It allows for user-defined sections that have string names to be encoded in the same manner as before.
The scheme of using negative numbers proposed here also has the advantage of allowing a single decoder to accept the old (0xB) format and the new (0xC) format for the time being.
@titzer titzer closed this Aug 1, 2016
@sunfishcode sunfishcode modified the milestone: MVP Aug 1, 2016
@titzer titzer deleted the binary_0xc_section_codes2 branch August 2, 2016 18:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants