Files
avo/examples
Michael McLoughlin e089a6c93c tests/fixedbugs: regression test for issue 100 (#129)
Adds a regression test based on klauspost/compress#186. This necessitated some related changes:

* Mark "RET" as a terminal instruction
* printer refactor to maintain compatibility with asmfmt
* Tweaks to other regression tests to ensure they are run correctly in CI

Updates #100 #65 #8
2020-01-27 21:05:33 -08:00
..
2019-04-13 22:53:13 -05:00
2019-04-13 22:53:13 -05:00
2019-09-16 11:01:48 -07:00
2019-04-13 22:53:13 -05:00
2019-09-16 11:01:48 -07:00

Examples

Simple functions:

  • add: Add two numbers. The "Hello World!" of avo.
  • sum: Sum an array of numbers.

Features:

  • args: Loading function arguments.
  • returns: Building return values.
  • complex: Working with complex{64,128} types.
  • data: Defining DATA sections.
  • ext: Interacting with types from external packages.
  • pragma: Apply compiler directives to generated functions.

"Real" examples: