mergesort/README.rst

30 lines
659 B
ReStructuredText
Raw Permalink Normal View History

2015-03-04 19:51:13 +00:00
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
========
2015-03-04 19:52:59 +00:00
* 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
2015-03-04 19:51:13 +00:00
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