Skip to content

Structural Analysis #56

@longfangsong

Description

@longfangsong

Is your feature request related to a problem? Please describe.

Currently the wasm code gen is worked in a very unnature way.

And the code is very very very ugly.

Describe the solution you'd like

Instead of using current complex algorithm, use Structural Analysis based way instead.

We should start from creating a structural analysis analysis pass.

Ref Advanced Compiler Design & Implementation, Chapter 7.7, P202

Describe alternatives you've considered
Just refactor the current code generating.

Metadata

Metadata

Assignees

Labels

feature requestA request for a certain featurehardThis issue is very hard to fixmedium priorityThis will be important in the near futurerefactorTo make the code prettier

Type

No type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions