strop

Crates.iostrop
lib.rsstrop
version0.3.0
created_at2022-01-12 21:10:19.993079+00
updated_at2025-06-04 08:20:51.332654+00
descriptionstochastically generates machine code
homepagehttps://github.com/omarandlorraine/strop
repositoryhttps://github.com/omarandlorraine/strop
max_upload_size
id513017
size191,925
(omarandlorraine)

documentation

README

strop

Build Status crates.io

strop, the stochastic optimizer, written in Rust.

Like a compiler, strop generates assembly that computes a given function. But unlike a compiler, it generates assembly-language subroutines by a random search or a brute-force search.

Ancillary documents:

What it's for

To see what strop could be used for:

  • opt optimizes an existing machine code function
  • gen generates a Z80 function matching the Rust function, after a fashion compiling Rust to Z80.
  • peephole discovers lacunae in the peephole optimizers and other constraints

Supported instruction sets:

Strop currently has the following back-ends:

  • armv4t, which targets the ARMv4T processors, such as the ARM7TDMI
  • m6502, targets various models of the MOS 6502
    • Supports the NMOS and CMOS variants and others, thanks to the mos6502 dependency.
  • m6809, which targets the Motorola 6809
  • z80, which targets the Zilog Z80
  • mips, which targets the MIPS I architecture
    • Supports the GTE coprocessor found in a Playstation 1, thanks to the trapezoid-core dependency.
Commit count: 546

cargo fmt