Skip to content

ioncodes/sam-rs

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
ks
 
 
src
 
 
 
 
 
 
 
 
 
 

sam-rs

Rust compiler plugin for compile time x64 assembling.

DEPRECATED

This release is really buggy and it isn't possible to realize it like this. This project is now deprecated, for a working and stable version go to the new version of sam: https://github.com/ioncodes/sam

Usage

#![feature(plugin)]
#![plugin(sam)]

fn main() {
	let asm = sam!("mov eax, 3"); // returns a string with the bytes
	println!("{}", asm);
}

Building

  1. Get the keystone library and headers.
  2. Compile ks/main.cpp
  3. cargo build
  4. Put ks wherever your plugin is.

About

rust compiler plugin for compile time instruction assembling

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published