GithubHelp home page GithubHelp logo

poslanets / coremark_lm32 Goto Github PK

View Code? Open in Web Editor NEW

This project forked from jpbonn/coremark_lm32

0.0 2.0 0.0 132 KB

Target specific files for running Coremark V1.0 on the Milkymist One

Assembly 7.53% C 79.57% C++ 1.70% Makefile 11.20%

coremark_lm32's Introduction

These are the Milkmist/LM32 specific files to run the Coremark V1.0 benchmark on the Milkymist One.

Note the minimal git branch has fewer dependencies on the Milkymist libraries.

A working LM32 toolchain, Clang/LLVM, and qemu is needed to build and run Coremark on the Milkymist. See the Milymist wiki for directions on building and installing these tools:  
LM32 GNU toolchain: http://milkymist.org/wiki/index.php?title=RTEMS_build_instructions
clang/llvm: https://github.com/milkymist/llvm-lm32
compiler_rt: https://github.com/jpbonn/compiler-rt-lm32
newlib/libgloss: https://github.com/jpbonn/Newlib-build-scripts
qemu: http://www.qemu.org/ (alternatively http://github.com/mwalle/qemu)

Download the Coremark benchmark from http://coremark.org/home.php and extract the files.

Clone the LM32 Coremark files into a subdirectory of the coremark files:
# cd coremark_v1.0
# git clone [email protected]:jpbonn/coremark_lm32.git 

Edit coremark_lm32/core_portme.mak and edit the following variables to point to the appropriate directories:
MMDIR
COMPILERRT_DIR
NEWLIB_DIR
LIBGLOSS_DIR

If you rename the coremark_lm32 directory you'll need to edit the linker.ld linker script in coremark_lm32/linker.ld.

Build LM32 Coremark:
# make XCFLAGS="-DTOTAL_DATA_SIZE=6000" PORT_DIR=coremark_lm32

To run on the Milkymist One hardware:
- In one terminal
# flterm --port /dev/ttyUSB0 --kernel coremark.bin --gdb-passthrough
- In second terminal
# lm32-rtems4.11-gdb coremark.out
(gdb) set remote interrupt-on-connect on
Press middle button then quickly enter:
(gdb) target remote <pseudo terminal printed by flterm>
Remote debugging using /dev/pts/5
0x00860650 in ?? ()
(gdb) load
(gdb) set $PC=_mystart
(gdb) c


To run on QEMU simulator:
# qemu-system-lm32 -M milkymist -kernel coremark.bin -nographic

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.