Skip to content

pimlu/ulam-asm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ulam-asm

This is an Ulam spiral generator for Linux written in x86-64 assembly.

pimlu@pimlu-vb ~/Documents/ulam $ ./dist/ulam 5 5
width is: 5
height is: 5
#...#
.#.#.
#.o##
.#...
..#..

Building

Chances are all you need to do is run make. This should build on any system that has GNU binutils installed (most well-known Linux distros) or a compatible alternative.

Running

The binary will be located at dist/ulam. It takes two arguments, the width and the height.

Debugging

To build with debugging symbols, run make debug. You may have to make clean first, if it's already been built without debug.

Stripping Symbols

To make a small binary with stripped symbols, run make strip after cleaning. There is a strip branch which has some unnecessary bits removed to see how small it can be made. On my machine, it builds to 1088 bytes. I'm sure it could be brought down to 1024 bytes.

About

Ulam spiral generator for Linux in x86-64 assembly

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published