Dynamic memory allocation framework

Ioannis Koutras 733fab53d2 estimate pagesize before compile time 11 rokov pred
cmake b385383b1a support 'make install' properly 12 rokov pred
contrib 149a7774e2 introduce custom memcpy for realloc's 12 rokov pred
doc 1fddd761fc updated Doxygen file for v1.8.4 12 rokov pred
examples c8ed718b86 link properly with pthreads library if needed 11 rokov pred
include 325b135e28 add support for memalign() 11 rokov pred
private-include 525338547f Search for padded memory size 11 rokov pred
scripts 44c5186338 add stress level parameter to the testbench generation script 12 rokov pred
src 733fab53d2 estimate pagesize before compile time 11 rokov pred
.hgignore 7e4c63ffd1 added build/* in the hgignore list 13 rokov pred
CMakeLists.txt 733fab53d2 estimate pagesize before compile time 11 rokov pred
DefineOptions.cmake 52b135e316 option to use a trylock on malloc() instead of a lock 11 rokov pred
LICENSE 5fc32c7e67 All the source files are now released under the Apache 2.0 license. 13 rokov pred
README.md c7098fcd60 clean cmake variables and create separate platform presets 12 rokov pred
config.h.cmake 733fab53d2 estimate pagesize before compile time 11 rokov pred
leon3.preset 05c7f86678 add support for glibc hooks, currently the memalign one only 11 rokov pred
linux.preset 52b135e316 option to use a trylock on malloc() instead of a lock 11 rokov pred
osx.preset 52b135e316 option to use a trylock on malloc() instead of a lock 11 rokov pred
sthorm.preset 05c7f86678 add support for glibc hooks, currently the memalign one only 11 rokov pred
toolchain-sparc-elf.cmake 4cef849c2e make dmmlib work with sparc-elf-4.6 11 rokov pred
toolchain-stxp70v4.cmake 6b03d06973 [P2012] move some rule variables outside of the toolchain file 12 rokov pred

README.md

NTUA / ICCS dmmlib

dmmlib is a a dynamic memory management framework developped in C. For more information please visit the official site of the project. dmmlib is currently distributed within the context of the 2PARMA project.

Requirements

  • cmake v2.6 or higher
  • C99-compliant compiler (tested on GCC toolchains of version 3.4 or higher)

Usage

  1. Create the build directory, e.g. mkdir build
  2. Go to the build directory, e.g. cd build
  3. Generate the makefiles via cmake. Feel free to use one of the available presets, e.g. cmake -C../linux.preset ..
  4. make

Linking with applications

There are currently three options:

  • Link the library statically to your application
    gcc -I{DMMLIB Source Directory}/include -I{DMMLIB Build Directory} {DMMLIB Build Directory}/libdmm_static.a yourapp.c -o yourapp
  • Link the library dynamically to your application gcc -I{DMMLIB Source Directory}/include -L{DMMLIB Build Directory}/src -ldmm yourapp.c -o yourapp
  • Use the dynamic linker to preload dmmlib during application's execution:
    LD_PRELOAD={DMMLIB Build Directory}/src/libdmm_shared.so application

Contact Information

Ioannis Koutras (joko@microlab.ntua.gr)
Alex Bartzas (alexis@microlab.ntua.gr)