Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
C Assembly Makefile
If the MAXREPEATS constant is set to be small, then the variable 's' could be left uninitialized and then used in computations.
Latest commit a2cf6d7
Feb 15, 2017
|Failed to load latest commit information.|
This is a simple memory benchmark program, which tries to measure the peak bandwidth of sequential memory accesses and the latency of random memory accesses. Bandwidth is measured by running different assembly code for the aligned memory blocks and attempting different prefetch strategies. The benchmark results for some hardware can be found in the wiki page: https://github.com/ssvb/tinymembench/wiki This program can be compiled in either linux or windows (via mingw32 and msys) by simply running make: $ make Adding extra optimization options is possible (in linux): $ CFLAGS="-O2 -march=atom -mtune=atom" make Example of crosscompiling for ARM (also in linux): $ CC=arm-linux-gnueabihf-gcc CFLAGS="-O2 -mcpu=cortex-a9" make Example of crosscompiling and running the benchmark on android device: $ CC=arm-linux-gnueabihf-gcc CFLAGS="-O2 -mcpu=cortex-a8 -static" make $ adb push tinymembench /data/local/tmp/tinymembench $ adb shell /data/local/tmp/tinymembench