#evm #smart-contracts #compiler #target-triple #wasm

sonatina-triple

Target triple for smart contract

3 releases

0.0.3-alpha Nov 10, 2022
0.0.2-alpha Nov 10, 2022
0.0.1-alpha Nov 7, 2022

#521 in Programming languages

Download history 4/week @ 2024-02-18 27/week @ 2024-02-25 5/week @ 2024-03-03 5/week @ 2024-03-10 33/week @ 2024-03-17 6/week @ 2024-03-24 41/week @ 2024-03-31

87 downloads per month
Used in 3 crates

Apache-2.0

8KB
150 lines

Sonatina

Sonatina is a compiler backend specialized for smart contracts.

Sonatina is really early stage in development, so do NOT use it for production!

Project layout

sonatina consists of several crates.

  • codegen: The main crate of sonatina, providing builder for IR modules and functions, optimization passes, instruction selection DAG, and binary code emitting.
  • filecheck: Provides test runner for filecheck and test fixtures.
  • parser: Parser for sonatina IR, this is mainly for filecheck test.
  • object: Provides abstract object file format for linker.
  • triple: Provides target triple for smart contracts.

TODO

Test

Run test_all.sh.

Dependencies

~0.4–0.8MB
~20K SLoC