slumps icon indicating copy to clipboard operation
slumps copied to clipboard

swam to souper IR

Open bbaudry opened this issue 5 years ago • 13 comments

use SWAM to develop our own bi-directional translator from wasm to souper IR

bbaudry avatar Nov 20 '19 13:11 bbaudry

@satabin , we are affording this as an extra module in SWAM. The big picture is to provide both, randomization and optimization to SWAM.

Jacarte avatar Nov 26 '19 14:11 Jacarte

:+1:

satabin avatar Nov 26 '19 14:11 satabin

To transform wasm programs in Swam, you can use the traversal api in the swam.traversal package.

satabin avatar Nov 26 '19 14:11 satabin

To transform wasm programs in Swam, you can use the traversal api in the swam.traversal package.

Good to have such good technical support 💪 thanks !

Jacarte avatar Nov 26 '19 14:11 Jacarte

You're welcome, an example use for this framework (the Traverser in that case) is the validator: https://github.com/satabin/swam/blob/master/core/src/swam/validation/SpecValidator.scala#L72.

satabin avatar Nov 26 '19 14:11 satabin

I found homeworks of ETHZ's Advanced Compiler Design course are helpful. I will start from there.

jianguda avatar Dec 17 '19 21:12 jianguda

I found homeworks of ETHZ's Advanced Compiler Design course are helpful. I will start from there.

Add the link :)

Jacarte avatar Dec 17 '19 21:12 Jacarte

I found homeworks of ETHZ's Advanced Compiler Design course are helpful. I will start from there.

Add the link :)

hw0.pdf hw1.pdf hw2.pdf

slides_hw0.pdf slides_hw1.pdf slides_hw2.pdf

skeleton code & solutions

jianguda avatar Dec 17 '19 21:12 jianguda

I have learned these ideas, but the course code seems not so close to our aim (semifinished repo). Hey @Jacarte, is it better for us to hack this repo? My plan is to mix Java with Scala.

jianguda avatar Dec 25 '19 23:12 jianguda

Hi, I always wanted to have a CFG framework within Swam, I might start working on it if it helps for your project.

satabin avatar Dec 26 '19 10:12 satabin

Hey @satabin We feel your plan is very great!

We are checking maple-ir because it may help our work. Does it help the CFG framwork? WDYT?

jianguda avatar Dec 29 '19 16:12 jianguda

I was looking into it for inspiration, however a more idiomatic Scala framework could be more helpful than wrapping this library. I am on a PoC currently, and will push it soon I hope.

satabin avatar Dec 29 '19 17:12 satabin