README.rst 659 Bytes
Newer Older
Darko's avatar
Darko committed
1 2 3 4 5 6 7 8 9 10 11
mergesort
=========

Academic example of merge sort implementation in C.
Implementation includes one process version and parallel
implementation using limited fork()s and example python
bindings using ctypes.

Contents
========

Darko's avatar
Darko committed
12 13 14 15
* ms.h, ms.c - merge sort implementation
* main.c - sample test of using merge sort implementation with time measurement
* pyms.py - sample python bindings using ctypes
* test.py - sample test of using pyms
Darko's avatar
Darko committed
16 17 18 19 20 21 22 23 24 25 26 27 28 29

Compile shared library with

.. code:: bash

   cc -c -Wall -Werror -fpic ms.c
   cc -shared -o libms.so ms.o

and sample C program (set LD_LIBRARY_PATH before running it)

.. code:: bash

   cc -Wall -o test ms.c main.c