Skip to content

Latest commit

 

History

History
27 lines (20 loc) · 932 Bytes

README.md

File metadata and controls

27 lines (20 loc) · 932 Bytes

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.