Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/eschmar/kth-id1019

Course programming exercises.
https://github.com/eschmar/kth-id1019

erlang kth

Last synced: 3 days ago
JSON representation

Course programming exercises.

Awesome Lists containing this project

README

        

# kth-id1019


Mandelbrot

## mandelbrot c compilation

```sh
gcc -std=c99 -fPIC -shared -o complex_nif.so complex_nif.c -I /usr/local/lib/erlang/erts-8.2/include/ -flat_namespace -undefined
suppress
```

* Add the absolute path to the erlang `erl_nif.h`
* Add `-flat_namespace -undefined suppress` on macOS

## run mandelbrot

```erl
% cd ../helper
c(color).
c(debug).

% cd ../mandelbrot
c(theme).
c(ppm).
c(complex).
c(complex_nif).
c(brot).
c(mandel).

mandel:whole().
```