0.6.1 • Published 5 months ago

@aldea/compiler v0.6.1

Weekly downloads
-
License
Apache-2.0
Repository
-
Last release
5 months ago

Aldea Compiler

Version License

Compiles AssemblyScript code into Aldea-flavoured WASM packages.

The Aldea Compiler wraps around and enhances the functionality of the AssemblyScript compiler and generates WASM binaries that are compatible with and safe to execute in the Aldea Computer:

  • Validates that the code is safe to be executed in the Aldea Computer.
  • Applies various "transforms" and glue code to the source to ensure that compiled packages can safely interoperate.
  • Compiles and outputs an optimized WASM binary.
  • Generates and outputs the package ABI document.
  • Optionally parses and generates source code documentation.

Usage

There are currently two ways to interact with the compiler:

1. Compiler CLI

The CLI can be a useful way to quickly debug code and inspect the generated ABI or docs.

aldea compile <INPUT_FILE> -o <OUTPUT_PATH>

2. Programatically

If you are integrating the compiler into other tools, it can be invoked programatically.

import { compile } from '@aldea/compiler'

const { output, stats, stdout } = await compile(srcCode)
const { abi, docs, wasm, wat } = output

License

Aldea is open source and released under the Apache-2 License.

© Copyright 2023 Run Computer Company, inc.

0.6.1

5 months ago

0.5.0

5 months ago

0.3.0

10 months ago

0.4.1

7 months ago

0.4.0

7 months ago

0.2.8

10 months ago

0.2.7

11 months ago

0.2.6

11 months ago

0.2.3

11 months ago

0.2.5

11 months ago

0.2.4

11 months ago

0.1.0

12 months ago

0.2.1

12 months ago

0.2.0

12 months ago

0.0.1-beta.3

1 year ago

0.0.1-beta.4

1 year ago

0.2.2

11 months ago

0.0.1-beta.2

1 year ago

0.0.0-alpha.4

1 year ago

0.0.0-alpha.7

1 year ago

0.0.1-beta.1

1 year ago

0.0.0-alpha.5

1 year ago

0.0.0-alpha.6

1 year ago

0.0.0-alpha.3

1 year ago

0.0.0-alpha.2

1 year ago

0.0.0-alpha.1

1 year ago