Skip to content

SergeiPatiakin/rsas

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

rsas

  • rsas is a toy assembler targeting x64 Linux

Usage

  • rsas source.s will assemble source.s into a Linux ELF64 object file. The output path can be specied with the -o argument, defaulting to a.out

Trying it out

  • Assemble, link and demo a simple cat implementation on a Linux x64 host
cargo install --path .

rsas as-examples/cat.s -o cat.o
ld -o rsas-cat cat.o

echo 'aaa' > a.txt
echo 'bbb' > b.txt
./rsas-cat a.txt b.txt
# Output:
# aaa
# bbb

Features

  • AT&T assembly syntax
  • No Cargo dependencies
  • Supports global and local symbols
  • Supports multiple types of relocations

About

Toy x64 assembler

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published