catnip

Assembler for runtime code generation

Pure Nim score 15/100 · tests present · no docs generated

Summary

Latest Version Unknown
License MIT
CI Status Failing
Downloads 0
Last Indexed 2026-07-21 05:24

Tags

Installation

nimble install catnip
choosenim install catnip
git clone https://github.com/RSDuck/catnip

OS Compatibility

Platform Linux macOS Windows FreeBSD OpenBSD NetBSD Android iOS WASM Embedded
catnip - - - - - - -

Source

Repository https://github.com/RSDuck/catnip
Homepage https://github.com/RSDuck/catnip
Registry Source nimble_official

README

Catnip

A nondescriptively named runtime assembler e.g. for JIT recompilers.

Why not improve the assembler in laser(now found here)?

I thought about doing this, but decided against it, mainly because registers are defined as compile time static parameters for some reasons? In any way it makes dynamic register allocation impossible (which is irreplacable for any decent JIT recompiler I can think of).

Though I can't deny that the declarative macro for defining the encodings wasn't inspired by it :D.

Planned things

  • Better tests
  • Support more x64
  • Support assembling aarch64