matiTechno / asm-fractal

me learning x86-64 linux assembly - the goal of the project is to render a fractal to a file using multiple threads and without any dependencies; +AVX2 version
2 stars 0 forks source link

asm-fractal

logo

$ make
nasm -g -F dwarf -f elf64 -o render.o render.asm && ld -g -o render render.o
$ ./render 8
rendering at a default resolution 1920x1080px
$ ./render  
1 or 3 arguments required - num_threads, width, height
$ ./render 8 4000 3000
$ 

The main thing in this repository is render.asm. It is a program that renders a fractal to a PPM file with as many threads as specified in the first argument. It compiles with nasm and runs on linux. It has no dependencies.

I tried many times to learn assembly but always failed. What finally worked for me was to do it by implementing a concrete project that was not too easy but also not too hard. Why I decided to learn assembly?

Some interesting facts:

tools / programs I used

other

useful links / resources