├── .gitignore ├── .travis.yml ├── AUTHORS ├── COPYING ├── ChangeLog ├── INSTALL ├── Makefile.am ├── Makefile.in ├── NEWS ├── README ├── README.md ├── aclocal.m4 ├── compile ├── config.guess ├── config.h.in ├── config.sub ├── config ├── arc │ ├── boards │ │ └── generic │ │ │ └── boardsupport.c │ └── chips │ │ ├── compare-baseline │ │ └── chip.cfg │ │ ├── compare-nocrt │ │ └── chip.cfg │ │ ├── compare-nolibc-nolibgcc-nolibm │ │ └── chip.cfg │ │ ├── compare-nolibc-nolibgcc │ │ └── chip.cfg │ │ └── compare-nolibc │ │ └── chip.cfg ├── arm │ ├── boards │ │ ├── dk-tm4c123g │ │ │ ├── board.cfg │ │ │ ├── boardsupport.c │ │ │ └── calibration │ │ ├── ek-tm4c123gxl │ │ │ ├── board.cfg │ │ │ ├── boardsupport.c │ │ │ └── calibration │ │ ├── generic │ │ │ └── boardsupport.c │ │ ├── none │ │ │ └── boardsupport.c │ │ ├── stm32f0discovery │ │ │ ├── board.cfg │ │ │ ├── boardsupport.c │ │ │ └── calibration │ │ ├── stm32l0discovery │ │ │ ├── board.cfg │ │ │ ├── boardsupport.c │ │ │ └── calibration │ │ ├── stm32vldiscovery │ │ │ ├── board.cfg │ │ │ ├── boardsupport.c │ │ │ └── calibration │ │ └── ty_eysgjn │ │ │ ├── board.cfg │ │ │ ├── boardsupport.c │ │ │ └── calibration │ └── chips │ │ ├── compare-baseline │ │ └── chip.cfg │ │ ├── compare-nocrt │ │ └── chip.cfg │ │ ├── compare-nolibc-nolibgcc-nolibm │ │ └── chip.cfg │ │ ├── compare-nolibc-nolibgcc │ │ └── chip.cfg │ │ ├── compare-nolibc │ │ └── chip.cfg │ │ ├── generic │ │ └── chip.cfg │ │ ├── nrf51822 │ │ ├── chip.cfg │ │ ├── chip.ld │ │ ├── chipsupport.c │ │ └── chipsupport.h │ │ ├── stm32f051 │ │ ├── chip.cfg │ │ ├── chip.ld │ │ ├── chipsupport.c │ │ └── chipsupport.h │ │ ├── stm32f100 │ │ ├── chip.cfg │ │ ├── chip.ld │ │ ├── chipsupport.c │ │ └── chipsupport.h │ │ ├── stm32l053 │ │ ├── chip.cfg │ │ ├── chip.ld │ │ ├── chipsupport.c │ │ └── chipsupport.h │ │ └── tm4c123g │ │ ├── chip.cfg │ │ ├── chip.ld │ │ ├── chipsupport.c │ │ └── chipsupport.h ├── avr │ ├── boards │ │ ├── shrimp │ │ │ ├── boardsupport.c │ │ │ └── calibration │ │ └── xmegaa3buxplained │ │ │ ├── boardsupport.c │ │ │ └── calibration │ └── chips │ │ ├── atmega328p │ │ ├── chip.cfg │ │ └── chipsupport.h │ │ └── atxmega256a3bu │ │ ├── chip.cfg │ │ └── chipsupport.h ├── default.exp ├── riscv32 │ ├── boards │ │ ├── generic │ │ │ ├── boardsupport.c │ │ │ └── boardsupport.h │ │ ├── picorv32verilator │ │ │ ├── boardsupport.c │ │ │ └── boardsupport.h │ │ └── ri5cyverilator │ │ │ ├── boardsupport.c │ │ │ └── boardsupport.h │ └── chips │ │ ├── compare-baseline │ │ ├── chip.cfg │ │ ├── chipsupport.c │ │ └── chipsupport.h │ │ ├── compare-nocrt │ │ ├── chip.cfg │ │ ├── chipsupport.c │ │ └── chipsupport.h │ │ ├── compare-nolibc-nolibgcc-nolibm │ │ ├── chip.cfg │ │ ├── chipsupport.c │ │ └── chipsupport.h │ │ ├── compare-nolibc-nolibgcc │ │ ├── chip.cfg │ │ ├── chipsupport.c │ │ └── chipsupport.h │ │ ├── compare-nolibc │ │ ├── chip.cfg │ │ ├── chipsupport.c │ │ └── chipsupport.h │ │ ├── picorv32 │ │ ├── chip.cfg │ │ ├── chipsupport.c │ │ ├── chipsupport.h │ │ ├── picorv32.ld │ │ └── picorv32.spec │ │ └── ri5cy │ │ ├── chip.cfg │ │ ├── chipsupport.c │ │ └── chipsupport.h ├── riscv64 │ ├── boards │ │ └── none │ │ │ └── boardsupport.c │ └── chips │ │ └── generic │ │ ├── chip.cfg │ │ ├── chipsupport.c │ │ └── chipsupport.h └── x86_64 │ ├── boards │ └── none │ │ └── boardsupport.c │ └── chips │ └── generic │ ├── chip.cfg │ ├── chipsupport.c │ └── chipsupport.h ├── configure ├── configure.ac ├── depcomp ├── doc ├── .gitignore ├── Makefile.am ├── Makefile.in ├── beebs.texi ├── config.texi ├── fdl-1.2.texi ├── mdate-sh ├── texinfo.tex └── version.texi ├── genmacros.sh ├── install-sh ├── ltmain.sh ├── m4 ├── libtool.m4 ├── ltoptions.m4 ├── ltsugar.m4 ├── ltversion.m4 └── lt~obsolete.m4 ├── missing ├── picorv32count.py ├── report-rv32imc └── .gitignore ├── ri5cycount.py ├── run-avr-measurement.sh ├── src ├── Makefile.am ├── Makefile.in ├── aha-compress │ ├── .gitignore │ ├── Makefile.am │ ├── Makefile.in │ └── compress_test.c ├── aha-mont64 │ ├── .gitignore │ ├── Makefile.am │ ├── Makefile.in │ └── mont64.c ├── bs │ ├── .gitignore │ ├── Makefile.am │ ├── Makefile.in │ └── libbs.c ├── bubblesort │ ├── .gitignore │ ├── Makefile.am │ ├── Makefile.in │ └── libbubblesort.c ├── cnt │ ├── .gitignore │ ├── Makefile.am │ ├── Makefile.in │ └── cnt.c ├── common.mk.am ├── compress │ ├── .gitignore │ ├── Makefile.am │ ├── Makefile.in │ └── libcompress.c ├── cover │ ├── .gitignore │ ├── Makefile.am │ ├── Makefile.in │ └── libcover.c ├── crc │ ├── .gitignore │ ├── Makefile.am │ ├── Makefile.in │ └── libcrc.c ├── crc32 │ ├── .gitignore │ ├── Makefile.am │ ├── Makefile.in │ └── crc_32.c ├── ctl-stack │ ├── .gitignore │ ├── Makefile.am │ ├── Makefile.in │ ├── ctl.c │ ├── ctl.h │ └── stack.h ├── ctl-string │ ├── .gitignore │ ├── Makefile.am │ ├── Makefile.in │ └── string.c ├── ctl-vector │ ├── .gitignore │ ├── Makefile.am │ ├── Makefile.in │ ├── ctl.c │ ├── ctl.h │ └── vector.h ├── ctl │ ├── .gitignore │ ├── Makefile.am │ ├── Makefile.in │ ├── ctl.c │ ├── ctl.h │ ├── stack.h │ └── vector.h ├── cubic │ ├── .gitignore │ ├── Makefile.am │ ├── Makefile.in │ ├── basicmath_small.c │ ├── libcubic.c │ ├── pi.h │ ├── snipmath.h │ └── sniptype.h ├── dijkstra │ ├── .gitignore │ ├── Makefile.am │ ├── Makefile.in │ └── dijkstra_small.c ├── dtoa │ ├── .gitignore │ ├── Makefile.am │ ├── Makefile.in │ └── libdtoa.c ├── duff │ ├── .gitignore │ ├── Makefile.am │ ├── Makefile.in │ └── libduff.c ├── edn │ ├── .gitignore │ ├── Makefile.am │ ├── Makefile.in │ └── libedn.c ├── expint │ ├── .gitignore │ ├── Makefile.am │ ├── Makefile.in │ └── libexpint.c ├── fac │ ├── .gitignore │ ├── Makefile.am │ ├── Makefile.in │ └── libfac.c ├── fasta │ ├── .gitignore │ ├── Makefile.am │ ├── Makefile.in │ └── libfasta.c ├── fdct │ ├── .gitignore │ ├── Makefile.am │ ├── Makefile.in │ └── libfdct.c ├── fibcall │ ├── .gitignore │ ├── Makefile.am │ ├── Makefile.in │ └── libfibcall.c ├── fir │ ├── .gitignore │ ├── Makefile.am │ ├── Makefile.in │ └── libfir.c ├── frac │ ├── .gitignore │ ├── Makefile.am │ ├── Makefile.in │ └── libfrac.c ├── huffbench │ ├── .gitignore │ ├── Makefile.am │ ├── Makefile.in │ └── libhuffbench.c ├── insertsort │ ├── .gitignore │ ├── Makefile.am │ ├── Makefile.in │ └── libinsertsort.c ├── janne_complex │ ├── .gitignore │ ├── Makefile.am │ ├── Makefile.in │ └── libjanne_complex.c ├── jfdctint │ ├── .gitignore │ ├── Makefile.am │ ├── Makefile.in │ └── libjfdctint.c ├── lcdnum │ ├── .gitignore │ ├── Makefile.am │ ├── Makefile.in │ └── liblcdnum.c ├── levenshtein │ ├── .gitignore │ ├── Makefile.am │ ├── Makefile.in │ └── liblevenshtein.c ├── ludcmp │ ├── .gitignore │ ├── Makefile.am │ ├── Makefile.in │ └── libludcmp.c ├── matmult-float │ ├── .gitignore │ ├── Makefile.am │ ├── Makefile.in │ └── matmult.c ├── matmult-int │ ├── .gitignore │ ├── Makefile.am │ ├── Makefile.in │ └── matmult.c ├── matmult │ ├── .gitignore │ ├── Makefile.am │ ├── Makefile.in │ └── matmult.c ├── mergesort │ ├── .gitignore │ ├── Makefile.am │ ├── Makefile.in │ └── libmergesort.c ├── miniz │ ├── .gitignore │ ├── Makefile.am │ ├── Makefile.in │ ├── miniz.c │ ├── miniz.h │ └── miniz_b.c ├── minver │ ├── .gitignore │ ├── Makefile.am │ ├── Makefile.in │ └── libminver.c ├── nbody │ ├── .gitignore │ ├── Makefile.am │ ├── Makefile.in │ └── nbody.c ├── ndes │ ├── .gitignore │ ├── Makefile.am │ ├── Makefile.in │ └── libndes.c ├── nettle-aes │ ├── .gitignore │ ├── Makefile.am │ ├── Makefile.in │ └── nettle-aes.c ├── nettle-arcfour │ ├── .gitignore │ ├── Makefile.am │ ├── Makefile.in │ └── arcfour.c ├── nettle-cast128 │ ├── .gitignore │ ├── Makefile.am │ ├── Makefile.in │ └── cast128.c ├── nettle-des │ ├── .gitignore │ ├── Makefile.am │ ├── Makefile.in │ ├── des.c │ ├── desCode.h │ ├── descore.README │ ├── keymap.h │ └── rotors.h ├── nettle-md5 │ ├── .gitignore │ ├── Makefile.am │ ├── Makefile.in │ └── md5.c ├── nettle-sha256 │ ├── .gitignore │ ├── Makefile.am │ ├── Makefile.in │ └── nettle-sha256.c ├── newlib-exp │ ├── .gitignore │ ├── Makefile.am │ ├── Makefile.in │ └── ef_exp.c ├── newlib-log │ ├── .gitignore │ ├── Makefile.am │ ├── Makefile.in │ └── ef_log.c ├── newlib-mod │ ├── .gitignore │ ├── Makefile.am │ ├── Makefile.in │ └── ef_mod.c ├── newlib-sqrt │ ├── .gitignore │ ├── Makefile.am │ ├── Makefile.in │ └── ef_sqrt.c ├── ns │ ├── .gitignore │ ├── Makefile.am │ ├── Makefile.in │ └── libns.c ├── nsichneu │ ├── .gitignore │ ├── Makefile.am │ ├── Makefile.in │ └── libnsichneu.c ├── picojpeg │ ├── .gitignore │ ├── Makefile.am │ ├── Makefile.in │ ├── libpicojpeg.c │ ├── picojpeg.h │ └── picojpeg_test.c ├── prime │ ├── .gitignore │ ├── Makefile.am │ ├── Makefile.in │ └── libprime.c ├── qrduino │ ├── .gitignore │ ├── Makefile.am │ ├── Makefile.in │ ├── ecctable.h │ ├── qrbits.h │ ├── qrencode.c │ ├── qrencode.h │ ├── qrframe.c │ └── qrtest.c ├── qsort │ ├── .gitignore │ ├── Makefile.am │ ├── Makefile.in │ └── libqsort.c ├── qurt │ ├── .gitignore │ ├── Makefile.am │ ├── Makefile.in │ └── libqurt.c ├── recursion │ ├── .gitignore │ ├── Makefile.am │ ├── Makefile.in │ └── librecursion.c ├── rijndael │ ├── .gitignore │ ├── Makefile.am │ ├── Makefile.in │ ├── aes.c │ ├── aes.h │ ├── aestab.h │ └── aesxam.c ├── select │ ├── .gitignore │ ├── Makefile.am │ ├── Makefile.in │ └── libselect.c ├── sglib-arraybinsearch │ ├── .gitignore │ ├── Makefile.am │ ├── Makefile.in │ ├── arraybinsearch.c │ └── sglib.h ├── sglib-arrayheapsort │ ├── .gitignore │ ├── Makefile.am │ ├── Makefile.in │ ├── arraysort.c │ └── sglib.h ├── sglib-arrayquicksort │ ├── .gitignore │ ├── Makefile.am │ ├── Makefile.in │ ├── arraysort.c │ └── sglib.h ├── sglib-arraysort │ ├── .gitignore │ ├── Makefile.am │ ├── Makefile.in │ ├── arraysort.c │ └── sglib.h ├── sglib-dllist │ ├── .gitignore │ ├── Makefile.am │ ├── Makefile.in │ ├── dllist.c │ └── sglib.h ├── sglib-hashtable │ ├── .gitignore │ ├── Makefile.am │ ├── Makefile.in │ ├── hashtable.c │ └── sglib.h ├── sglib-listinsertsort │ ├── .gitignore │ ├── Makefile.am │ ├── Makefile.in │ ├── listinsertsort.c │ └── sglib.h ├── sglib-listsort │ ├── .gitignore │ ├── Makefile.am │ ├── Makefile.in │ ├── listsort.c │ └── sglib.h ├── sglib-queue │ ├── .gitignore │ ├── Makefile.am │ ├── Makefile.in │ ├── queue.c │ └── sglib.h ├── sglib-rbtree │ ├── .gitignore │ ├── Makefile.am │ ├── Makefile.in │ ├── rbtree.c │ └── sglib.h ├── slre │ ├── .gitignore │ ├── Makefile.am │ ├── Makefile.in │ ├── libslre.c │ └── slre.h ├── sqrt │ ├── .gitignore │ ├── Makefile.am │ ├── Makefile.in │ └── libsqrt.c ├── st │ ├── .gitignore │ ├── Makefile.am │ ├── Makefile.in │ └── libst.c ├── statemate │ ├── .gitignore │ ├── Makefile.am │ ├── Makefile.in │ └── libstatemate.c ├── stb_perlin │ ├── .gitignore │ ├── Makefile.am │ ├── Makefile.in │ └── libstb_perlin.c ├── stringsearch1 │ ├── .gitignore │ ├── Makefile.am │ ├── Makefile.in │ ├── fast.fwd.inc.c │ ├── fast.rev.d12.c │ └── stringsearch1.c ├── strstr │ ├── .gitignore │ ├── Makefile.am │ ├── Makefile.in │ └── libstrstr.c ├── tarai │ ├── .gitignore │ ├── Makefile.am │ ├── Makefile.in │ └── libtarai.c ├── template │ ├── .gitignore │ ├── Makefile.am │ ├── Makefile.in │ └── libtemplate.c ├── trio-snprintf │ ├── .gitignore │ ├── Makefile.am │ ├── Makefile.in │ ├── trio.c │ ├── trio.h │ ├── trio_test.c │ ├── triodef.h │ ├── triop.h │ ├── triostr.c │ └── triostr.h ├── trio-sscanf │ ├── .gitignore │ ├── Makefile.am │ ├── Makefile.in │ ├── trio.c │ ├── trio.h │ ├── trio_test.c │ ├── triodef.h │ ├── triop.h │ ├── triostr.c │ └── triostr.h ├── trio │ ├── .gitignore │ ├── Makefile.am │ ├── Makefile.in │ ├── trio.c │ ├── trio.h │ ├── trio_test.c │ ├── triodef.h │ ├── triop.h │ ├── triostr.c │ └── triostr.h ├── ud │ ├── .gitignore │ ├── Makefile.am │ ├── Makefile.in │ └── libud.c ├── whetstone │ ├── .gitignore │ ├── Makefile.am │ ├── Makefile.in │ └── libwhetstone.c └── wikisort │ ├── .gitignore │ ├── Makefile.am │ ├── Makefile.in │ └── libwikisort.c ├── support ├── Makefile.am ├── Makefile.in ├── arc-millicode.S ├── board.c ├── chip.c ├── dummy-crt0.c ├── dummy-libc.c ├── dummy-libgcc.c ├── dummy-libm.c ├── main.c └── support.h ├── testsuite ├── .gitignore ├── ChangeLog ├── Makefile.am ├── Makefile.in ├── beebs-conf.exp ├── beebs.test │ ├── Makefile.am │ ├── Makefile.in │ ├── execute.exp │ └── size.exp ├── config │ ├── Makefile.am │ ├── Makefile.in │ ├── avrdude.exp │ ├── generic.exp │ ├── none.exp │ ├── ri5cyverilator.exp │ └── ty_eysgjn.exp └── lib │ ├── Makefile.am │ ├── Makefile.in │ ├── beebs.exp │ ├── mageec-wand.exp │ └── perf-stat.exp ├── tools └── energytool.py ├── travis_test.sh ├── update-makefile.sno └── update-makefiles.sh /.gitignore: -------------------------------------------------------------------------------- 1 | # Build out of tree or binaries will clutter you up. 2 | 3 | # Temporaries and backups from emacs 4 | *~ 5 | \#* 6 | .\#* 7 | 8 | # Temporary vim files 9 | *.swp 10 | *.tmp 11 | 12 | # Results and build directories 13 | results 14 | 15 | # Autotools things 16 | autom4te.cache 17 | 18 | # Build / configure outputs 19 | *.la 20 | *.lo 21 | *.o 22 | stamp-h1 23 | .deps 24 | .libs 25 | Makefile 26 | config.h 27 | config.log 28 | config.status 29 | libtool 30 | -------------------------------------------------------------------------------- /.travis.yml: -------------------------------------------------------------------------------- 1 | language: c 2 | compiler: gcc 3 | before_install: 4 | - sudo apt-get -qq update 5 | - sudo apt-get install dejagnu texinfo 6 | script: ./travis_test.sh 7 | -------------------------------------------------------------------------------- /AUTHORS: -------------------------------------------------------------------------------- 1 | Andrew Burgess 2 | Ashley Whetter 3 | George Field 4 | Graham Markall 5 | Hendrik Oosenbrug 6 | James Pallister 7 | Jeremy Bennett 8 | Neville Grech 9 | Pierre Langlois 10 | Simon Cook 11 | -------------------------------------------------------------------------------- /Makefile.am: -------------------------------------------------------------------------------- 1 | # Top level Makefile.am for building a BEEBS benchmark 2 | # 3 | # Copyright (C) 2013 Embecosm Limited and University of Bristol 4 | # Copyright (C) 2018 Embecosm Limited 5 | # 6 | # Contributor: James Pallister 7 | # Contributor: Jeremy Bennett 8 | # 9 | # This file is part of the Bristol/Embecosm Embedded Benchmark Suite. 10 | # 11 | # This program is free software: you can redistribute it and/or modify 12 | # it under the terms of the GNU General Public License as published by 13 | # the Free Software Foundation, either version 3 of the License, or 14 | # (at your option) any later version. 15 | # 16 | # This program is distributed in the hope that it will be useful, 17 | # but WITHOUT ANY WARRANTY; without even the implied warranty of 18 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 19 | # GNU General Public License for more details. 20 | # 21 | # You should have received a copy of the GNU General Public License 22 | # along with this program. If not, see . 23 | 24 | # SPDX-License-Identifier: GPL-3.0-or-later 25 | 26 | ACLOCAL_AMFLAGS = -I m4 27 | 28 | SUBDIRS = doc support src testsuite 29 | 30 | EXTRA_DIST= config 31 | 32 | # Clean up any test results 33 | distclean-local: 34 | -rm -fr results/ 35 | -------------------------------------------------------------------------------- /NEWS: -------------------------------------------------------------------------------- 1 | BEEBS release 2.1 2 | ================= 3 | 4 | A summary of changes since release 2.0: 5 | 6 | - Refactored benchmarks to have a consistent structure and a main function in a 7 | single file (James Pallister). 8 | - Calibration values for STM32F0DISCOVERY and STM32VLDISCOVERY added (James 9 | Pallister). 10 | - Support for the SMT32L0DISCOVERY board added (James Pallister). 11 | - Enable calibration to accept a wider range of values (James Pallister). 12 | - Fixes: scaling for Blowfish, output validation for Dijkstra, (James Pallister). 13 | - Fix compilation with GCC 6.1.1 (Graham Markall). 14 | - Remove unused files: legacy platform code, generate-branchmark.sh, and 15 | run-all.sh (Andrew Burgess). 16 | - Add support for the XMEGA A3BUXPLAINED board (James Pallister). 17 | - Fix uninitialised variable and invalid constant value in aha-mont64 (Hendrik 18 | Oosenbrug). 19 | - Add example of configuring for a specific board to the documentation (Graham 20 | Markall). 21 | -------------------------------------------------------------------------------- /README: -------------------------------------------------------------------------------- 1 | README.md -------------------------------------------------------------------------------- /config/arc/boards/generic/boardsupport.c: -------------------------------------------------------------------------------- 1 | /* Copyright (C) 2019 Embecosm Limited and University of Bristol 2 | 3 | Contributor Graham Markall 4 | 5 | This file is part of the Bristol/Embecosm Embedded Benchmark Suite. 6 | 7 | This program is free software: you can redistribute it and/or modify 8 | it under the terms of the GNU General Public License as published by 9 | the Free Software Foundation, either version 3 of the License, or 10 | (at your option) any later version. 11 | 12 | This program is distributed in the hope that it will be useful, 13 | but WITHOUT ANY WARRANTY; without even the implied warranty of 14 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 | GNU General Public License for more details. 16 | 17 | You should have received a copy of the GNU General Public License 18 | along with this program. If not, see . 19 | 20 | SPDX-License-Identifier: GPL-3.0-or-later */ 21 | 22 | #include 23 | 24 | void 25 | initialise_board (void) 26 | { 27 | 28 | } 29 | 30 | void 31 | start_trigger (void) 32 | { 33 | 34 | } 35 | 36 | void 37 | stop_trigger (void) 38 | { 39 | 40 | } 41 | 42 | 43 | /* 44 | Local Variables: 45 | mode: C 46 | c-file-style: "gnu" 47 | End: 48 | */ 49 | -------------------------------------------------------------------------------- /config/arc/chips/compare-baseline/chip.cfg: -------------------------------------------------------------------------------- 1 | # Chip configuration for Baseline ARC Configuration 2 | 3 | # Copyright (C) 2019 Embecosm Limited and the University of Bristol 4 | 5 | # Contributor Graham Markall 6 | 7 | # This file is part of BEEBS 8 | 9 | # This program is free software; you can redistribute it and/or modify it 10 | # under the terms of the GNU General Public License as published by the Free 11 | # Software Foundation; either version 3 of the License, or (at your option) 12 | # any later version. 13 | 14 | # This program is distributed in the hope that it will be useful, but WITHOUT 15 | # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 16 | # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for 17 | # more details. 18 | 19 | # You should have received a copy of the GNU General Public License along with 20 | # this program. If not, see . 21 | 22 | export CHIP_CFLAGS="-Os -mcpu=archs -fdata-sections -ffunction-sections -Wl,-gc-sections" 23 | -------------------------------------------------------------------------------- /config/arc/chips/compare-nocrt/chip.cfg: -------------------------------------------------------------------------------- 1 | # Chip configuration for No-CRT ARC Configuration 2 | 3 | # Copyright (C) 2019 Embecosm Limited and the University of Bristol 4 | 5 | # Contributor Graham Markall 6 | 7 | # This file is part of BEEBS 8 | 9 | # This program is free software; you can redistribute it and/or modify it 10 | # under the terms of the GNU General Public License as published by the Free 11 | # Software Foundation; either version 3 of the License, or (at your option) 12 | # any later version. 13 | 14 | # This program is distributed in the hope that it will be useful, but WITHOUT 15 | # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 16 | # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for 17 | # more details. 18 | 19 | # You should have received a copy of the GNU General Public License along with 20 | # this program. If not, see . 21 | 22 | export CHIP_CFLAGS="-Os -mcpu=archs -fdata-sections -ffunction-sections -Wl,-gc-sections -nostartfiles" 23 | 24 | USE_DUMMY_CRT0=yes 25 | -------------------------------------------------------------------------------- /config/arc/chips/compare-nolibc-nolibgcc-nolibm/chip.cfg: -------------------------------------------------------------------------------- 1 | # Chip configuration for No-LibC-No-LibGCC-No-LibM ARC Configuration 2 | 3 | # Copyright (C) 2019 Embecosm Limited and the University of Bristol 4 | 5 | # Contributor Graham Markall 6 | 7 | # This file is part of BEEBS 8 | 9 | # This program is free software; you can redistribute it and/or modify it 10 | # under the terms of the GNU General Public License as published by the Free 11 | # Software Foundation; either version 3 of the License, or (at your option) 12 | # any later version. 13 | 14 | # This program is distributed in the hope that it will be useful, but WITHOUT 15 | # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 16 | # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for 17 | # more details. 18 | 19 | # You should have received a copy of the GNU General Public License along with 20 | # this program. If not, see . 21 | 22 | export CHIP_CFLAGS="-Os -mcpu=archs -fdata-sections -ffunction-sections -Wl,-gc-sections -nostartfiles -nostdlib" 23 | 24 | 25 | USE_DUMMY_CRT0=yes 26 | USE_DUMMY_LIBC=yes 27 | USE_DUMMY_LIBGCC=yes 28 | USE_DUMMY_LIBM=yes 29 | -------------------------------------------------------------------------------- /config/arc/chips/compare-nolibc-nolibgcc/chip.cfg: -------------------------------------------------------------------------------- 1 | # Chip configuration for No-LibC-No-LibGCC ARC Configuration 2 | 3 | # Copyright (C) 2019 Embecosm Limited and the University of Bristol 4 | 5 | # Contributor Graham Markall 6 | 7 | # This file is part of BEEBS 8 | 9 | # This program is free software; you can redistribute it and/or modify it 10 | # under the terms of the GNU General Public License as published by the Free 11 | # Software Foundation; either version 3 of the License, or (at your option) 12 | # any later version. 13 | 14 | # This program is distributed in the hope that it will be useful, but WITHOUT 15 | # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 16 | # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for 17 | # more details. 18 | 19 | # You should have received a copy of the GNU General Public License along with 20 | # this program. If not, see . 21 | 22 | export CHIP_CFLAGS="-Os -mcpu=archs -fdata-sections -ffunction-sections -Wl,-gc-sections -nostartfiles -nostdlib" 23 | 24 | 25 | USE_DUMMY_CRT0=yes 26 | USE_DUMMY_LIBC=yes 27 | USE_DUMMY_LIBGCC=yes 28 | -------------------------------------------------------------------------------- /config/arc/chips/compare-nolibc/chip.cfg: -------------------------------------------------------------------------------- 1 | # Chip configuration for No-LibC ARC Configuration 2 | 3 | # Copyright (C) 2019 Embecosm Limited and the University of Bristol 4 | 5 | # Contributor Graham Markall 6 | 7 | # This file is part of BEEBS 8 | 9 | # This program is free software; you can redistribute it and/or modify it 10 | # under the terms of the GNU General Public License as published by the Free 11 | # Software Foundation; either version 3 of the License, or (at your option) 12 | # any later version. 13 | 14 | # This program is distributed in the hope that it will be useful, but WITHOUT 15 | # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 16 | # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for 17 | # more details. 18 | 19 | # You should have received a copy of the GNU General Public License along with 20 | # this program. If not, see . 21 | 22 | export CHIP_CFLAGS="-Os -mcpu=archs -fdata-sections -ffunction-sections -Wl,-gc-sections -nostartfiles -nostdlib -lgcc" 23 | 24 | USE_DUMMY_CRT0=yes 25 | USE_DUMMY_LIBC=yes 26 | -------------------------------------------------------------------------------- /config/arm/boards/dk-tm4c123g/board.cfg: -------------------------------------------------------------------------------- 1 | # Board configuration for TM4C123G Development Kit 2 | 3 | # Copyright (C) 2018-2019 Technical University - Sofia 4 | 5 | # Contributor Lubomir Bogdanov 6 | 7 | # This file is part of BEEBS 8 | 9 | # This program is free software; you can redistribute it and/or modify it 10 | # under the terms of the GNU General Public License as published by the Free 11 | # Software Foundation; either version 3 of the License, or (at your option) 12 | # any later version. 13 | 14 | # This program is distributed in the hope that it will be useful, but WITHOUT 15 | # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 16 | # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for 17 | # more details. 18 | 19 | # You should have received a copy of the GNU General Public License along with 20 | # this program. If not, see . 21 | 22 | # This file should be suitable for sourcing by configure 23 | 24 | # Default to the tm4c123g chip 25 | if test $chip == none; then 26 | chip=tm4c123g 27 | fi 28 | -------------------------------------------------------------------------------- /config/arm/boards/dk-tm4c123g/boardsupport.c: -------------------------------------------------------------------------------- 1 | /* Copyright (C) 2019 Technical University - Sofia 2 | 3 | Contributor Lubomir Bogdanov 4 | 5 | This file is part of the Bristol/Embecosm Embedded Benchmark Suite. 6 | 7 | This program is free software: you can redistribute it and/or modify 8 | it under the terms of the GNU General Public License as published by 9 | the Free Software Foundation, either version 3 of the License, or 10 | (at your option) any later version. 11 | 12 | This program is distributed in the hope that it will be useful, 13 | but WITHOUT ANY WARRANTY; without even the implied warranty of 14 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 | GNU General Public License for more details. 16 | 17 | You should have received a copy of the GNU General Public License 18 | along with this program. If not, see . */ 19 | 20 | #include 21 | 22 | void initialise_board() 23 | { 24 | PIN_INIT(0); 25 | } 26 | 27 | void start_trigger() 28 | { 29 | PIN_SET(0); 30 | } 31 | 32 | void stop_trigger() 33 | { 34 | PIN_CLEAR(0); 35 | } 36 | -------------------------------------------------------------------------------- /config/arm/boards/dk-tm4c123g/calibration: -------------------------------------------------------------------------------- 1 | 2dfir 4 2 | adpcm 9 3 | aha-compress 4 4 | aha-mont64 4 5 | blowfish 11 6 | bubblesort 7 7 | cnt 3 8 | compress 2 9 | cover 1 10 | crc 1 11 | crc32 5 12 | ctl-stack 4 13 | ctl-string 4 14 | ctl-vector 4 15 | cubic 9 16 | dhrystone 12 17 | dijkstra 10 18 | dtoa 3 19 | duff 0 20 | edn 7 21 | expint 2 22 | fac 0 23 | fasta 12 24 | fdct 2 25 | fft 6 26 | fir 8 27 | frac 7 28 | huffbench 12 29 | insertsort 0 30 | jfdctint 3 31 | levenshtein 6 32 | lms 11 33 | ludcmp 4 34 | matmult-int 8 35 | matmult-float 7 36 | mergesort 9 37 | miniz 12 38 | minver 3 39 | nbody 12 40 | ndes 6 41 | nettle-arcfour 5 42 | nettle-cast128 1 43 | nettle-des 2 44 | nettle-md5 0 45 | newlib-exp 3 46 | newlib-log 2 47 | newlib-sqrt 2 48 | ns 4 49 | nsichneu 3 50 | picojpeg 10 51 | prime 5 52 | qrduino 10 53 | qsort 1 54 | qurt 4 55 | recursion 1 56 | rijndael 10 57 | select 2 58 | sglib-arraybinsearch 4 59 | sglib-arrayheapsort 5 60 | sglib-arrayquicksort 5 61 | sglib-dllist 5 62 | sglib-hashtable 5 63 | sglib-listinsertsort 6 64 | sglib-listsort 5 65 | sglib-queue 6 66 | sglib-rbtree 6 67 | slre 5 68 | stringsearch1 2 69 | strstr 0 70 | sqrt 11 71 | st 9 72 | statemate 0 73 | stb_perlin 9 74 | trio-snprintf 4 75 | trio-sscanf 4 76 | ud 3 77 | wikisort 12 78 | whetstone 11 79 | bs 0 80 | fibcall 0 81 | janne_complex 0 82 | lcdnum 0 83 | newlib-mod 0 84 | sha 12 85 | tarai 0 86 | -------------------------------------------------------------------------------- /config/arm/boards/ek-tm4c123gxl/board.cfg: -------------------------------------------------------------------------------- 1 | # Board configuration for TM4C123GXL Evaluation Kit 2 | 3 | # Copyright (C) 2018-2019 Technical University - Sofia 4 | 5 | # Contributor Lubomir Bogdanov 6 | 7 | # This file is part of BEEBS 8 | 9 | # This program is free software; you can redistribute it and/or modify it 10 | # under the terms of the GNU General Public License as published by the Free 11 | # Software Foundation; either version 3 of the License, or (at your option) 12 | # any later version. 13 | 14 | # This program is distributed in the hope that it will be useful, but WITHOUT 15 | # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 16 | # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for 17 | # more details. 18 | 19 | # You should have received a copy of the GNU General Public License along with 20 | # this program. If not, see . 21 | 22 | # This file should be suitable for sourcing by configure 23 | 24 | # Default to the tm4c123g chip 25 | if test $chip == none; then 26 | chip=tm4c123g 27 | fi 28 | -------------------------------------------------------------------------------- /config/arm/boards/ek-tm4c123gxl/boardsupport.c: -------------------------------------------------------------------------------- 1 | /* Copyright (C) 2019 Technical University - Sofia 2 | 3 | Contributor Lubomir Bogdanov 4 | 5 | This file is part of the Bristol/Embecosm Embedded Benchmark Suite. 6 | 7 | This program is free software: you can redistribute it and/or modify 8 | it under the terms of the GNU General Public License as published by 9 | the Free Software Foundation, either version 3 of the License, or 10 | (at your option) any later version. 11 | 12 | This program is distributed in the hope that it will be useful, 13 | but WITHOUT ANY WARRANTY; without even the implied warranty of 14 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 | GNU General Public License for more details. 16 | 17 | You should have received a copy of the GNU General Public License 18 | along with this program. If not, see . */ 19 | 20 | #include 21 | 22 | void initialise_board() 23 | { 24 | PIN_INIT(7); 25 | } 26 | 27 | void start_trigger() 28 | { 29 | PIN_SET(7); 30 | } 31 | 32 | void stop_trigger() 33 | { 34 | PIN_CLEAR(7); 35 | } 36 | -------------------------------------------------------------------------------- /config/arm/boards/ek-tm4c123gxl/calibration: -------------------------------------------------------------------------------- 1 | 2dfir 4 2 | adpcm 9 3 | aha-compress 4 4 | aha-mont64 4 5 | blowfish 11 6 | bubblesort 7 7 | cnt 3 8 | compress 2 9 | cover 1 10 | crc 1 11 | crc32 5 12 | ctl-stack 4 13 | ctl-string 4 14 | ctl-vector 4 15 | cubic 9 16 | dhrystone 12 17 | dijkstra 10 18 | dtoa 3 19 | duff 0 20 | edn 7 21 | expint 2 22 | fac 0 23 | fasta 12 24 | fdct 2 25 | fft 6 26 | fir 8 27 | frac 7 28 | huffbench 12 29 | insertsort 0 30 | jfdctint 3 31 | levenshtein 6 32 | lms 11 33 | ludcmp 4 34 | matmult-int 8 35 | matmult-float 7 36 | mergesort 9 37 | miniz 12 38 | minver 3 39 | nbody 12 40 | ndes 6 41 | nettle-arcfour 5 42 | nettle-cast128 1 43 | nettle-des 2 44 | nettle-md5 0 45 | newlib-exp 3 46 | newlib-log 2 47 | newlib-sqrt 2 48 | ns 4 49 | nsichneu 3 50 | picojpeg 10 51 | prime 5 52 | qrduino 10 53 | qsort 1 54 | qurt 4 55 | recursion 1 56 | rijndael 10 57 | select 2 58 | sglib-arraybinsearch 4 59 | sglib-arrayheapsort 5 60 | sglib-arrayquicksort 5 61 | sglib-dllist 5 62 | sglib-hashtable 5 63 | sglib-listinsertsort 6 64 | sglib-listsort 5 65 | sglib-queue 6 66 | sglib-rbtree 6 67 | slre 5 68 | stringsearch1 2 69 | strstr 0 70 | sqrt 11 71 | st 9 72 | statemate 0 73 | stb_perlin 9 74 | trio-snprintf 4 75 | trio-sscanf 4 76 | ud 3 77 | wikisort 12 78 | whetstone 11 79 | bs 0 80 | fibcall 0 81 | janne_complex 0 82 | lcdnum 0 83 | newlib-mod 0 84 | sha 12 85 | tarai 0 86 | -------------------------------------------------------------------------------- /config/arm/boards/generic/boardsupport.c: -------------------------------------------------------------------------------- 1 | /* Copyright (C) 2019 Embecosm Limited and University of Bristol 2 | 3 | Contributor Graham Markall 4 | 5 | This file is part of the Bristol/Embecosm Embedded Benchmark Suite. 6 | 7 | This program is free software: you can redistribute it and/or modify 8 | it under the terms of the GNU General Public License as published by 9 | the Free Software Foundation, either version 3 of the License, or 10 | (at your option) any later version. 11 | 12 | This program is distributed in the hope that it will be useful, 13 | but WITHOUT ANY WARRANTY; without even the implied warranty of 14 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 | GNU General Public License for more details. 16 | 17 | You should have received a copy of the GNU General Public License 18 | along with this program. If not, see . 19 | 20 | SPDX-License-Identifier: GPL-3.0-or-later */ 21 | 22 | #include 23 | 24 | void 25 | initialise_board (void) 26 | { 27 | 28 | } 29 | 30 | void 31 | start_trigger (void) 32 | { 33 | 34 | } 35 | 36 | void 37 | stop_trigger (void) 38 | { 39 | 40 | } 41 | 42 | 43 | /* 44 | Local Variables: 45 | mode: C 46 | c-file-style: "gnu" 47 | End: 48 | */ 49 | -------------------------------------------------------------------------------- /config/arm/boards/none/boardsupport.c: -------------------------------------------------------------------------------- 1 | /* Copyright (C) 2018 Embecosm Limited and University of Bristol 2 | 3 | Contributor Jeremy Bennett 4 | 5 | This file is part of the Bristol/Embecosm Embedded Benchmark Suite. 6 | 7 | This program is free software: you can redistribute it and/or modify 8 | it under the terms of the GNU General Public License as published by 9 | the Free Software Foundation, either version 3 of the License, or 10 | (at your option) any later version. 11 | 12 | This program is distributed in the hope that it will be useful, 13 | but WITHOUT ANY WARRANTY; without even the implied warranty of 14 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 | GNU General Public License for more details. 16 | 17 | You should have received a copy of the GNU General Public License 18 | along with this program. If not, see . 19 | 20 | SPDX-License-Identifier: GPL-3.0-or-later */ 21 | 22 | #include 23 | 24 | void 25 | initialise_board (void) 26 | { 27 | 28 | } 29 | 30 | void 31 | start_trigger (void) 32 | { 33 | 34 | } 35 | 36 | void 37 | stop_trigger (void) 38 | { 39 | 40 | } 41 | 42 | 43 | /* 44 | Local Variables: 45 | mode: C 46 | c-file-style: "gnu" 47 | End: 48 | */ 49 | -------------------------------------------------------------------------------- /config/arm/boards/stm32f0discovery/board.cfg: -------------------------------------------------------------------------------- 1 | # Board configuration for STM32 F0 Discovery Board 2 | 3 | # Copyright (C) 2013-2014 Embecosm Limited and the University of Bristol 4 | 5 | # Contributor James Pallister 6 | 7 | # This file is part of BEEBS 8 | 9 | # This program is free software; you can redistribute it and/or modify it 10 | # under the terms of the GNU General Public License as published by the Free 11 | # Software Foundation; either version 3 of the License, or (at your option) 12 | # any later version. 13 | 14 | # This program is distributed in the hope that it will be useful, but WITHOUT 15 | # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 16 | # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for 17 | # more details. 18 | 19 | # You should have received a copy of the GNU General Public License along with 20 | # this program. If not, see . 21 | 22 | # This file should be suitable for sourcing by configure 23 | 24 | # Default to the stm32f051 chip 25 | if test $chip == none; then 26 | chip=stm32f051 27 | fi 28 | -------------------------------------------------------------------------------- /config/arm/boards/stm32f0discovery/boardsupport.c: -------------------------------------------------------------------------------- 1 | /* Copyright (C) 2014 Embecosm Limited and University of Bristol 2 | 3 | Contributor James Pallister 4 | 5 | This file is part of the Bristol/Embecosm Embedded Benchmark Suite. 6 | 7 | This program is free software: you can redistribute it and/or modify 8 | it under the terms of the GNU General Public License as published by 9 | the Free Software Foundation, either version 3 of the License, or 10 | (at your option) any later version. 11 | 12 | This program is distributed in the hope that it will be useful, 13 | but WITHOUT ANY WARRANTY; without even the implied warranty of 14 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 | GNU General Public License for more details. 16 | 17 | You should have received a copy of the GNU General Public License 18 | along with this program. If not, see . */ 19 | 20 | #include 21 | 22 | void initialise_board() 23 | { 24 | PIN_INIT(0); 25 | } 26 | 27 | void start_trigger() 28 | { 29 | PIN_SET(0); 30 | } 31 | 32 | void stop_trigger() 33 | { 34 | PIN_CLEAR(0); 35 | } 36 | -------------------------------------------------------------------------------- /config/arm/boards/stm32f0discovery/calibration: -------------------------------------------------------------------------------- 1 | 2dfir 4 2 | adpcm 9 3 | aha-compress 4 4 | aha-mont64 4 5 | blowfish 11 6 | bubblesort 7 7 | cnt 3 8 | compress 2 9 | cover 1 10 | crc 1 11 | crc32 5 12 | ctl-stack 4 13 | ctl-string 4 14 | ctl-vector 4 15 | cubic 9 16 | dhrystone 12 17 | dijkstra 10 18 | dtoa 3 19 | duff 0 20 | edn 7 21 | expint 2 22 | fac 0 23 | fasta 12 24 | fdct 2 25 | fft 6 26 | fir 8 27 | frac 7 28 | huffbench 12 29 | insertsort 0 30 | jfdctint 3 31 | levenshtein 6 32 | lms 11 33 | ludcmp 4 34 | matmult-int 8 35 | matmult-float 7 36 | mergesort 9 37 | miniz 12 38 | minver 3 39 | nbody 12 40 | ndes 6 41 | nettle-arcfour 5 42 | nettle-cast128 1 43 | nettle-des 2 44 | nettle-md5 0 45 | newlib-exp 3 46 | newlib-log 2 47 | newlib-sqrt 2 48 | ns 4 49 | nsichneu 3 50 | picojpeg 10 51 | prime 5 52 | qrduino 10 53 | qsort 1 54 | qurt 4 55 | recursion 1 56 | rijndael 10 57 | select 2 58 | sglib-arraybinsearch 4 59 | sglib-arrayheapsort 5 60 | sglib-arrayquicksort 5 61 | sglib-dllist 5 62 | sglib-hashtable 5 63 | sglib-listinsertsort 6 64 | sglib-listsort 5 65 | sglib-queue 6 66 | sglib-rbtree 6 67 | slre 5 68 | stringsearch1 2 69 | strstr 0 70 | sqrt 11 71 | st 9 72 | statemate 0 73 | stb_perlin 9 74 | trio-snprintf 4 75 | trio-sscanf 4 76 | ud 3 77 | wikisort 12 78 | whetstone 11 79 | bs 0 80 | fibcall 0 81 | janne_complex 0 82 | lcdnum 0 83 | newlib-mod 0 84 | sha 12 85 | tarai 0 86 | -------------------------------------------------------------------------------- /config/arm/boards/stm32l0discovery/board.cfg: -------------------------------------------------------------------------------- 1 | # Board configuration for STM32 F0 Discovery Board 2 | 3 | # Copyright (C) 2013-2014 Embecosm Limited and the University of Bristol 4 | 5 | # Contributor James Pallister 6 | 7 | # This file is part of BEEBS 8 | 9 | # This program is free software; you can redistribute it and/or modify it 10 | # under the terms of the GNU General Public License as published by the Free 11 | # Software Foundation; either version 3 of the License, or (at your option) 12 | # any later version. 13 | 14 | # This program is distributed in the hope that it will be useful, but WITHOUT 15 | # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 16 | # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for 17 | # more details. 18 | 19 | # You should have received a copy of the GNU General Public License along with 20 | # this program. If not, see . 21 | 22 | # This file should be suitable for sourcing by configure 23 | 24 | # Default to the stm32l152 chip 25 | if test $chip == none; then 26 | chip=stm32l053 27 | fi 28 | -------------------------------------------------------------------------------- /config/arm/boards/stm32l0discovery/calibration: -------------------------------------------------------------------------------- 1 | 2dfir 6 2 | adpcm 10 3 | aha-compress 5 4 | aha-mont64 5 5 | blowfish 11 6 | bubblesort 7 7 | cnt 5 8 | compress 3 9 | cover 2 10 | crc 2 11 | crc32 7 12 | ctl-stack 5 13 | ctl-string 4 14 | ctl-vector 5 15 | cubic 11 16 | dhrystone 12 17 | dijkstra 11 18 | dtoa 5 19 | duff 1 20 | edn 6 21 | expint 3 22 | fac 1 23 | fasta 12 24 | fdct 2 25 | fft 6 26 | fir 9 27 | frac 9 28 | huffbench 12 29 | insertsort 0 30 | jfdctint 4 31 | levenshtein 6 32 | lms 12 33 | ludcmp 6 34 | matmult-int 8 35 | matmult-float 9 36 | mergesort 11 37 | miniz 12 38 | minver 5 39 | nbody 12 40 | ndes 7 41 | nettle-arcfour 5 42 | nettle-cast128 12 43 | nettle-des 4 44 | nettle-md5 1 45 | newlib-exp 5 46 | newlib-log 0 47 | newlib-sqrt 2 48 | ns 0 49 | nsichneu 4 50 | picojpeg 11 51 | prime 7 52 | qrduino 10 53 | qsort 3 54 | qurt 6 55 | recursion 2 56 | rijndael 11 57 | select 3 58 | sglib-arraybinsearch 4 59 | sglib-arrayheapsort 5 60 | sglib-arrayquicksort 4 61 | sglib-dllist 6 62 | sglib-hashtable 7 63 | sglib-listinsertsort 7 64 | sglib-listsort 6 65 | sglib-queue 6 66 | sglib-rbtree 7 67 | slre 6 68 | stringsearch1 4 69 | strstr 1 70 | sqrt 12 71 | st 10 72 | statemate 1 73 | stb_perlin 11 74 | trio-snprintf 5 75 | trio-sscanf 5 76 | ud 3 77 | wikisort 12 78 | whetstone 12 79 | bs 0 80 | fibcall 0 81 | janne_complex 0 82 | lcdnum 0 83 | newlib-mod 0 84 | sha 12 85 | tarai 0 86 | -------------------------------------------------------------------------------- /config/arm/boards/stm32vldiscovery/board.cfg: -------------------------------------------------------------------------------- 1 | # Board configuration for STM32 VL Discovery Board 2 | 3 | # Copyright (C) 2013-2014 Embecosm Limited and the University of Bristol 4 | 5 | # Contributor James Pallister 6 | 7 | # This file is part of BEEBS 8 | 9 | # This program is free software; you can redistribute it and/or modify it 10 | # under the terms of the GNU General Public License as published by the Free 11 | # Software Foundation; either version 3 of the License, or (at your option) 12 | # any later version. 13 | 14 | # This program is distributed in the hope that it will be useful, but WITHOUT 15 | # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 16 | # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for 17 | # more details. 18 | 19 | # You should have received a copy of the GNU General Public License along with 20 | # this program. If not, see . 21 | 22 | # This file should be suitable for sourcing by configure 23 | 24 | # Default to the stm32f100 chip 25 | if test $chip == none; then 26 | chip=stm32f100 27 | fi 28 | -------------------------------------------------------------------------------- /config/arm/boards/stm32vldiscovery/boardsupport.c: -------------------------------------------------------------------------------- 1 | /* Copyright (C) 2014 Embecosm Limited and University of Bristol 2 | 3 | Contributor James Pallister 4 | 5 | This file is part of the Bristol/Embecosm Embedded Benchmark Suite. 6 | 7 | This program is free software: you can redistribute it and/or modify 8 | it under the terms of the GNU General Public License as published by 9 | the Free Software Foundation, either version 3 of the License, or 10 | (at your option) any later version. 11 | 12 | This program is distributed in the hope that it will be useful, 13 | but WITHOUT ANY WARRANTY; without even the implied warranty of 14 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 | GNU General Public License for more details. 16 | 17 | You should have received a copy of the GNU General Public License 18 | along with this program. If not, see . */ 19 | 20 | #include 21 | 22 | void initialise_board() 23 | { 24 | PIN_INIT(0); 25 | } 26 | 27 | void start_trigger() 28 | { 29 | PIN_SET(0); 30 | } 31 | 32 | void stop_trigger() 33 | { 34 | PIN_CLEAR(0); 35 | } 36 | -------------------------------------------------------------------------------- /config/arm/boards/stm32vldiscovery/calibration: -------------------------------------------------------------------------------- 1 | 2dfir 4 2 | adpcm 7 3 | aha-compress 4 4 | aha-mont64 4 5 | blowfish 1 6 | bubblesort 6 7 | cnt 2 8 | compress 2 9 | cover 1 10 | crc32 5 11 | ctl-stack 3 12 | ctl-string 3 13 | ctl-vector 3 14 | cubic 11 15 | dhrystone 0 16 | dijkstra 10 17 | dtoa 3 18 | duff 0 19 | edn 6 20 | expint 1 21 | fac 0 22 | fasta 7 23 | fdct 1 24 | fir 0 25 | frac 7 26 | huffbench 12 27 | insertsort 0 28 | jfdctint 2 29 | levenshtein 6 30 | lms 4 31 | ludcmp 4 32 | matmult-int 7 33 | matmult-float 7 34 | mergesort 10 35 | miniz 0 36 | minver 3 37 | nbody 10 38 | ndes 5 39 | nettle-arcfour 4 40 | nettle-cast128 1 41 | nettle-des 2 42 | nettle-md5 0 43 | newlib-sqrt 1 44 | ns 0 45 | nsichneu 3 46 | picojpeg 0 47 | prime 3 48 | qrduino 10 49 | qsort 3 50 | qurt 4 51 | recursion 1 52 | rijndael 11 53 | select 3 54 | sglib-arraybinsearch 4 55 | sglib-arrayheapsort 5 56 | sglib-arrayquicksort 4 57 | sglib-dllist 6 58 | sglib-hashtable 5 59 | sglib-listinsertsort 6 60 | sglib-listsort 5 61 | sglib-queue 5 62 | sglib-rbtree 8 63 | slre 5 64 | stringsearch1 3 65 | strstr 0 66 | sqrt 11 67 | st 8 68 | statemate 1 69 | stb_perlin 0 70 | trio-snprintf 4 71 | trio-sscanf 4 72 | ud 1 73 | wikisort 10 74 | whetstone 10 75 | lcdnum 0 76 | sha 0 77 | tarai 0 78 | -------------------------------------------------------------------------------- /config/arm/boards/ty_eysgjn/board.cfg: -------------------------------------------------------------------------------- 1 | # Board configuration for Taiyo Yuden EYSGJN Development Kit 2 | 3 | # Copyright (C) 2018-2019 Technical University - Sofia 4 | 5 | # Contributor Lubomir Bogdanov 6 | 7 | # This file is part of BEEBS 8 | 9 | # This program is free software; you can redistribute it and/or modify it 10 | # under the terms of the GNU General Public License as published by the Free 11 | # Software Foundation; either version 3 of the License, or (at your option) 12 | # any later version. 13 | 14 | # This program is distributed in the hope that it will be useful, but WITHOUT 15 | # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 16 | # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for 17 | # more details. 18 | 19 | # You should have received a copy of the GNU General Public License along with 20 | # this program. If not, see . 21 | 22 | # This file should be suitable for sourcing by configure 23 | 24 | # Default to the nrf51822 chip 25 | if test $chip == none; then 26 | chip=nrf51822 27 | fi 28 | -------------------------------------------------------------------------------- /config/arm/boards/ty_eysgjn/boardsupport.c: -------------------------------------------------------------------------------- 1 | /* Copyright (C) 2019 Technical University - Sofia 2 | 3 | Contributor Lubomir Bogdanov 4 | 5 | This file is part of the Bristol/Embecosm Embedded Benchmark Suite. 6 | 7 | This program is free software: you can redistribute it and/or modify 8 | it under the terms of the GNU General Public License as published by 9 | the Free Software Foundation, either version 3 of the License, or 10 | (at your option) any later version. 11 | 12 | This program is distributed in the hope that it will be useful, 13 | but WITHOUT ANY WARRANTY; without even the implied warranty of 14 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 | GNU General Public License for more details. 16 | 17 | You should have received a copy of the GNU General Public License 18 | along with this program. If not, see . */ 19 | 20 | #include 21 | 22 | void initialise_board() 23 | { 24 | PIN_INIT(25); 25 | } 26 | 27 | void start_trigger() 28 | { 29 | PIN_SET(25); 30 | } 31 | 32 | void stop_trigger() 33 | { 34 | PIN_CLEAR(25); 35 | } 36 | -------------------------------------------------------------------------------- /config/arm/boards/ty_eysgjn/calibration: -------------------------------------------------------------------------------- 1 | 2dfir 4 2 | adpcm 9 3 | aha-compress 4 4 | aha-mont64 4 5 | blowfish 11 6 | bubblesort 7 7 | cnt 3 8 | compress 2 9 | cover 1 10 | crc 1 11 | crc32 5 12 | ctl-stack 4 13 | ctl-string 4 14 | ctl-vector 4 15 | cubic 9 16 | dhrystone 12 17 | dijkstra 10 18 | dtoa 3 19 | duff 0 20 | edn 7 21 | expint 2 22 | fac 0 23 | fasta 12 24 | fdct 2 25 | fft 6 26 | fir 8 27 | frac 7 28 | huffbench 12 29 | insertsort 0 30 | jfdctint 3 31 | levenshtein 6 32 | lms 11 33 | ludcmp 4 34 | matmult-int 8 35 | matmult-float 7 36 | mergesort 9 37 | miniz 12 38 | minver 3 39 | nbody 12 40 | ndes 6 41 | nettle-arcfour 5 42 | nettle-cast128 1 43 | nettle-des 2 44 | nettle-md5 0 45 | newlib-exp 3 46 | newlib-log 2 47 | newlib-sqrt 2 48 | ns 4 49 | nsichneu 3 50 | picojpeg 10 51 | prime 5 52 | qrduino 10 53 | qsort 1 54 | qurt 4 55 | recursion 1 56 | rijndael 10 57 | select 2 58 | sglib-arraybinsearch 4 59 | sglib-arrayheapsort 5 60 | sglib-arrayquicksort 5 61 | sglib-dllist 5 62 | sglib-hashtable 5 63 | sglib-listinsertsort 6 64 | sglib-listsort 5 65 | sglib-queue 6 66 | sglib-rbtree 6 67 | slre 5 68 | stringsearch1 2 69 | strstr 0 70 | sqrt 11 71 | st 9 72 | statemate 0 73 | stb_perlin 9 74 | trio-snprintf 4 75 | trio-sscanf 4 76 | ud 3 77 | wikisort 12 78 | whetstone 11 79 | bs 0 80 | fibcall 0 81 | janne_complex 0 82 | lcdnum 0 83 | newlib-mod 0 84 | sha 12 85 | tarai 0 86 | -------------------------------------------------------------------------------- /config/arm/chips/compare-baseline/chip.cfg: -------------------------------------------------------------------------------- 1 | # 32-bit ARM configuration for baseline for comparison 2 | 3 | # Copyright (C) 2019 Embecosm Limited 4 | 5 | # Contributor Graham Markall 6 | 7 | # This file is part of BEEBS 8 | 9 | # This program is free software; you can redistribute it and/or modify it 10 | # under the terms of the GNU General Public License as published by the Free 11 | # Software Foundation; either version 3 of the License, or (at your option) 12 | # any later version. 13 | 14 | # This program is distributed in the hope that it will be useful, but WITHOUT 15 | # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 16 | # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for 17 | # more details. 18 | 19 | # You should have received a copy of the GNU General Public License along with 20 | # this program. If not, see . 21 | 22 | # SPDX-License-Identifier: GPL-3.0-or-later 23 | 24 | export CHIP_CFLAGS="-Os -mcpu=cortex-m4+nofp -mfloat-abi=soft -mthumb -fdata-sections -ffunction-sections -Wl,-gc-sections" 25 | -------------------------------------------------------------------------------- /config/arm/chips/compare-nocrt/chip.cfg: -------------------------------------------------------------------------------- 1 | # 32-bit ARM configuration for No-CRT configuration 2 | 3 | # Copyright (C) 2019 Embecosm Limited 4 | 5 | # Contributor Graham Markall 6 | 7 | # This file is part of BEEBS 8 | 9 | # This program is free software; you can redistribute it and/or modify it 10 | # under the terms of the GNU General Public License as published by the Free 11 | # Software Foundation; either version 3 of the License, or (at your option) 12 | # any later version. 13 | 14 | # This program is distributed in the hope that it will be useful, but WITHOUT 15 | # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 16 | # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for 17 | # more details. 18 | 19 | # You should have received a copy of the GNU General Public License along with 20 | # this program. If not, see . 21 | 22 | # SPDX-License-Identifier: GPL-3.0-or-later 23 | 24 | export CHIP_CFLAGS="-Os -mcpu=cortex-m4+nofp -mfloat-abi=soft -mthumb -fdata-sections -ffunction-sections -Wl,-gc-sections -nostartfiles" 25 | 26 | USE_DUMMY_CRT0=yes 27 | -------------------------------------------------------------------------------- /config/arm/chips/compare-nolibc-nolibgcc-nolibm/chip.cfg: -------------------------------------------------------------------------------- 1 | # 32-bit ARM configuration for No-LibC-No-LibGCC-No-LibM configuration 2 | 3 | # Copyright (C) 2019 Embecosm Limited 4 | 5 | # Contributor Graham Markall 6 | 7 | # This file is part of BEEBS 8 | 9 | # This program is free software; you can redistribute it and/or modify it 10 | # under the terms of the GNU General Public License as published by the Free 11 | # Software Foundation; either version 3 of the License, or (at your option) 12 | # any later version. 13 | 14 | # This program is distributed in the hope that it will be useful, but WITHOUT 15 | # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 16 | # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for 17 | # more details. 18 | 19 | # You should have received a copy of the GNU General Public License along with 20 | # this program. If not, see . 21 | 22 | # SPDX-License-Identifier: GPL-3.0-or-later 23 | 24 | export CHIP_CFLAGS="-Os -mcpu=cortex-m4+nofp -mfloat-abi=soft -mthumb -fdata-sections -ffunction-sections -Wl,-gc-sections -nostartfiles -nostdlib" 25 | 26 | 27 | USE_DUMMY_CRT0=yes 28 | USE_DUMMY_LIBC=yes 29 | USE_DUMMY_LIBGCC=yes 30 | USE_DUMMY_LIBM=yes 31 | -------------------------------------------------------------------------------- /config/arm/chips/compare-nolibc-nolibgcc/chip.cfg: -------------------------------------------------------------------------------- 1 | # 32-bit ARM configuration for No-LibC-No-LibGCC configuration 2 | 3 | # Copyright (C) 2019 Embecosm Limited 4 | 5 | # Contributor Graham Markall 6 | 7 | # This file is part of BEEBS 8 | 9 | # This program is free software; you can redistribute it and/or modify it 10 | # under the terms of the GNU General Public License as published by the Free 11 | # Software Foundation; either version 3 of the License, or (at your option) 12 | # any later version. 13 | 14 | # This program is distributed in the hope that it will be useful, but WITHOUT 15 | # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 16 | # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for 17 | # more details. 18 | 19 | # You should have received a copy of the GNU General Public License along with 20 | # this program. If not, see . 21 | 22 | # SPDX-License-Identifier: GPL-3.0-or-later 23 | 24 | export CHIP_CFLAGS="-Os -mcpu=cortex-m4+nofp -mfloat-abi=soft -mthumb -fdata-sections -ffunction-sections -Wl,-gc-sections -nostartfiles -nostdlib" 25 | 26 | 27 | USE_DUMMY_CRT0=yes 28 | USE_DUMMY_LIBC=yes 29 | USE_DUMMY_LIBGCC=yes 30 | -------------------------------------------------------------------------------- /config/arm/chips/compare-nolibc/chip.cfg: -------------------------------------------------------------------------------- 1 | # 32-bit ARM configuration for No-LibC configuration 2 | 3 | # Copyright (C) 2019 Embecosm Limited 4 | 5 | # Contributor Graham Markall 6 | 7 | # This file is part of BEEBS 8 | 9 | # This program is free software; you can redistribute it and/or modify it 10 | # under the terms of the GNU General Public License as published by the Free 11 | # Software Foundation; either version 3 of the License, or (at your option) 12 | # any later version. 13 | 14 | # This program is distributed in the hope that it will be useful, but WITHOUT 15 | # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 16 | # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for 17 | # more details. 18 | 19 | # You should have received a copy of the GNU General Public License along with 20 | # this program. If not, see . 21 | 22 | # SPDX-License-Identifier: GPL-3.0-or-later 23 | 24 | export CHIP_CFLAGS="-Os -mcpu=cortex-m4+nofp -mfloat-abi=soft -mthumb -fdata-sections -ffunction-sections -Wl,-gc-sections -nostartfiles -nostdlib -lgcc" 25 | 26 | USE_DUMMY_CRT0=yes 27 | USE_DUMMY_LIBC=yes 28 | -------------------------------------------------------------------------------- /config/arm/chips/generic/chip.cfg: -------------------------------------------------------------------------------- 1 | # Generic chip configuration for 32-bit ARM 2 | 3 | # Copyright (C) 2018 Embecosm Limited 4 | 5 | # Contributor Jeremy Bennett 6 | 7 | # This file is part of BEEBS 8 | 9 | # This program is free software; you can redistribute it and/or modify it 10 | # under the terms of the GNU General Public License as published by the Free 11 | # Software Foundation; either version 3 of the License, or (at your option) 12 | # any later version. 13 | 14 | # This program is distributed in the hope that it will be useful, but WITHOUT 15 | # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 16 | # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for 17 | # more details. 18 | 19 | # You should have received a copy of the GNU General Public License along with 20 | # this program. If not, see . 21 | 22 | # SPDX-License-Identifier: GPL-3.0-or-later 23 | 24 | # This file should be suitable for sourcing by configure 25 | 26 | -------------------------------------------------------------------------------- /config/arm/chips/nrf51822/chip.cfg: -------------------------------------------------------------------------------- 1 | # Chip configuration for NRF51822 2 | 3 | # Copyright (C) 2018-2019 Technical University - Sofia 4 | 5 | # Contributor Lubomir Bogdanov 6 | 7 | # This file is part of BEEBS 8 | 9 | # This program is free software; you can redistribute it and/or modify it 10 | # under the terms of the GNU General Public License as published by the Free 11 | # Software Foundation; either version 3 of the License, or (at your option) 12 | # any later version. 13 | 14 | # This program is distributed in the hope that it will be useful, but WITHOUT 15 | # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 16 | # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for 17 | # more details. 18 | 19 | # You should have received a copy of the GNU General Public License along with 20 | # this program. If not, see . 21 | 22 | # This file should be suitable for sourcing by configure 23 | 24 | chipdir=`readlink -m $srcdir/config/$arch/chips/$chip/` 25 | 26 | export CHIP_CFLAGS="--static -mcpu=cortex-m0 -mthumb -mabi=aapcs --std=gnu99 -Wall -mfloat-abi=soft -ffunction-sections -fdata-sections -fno-strict-aliasing -fno-builtin --short-enums -O0 -g -gdwarf-3 -gstrict-dwarf" 27 | export CHIP_LDFLAGS="-T $chipdir/chip.ld -Wl,--start-group -mthumb -mabi=aapcs -mcpu=cortex-m0 -lc -lm -specs=nano.specs -specs=nosys.specs -nostartfiles -Wl,--end-group" 28 | -------------------------------------------------------------------------------- /config/arm/chips/stm32f051/chip.cfg: -------------------------------------------------------------------------------- 1 | # Chip configuration for ARM stm32f051. 2 | 3 | # Copyright (C) 2013-2014 Embecosm Limited and the University of Bristol 4 | 5 | # Contributor James Pallister 6 | 7 | # This file is part of BEEBS 8 | 9 | # This program is free software; you can redistribute it and/or modify it 10 | # under the terms of the GNU General Public License as published by the Free 11 | # Software Foundation; either version 3 of the License, or (at your option) 12 | # any later version. 13 | 14 | # This program is distributed in the hope that it will be useful, but WITHOUT 15 | # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 16 | # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for 17 | # more details. 18 | 19 | # You should have received a copy of the GNU General Public License along with 20 | # this program. If not, see . 21 | 22 | # This file should be suitable for sourcing by configure 23 | 24 | chipdir=`readlink -m $srcdir/config/$arch/chips/$chip/` 25 | 26 | export CHIP_CFLAGS="--static -mthumb -mcpu=cortex-m0" 27 | export CHIP_LDFLAGS="-T $chipdir/chip.ld -Wl,--gc-sections -Wl,--start-group -lc -lgcc -lnosys -Wl,--end-group" 28 | -------------------------------------------------------------------------------- /config/arm/chips/stm32f051/chipsupport.c: -------------------------------------------------------------------------------- 1 | /* Copyright (C) 2014 Embecosm Limited and University of Bristol 2 | 3 | Contributor James Pallister 4 | 5 | This file is part of the Bristol/Embecosm Embedded Benchmark Suite. 6 | 7 | This program is free software: you can redistribute it and/or modify 8 | it under the terms of the GNU General Public License as published by 9 | the Free Software Foundation, either version 3 of the License, or 10 | (at your option) any later version. 11 | 12 | This program is distributed in the hope that it will be useful, 13 | but WITHOUT ANY WARRANTY; without even the implied warranty of 14 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 | GNU General Public License for more details. 16 | 17 | You should have received a copy of the GNU General Public License 18 | along with this program. If not, see . */ 19 | 20 | #include 21 | 22 | // This file is needed to copy the initialised data from flash to RAM 23 | 24 | extern unsigned char __data_start__; 25 | extern unsigned char __data_end__; 26 | extern unsigned char _data_loadaddr; 27 | 28 | extern unsigned char __bss_start__; 29 | extern unsigned char __bss_end__; 30 | 31 | void software_init_hook() 32 | { 33 | memcpy(&__data_start__, &_data_loadaddr, 34 | (unsigned)&__data_end__ - (unsigned)&__data_start__); 35 | } 36 | 37 | -------------------------------------------------------------------------------- /config/arm/chips/stm32f100/chip.cfg: -------------------------------------------------------------------------------- 1 | # Chip configuration for ARM stm32f100. 2 | 3 | # Copyright (C) 2013-2014 Embecosm Limited and the University of Bristol 4 | 5 | # Contributor James Pallister 6 | 7 | # This file is part of BEEBS 8 | 9 | # This program is free software; you can redistribute it and/or modify it 10 | # under the terms of the GNU General Public License as published by the Free 11 | # Software Foundation; either version 3 of the License, or (at your option) 12 | # any later version. 13 | 14 | # This program is distributed in the hope that it will be useful, but WITHOUT 15 | # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 16 | # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for 17 | # more details. 18 | 19 | # You should have received a copy of the GNU General Public License along with 20 | # this program. If not, see . 21 | 22 | # This file should be suitable for sourcing by configure 23 | 24 | chipdir=`readlink -m $srcdir/config/$arch/chips/$chip/` 25 | 26 | export CHIP_CFLAGS="--static -mthumb -mcpu=cortex-m3" 27 | export CHIP_LDFLAGS="-T $chipdir/chip.ld -Wl,--gc-sections -Wl,--start-group -lc -lgcc -lnosys -Wl,--end-group" 28 | -------------------------------------------------------------------------------- /config/arm/chips/stm32f100/chipsupport.c: -------------------------------------------------------------------------------- 1 | /* Copyright (C) 2014 Embecosm Limited and University of Bristol 2 | 3 | Contributor James Pallister 4 | 5 | This file is part of the Bristol/Embecosm Embedded Benchmark Suite. 6 | 7 | This program is free software: you can redistribute it and/or modify 8 | it under the terms of the GNU General Public License as published by 9 | the Free Software Foundation, either version 3 of the License, or 10 | (at your option) any later version. 11 | 12 | This program is distributed in the hope that it will be useful, 13 | but WITHOUT ANY WARRANTY; without even the implied warranty of 14 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 | GNU General Public License for more details. 16 | 17 | You should have received a copy of the GNU General Public License 18 | along with this program. If not, see . */ 19 | 20 | #include 21 | 22 | // This file is needed to copy the initialised data from flash to RAM 23 | 24 | extern unsigned char __data_start__; 25 | extern unsigned char __data_end__; 26 | extern unsigned char _data_loadaddr; 27 | 28 | extern unsigned char __bss_start__; 29 | extern unsigned char __bss_end__; 30 | 31 | void software_init_hook() 32 | { 33 | memcpy(&__data_start__, &_data_loadaddr, 34 | (unsigned)&__data_end__ - (unsigned)&__data_start__); 35 | } 36 | 37 | -------------------------------------------------------------------------------- /config/arm/chips/stm32l053/chip.cfg: -------------------------------------------------------------------------------- 1 | # Chip configuration for ARM stm32f051. 2 | 3 | # Copyright (C) 2013-2014 Embecosm Limited and the University of Bristol 4 | 5 | # Contributor James Pallister 6 | 7 | # This file is part of BEEBS 8 | 9 | # This program is free software; you can redistribute it and/or modify it 10 | # under the terms of the GNU General Public License as published by the Free 11 | # Software Foundation; either version 3 of the License, or (at your option) 12 | # any later version. 13 | 14 | # This program is distributed in the hope that it will be useful, but WITHOUT 15 | # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 16 | # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for 17 | # more details. 18 | 19 | # You should have received a copy of the GNU General Public License along with 20 | # this program. If not, see . 21 | 22 | # This file should be suitable for sourcing by configure 23 | 24 | chipdir=`readlink -m $srcdir/config/$arch/chips/$chip/` 25 | 26 | export CHIP_CFLAGS="--static -mthumb -mcpu=cortex-m0plus" 27 | export CHIP_LDFLAGS="-T $chipdir/chip.ld -Wl,--gc-sections -Wl,--start-group -lc -lgcc -lnosys -Wl,--end-group" 28 | -------------------------------------------------------------------------------- /config/arm/chips/stm32l053/chipsupport.c: -------------------------------------------------------------------------------- 1 | /* Copyright (C) 2014 Embecosm Limited and University of Bristol 2 | 3 | Contributor James Pallister 4 | 5 | This file is part of the Bristol/Embecosm Embedded Benchmark Suite. 6 | 7 | This program is free software: you can redistribute it and/or modify 8 | it under the terms of the GNU General Public License as published by 9 | the Free Software Foundation, either version 3 of the License, or 10 | (at your option) any later version. 11 | 12 | This program is distributed in the hope that it will be useful, 13 | but WITHOUT ANY WARRANTY; without even the implied warranty of 14 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 | GNU General Public License for more details. 16 | 17 | You should have received a copy of the GNU General Public License 18 | along with this program. If not, see . */ 19 | 20 | #include 21 | 22 | // This file is needed to copy the initialised data from flash to RAM 23 | 24 | extern unsigned char __data_start__; 25 | extern unsigned char __data_end__; 26 | extern unsigned char _data_loadaddr; 27 | 28 | extern unsigned char __bss_start__; 29 | extern unsigned char __bss_end__; 30 | 31 | void software_init_hook() 32 | { 33 | memcpy(&__data_start__, &_data_loadaddr, 34 | (unsigned)&__data_end__ - (unsigned)&__data_start__); 35 | } 36 | 37 | -------------------------------------------------------------------------------- /config/arm/chips/tm4c123g/chip.cfg: -------------------------------------------------------------------------------- 1 | # Chip configuration for ARM tm4c123g. 2 | 3 | # Copyright (C) 2018-2019 Technical University - Sofia 4 | 5 | # Contributor Lubomir Bogdanov 6 | 7 | # This file is part of BEEBS 8 | 9 | # This program is free software; you can redistribute it and/or modify it 10 | # under the terms of the GNU General Public License as published by the Free 11 | # Software Foundation; either version 3 of the License, or (at your option) 12 | # any later version. 13 | 14 | # This program is distributed in the hope that it will be useful, but WITHOUT 15 | # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 16 | # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for 17 | # more details. 18 | 19 | # You should have received a copy of the GNU General Public License along with 20 | # this program. If not, see . 21 | 22 | # This file should be suitable for sourcing by configure 23 | 24 | chipdir=`readlink -m $srcdir/config/$arch/chips/$chip/` 25 | 26 | export CHIP_CFLAGS="--static -mcpu=cortex-m4 -march=armv7e-m -mthumb -O0 -g -gdwarf-3 -gstrict-dwarf" 27 | export CHIP_LDFLAGS="-T $chipdir/chip.ld -Wl,--start-group -lc -specs=nano.specs -specs=nosys.specs -nostartfiles -Wl,--end-group" 28 | -------------------------------------------------------------------------------- /config/avr/boards/shrimp/boardsupport.c: -------------------------------------------------------------------------------- 1 | /* Copyright (C) 2014 Embecosm Limited and University of Bristol 2 | 3 | Contributor James Pallister 4 | 5 | This file is part of the Bristol/Embecosm Embedded Benchmark Suite. 6 | 7 | This program is free software: you can redistribute it and/or modify 8 | it under the terms of the GNU General Public License as published by 9 | the Free Software Foundation, either version 3 of the License, or 10 | (at your option) any later version. 11 | 12 | This program is distributed in the hope that it will be useful, 13 | but WITHOUT ANY WARRANTY; without even the implied warranty of 14 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 | GNU General Public License for more details. 16 | 17 | You should have received a copy of the GNU General Public License 18 | along with this program. If not, see . */ 19 | 20 | #include 21 | #include 22 | 23 | void initialise_board() 24 | { 25 | PIN_INIT(C, 0); 26 | } 27 | 28 | void start_trigger() 29 | { 30 | PIN_SET(C, 0); 31 | } 32 | 33 | void stop_trigger() 34 | { 35 | PIN_CLEAR(C, 0); 36 | } 37 | -------------------------------------------------------------------------------- /config/avr/boards/shrimp/calibration: -------------------------------------------------------------------------------- 1 | // Copyright (C) 2014 Embecosm Limited and University of Bristol 2 | 3 | // Contributor James Pallister 4 | 5 | // This file is part of the Bristol/Embecosm Embedded Benchmark Suite. 6 | 7 | // This program is free software: you can redistribute it and/or modify 8 | // it under the terms of the GNU General Public License as published by 9 | // the Free Software Foundation, either version 3 of the License, or 10 | // (at your option) any later version. 11 | 12 | // This program is distributed in the hope that it will be useful, 13 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 14 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 | // GNU General Public License for more details. 16 | 17 | // You should have received a copy of the GNU General Public License 18 | // along with this program. If not, see . 19 | 20 | // Scaling factors per benchmark 21 | 22 | 2dfir 0 23 | crc32 2 24 | -------------------------------------------------------------------------------- /config/avr/boards/xmegaa3buxplained/boardsupport.c: -------------------------------------------------------------------------------- 1 | /* Copyright (C) 2014 Embecosm Limited and University of Bristol 2 | 3 | Contributor James Pallister 4 | 5 | This file is part of the Bristol/Embecosm Embedded Benchmark Suite. 6 | 7 | This program is free software: you can redistribute it and/or modify 8 | it under the terms of the GNU General Public License as published by 9 | the Free Software Foundation, either version 3 of the License, or 10 | (at your option) any later version. 11 | 12 | This program is distributed in the hope that it will be useful, 13 | but WITHOUT ANY WARRANTY; without even the implied warranty of 14 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 | GNU General Public License for more details. 16 | 17 | You should have received a copy of the GNU General Public License 18 | along with this program. If not, see . */ 19 | 20 | #include 21 | #include 22 | #include 23 | 24 | void initialise_board() 25 | { 26 | PROTECTED_WRITE(OSC_CTRL, 0x3); 27 | while((OSC_STATUS & 2) == 0); 28 | PROTECTED_WRITE(CLK_PSCTRL, 0xC); 29 | PROTECTED_WRITE(CLK_CTRL, 0x1); 30 | PIN_INIT(A, 0); 31 | } 32 | 33 | void start_trigger() 34 | { 35 | PIN_SET(A, 0); 36 | } 37 | 38 | void stop_trigger() 39 | { 40 | PIN_CLEAR(A, 0); 41 | } 42 | -------------------------------------------------------------------------------- /config/avr/boards/xmegaa3buxplained/calibration: -------------------------------------------------------------------------------- 1 | 2dfir 4 2 | adpcm 5 3 | aha-compress 6 4 | aha-mont64 7 5 | blowfish 12 6 | bubblesort 8 7 | cnt 4 8 | compress 3 9 | cover 2 10 | crc 2 11 | crc32 8 12 | ctl-stack 5 13 | ctl-string 4 14 | ctl-vector 5 15 | cubic 7 16 | dhrystone 0 17 | dijkstra 10 18 | dtoa 5 19 | duff 1 20 | edn 8 21 | expint 6 22 | fac 1 23 | fasta 12 24 | fdct 4 25 | fft 5 26 | fir 11 27 | frac 12 28 | huffbench 10 29 | insertsort 1 30 | jfdctint 4 31 | levenshtein 7 32 | lms 11 33 | ludcmp 4 34 | matmult-int 10 35 | matmult-float 8 36 | mergesort 10 37 | miniz 12 38 | minver 4 39 | nbody 10 40 | ndes 7 41 | nettle-arcfour 6 42 | nettle-cast128 2 43 | nettle-des 3 44 | nettle-md5 3 45 | newlib-exp 3 46 | newlib-log 3 47 | newlib-sqrt 4 48 | ns 5 49 | nsichneu 4 50 | picojpeg 11 51 | prime 7 52 | qrduino 10 53 | qsort 0 54 | qurt 3 55 | recursion 2 56 | rijndael 12 57 | select 2 58 | sglib-arraybinsearch 5 59 | sglib-arrayheapsort 6 60 | sglib-arrayquicksort 5 61 | sglib-dllist 6 62 | sglib-hashtable 6 63 | sglib-listinsertsort 7 64 | sglib-listsort 6 65 | sglib-queue 7 66 | sglib-rbtree 7 67 | slre 6 68 | stringsearch1 4 69 | strstr 1 70 | sqrt 10 71 | st 7 72 | statemate 0 73 | stb_perlin 9 74 | trio-snprintf 5 75 | trio-sscanf 5 76 | ud 4 77 | wikisort 12 78 | whetstone 10 79 | bs 0 80 | fibcall 0 81 | janne_complex 0 82 | lcdnum 0 83 | newlib-mod 0 84 | sha 12 85 | tarai 0 86 | -------------------------------------------------------------------------------- /config/avr/chips/atmega328p/chipsupport.h: -------------------------------------------------------------------------------- 1 | /* Chip support for AVR atmega328p. 2 | 3 | Copyright (C) 2014 Embecosm Limited and the University of Bristol 4 | 5 | Contributor Pierre Langlois 6 | 7 | This file is part of BEEBS 8 | 9 | This program is free software; you can redistribute it and/or modify it 10 | under the terms of the GNU General Public License as published by the Free 11 | Software Foundation; either version 3 of the License, or (at your option) 12 | any later version. 13 | 14 | This program is distributed in the hope that it will be useful, but WITHOUT 15 | ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 16 | FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for 17 | more details. 18 | 19 | You should have received a copy of the GNU General Public License along with 20 | this program. If not, see . */ 21 | 22 | #ifndef CHIPSUPPORT_H 23 | #define CHIPSUPPORT_H 24 | 25 | #define PIN_INIT(port, number) \ 26 | DDR ## port |= _BV(DD ## port ## number); \ 27 | PORT ## port &= ~_BV(PORT ## port ## number); 28 | 29 | #define PIN_SET(port, number) \ 30 | PORT ## port |= _BV(PORT ## port ## number); 31 | 32 | #define PIN_CLEAR(port, number) \ 33 | PORT ## port &= ~_BV(PORT ## port ## number); 34 | 35 | #endif 36 | -------------------------------------------------------------------------------- /config/avr/chips/atxmega256a3bu/chip.cfg: -------------------------------------------------------------------------------- 1 | # Chip configuration for the Atmel ATXMEGA256A3BU 2 | 3 | # Copyright (C) 2013-2014 Embecosm Limited and the University of Bristol 4 | # Copyright (C) 2018 Embecosm Limited 5 | 6 | # Contributor James Pallister 7 | # Contributor Jeremy Bennett 8 | 9 | # This file is part of BEEBS 10 | 11 | # This program is free software; you can redistribute it and/or modify it 12 | # under the terms of the GNU General Public License as published by the Free 13 | # Software Foundation; either version 3 of the License, or (at your option) 14 | # any later version. 15 | 16 | # This program is distributed in the hope that it will be useful, but WITHOUT 17 | # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 18 | # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for 19 | # more details. 20 | 21 | # You should have received a copy of the GNU General Public License along with 22 | # this program. If not, see . 23 | # avr-libc does not fully support c99 so configure does not set -std=gnu99 24 | # automatically. 25 | 26 | export CHIP_CFLAGS="-std=gnu99 -mmcu=atxmega256a3" 27 | 28 | # Benchmarks to exclude 29 | 30 | benchmark_miniz=false 31 | -------------------------------------------------------------------------------- /config/avr/chips/atxmega256a3bu/chipsupport.h: -------------------------------------------------------------------------------- 1 | /* Chip support for AVR atxmega256a3bu. 2 | 3 | Copyright (C) 2014 Embecosm Limited and the University of Bristol 4 | 5 | Contributor James Pallister 6 | 7 | This file is part of BEEBS 8 | 9 | This program is free software; you can redistribute it and/or modify it 10 | under the terms of the GNU General Public License as published by the Free 11 | Software Foundation; either version 3 of the License, or (at your option) 12 | any later version. 13 | 14 | This program is distributed in the hope that it will be useful, but WITHOUT 15 | ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 16 | FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for 17 | more details. 18 | 19 | You should have received a copy of the GNU General Public License along with 20 | this program. If not, see . */ 21 | 22 | #ifndef CHIPSUPPORT_H 23 | #define CHIPSUPPORT_H 24 | 25 | #define PIN_INIT(port, number) \ 26 | PORT ## port . OUTCLR |= (1 << number); \ 27 | PORT ## port . DIRSET |= (1 << number); 28 | 29 | #define PIN_SET(port, number) \ 30 | PORT ## port . OUTSET |= (1 << number); 31 | 32 | #define PIN_CLEAR(port, number) \ 33 | PORT ## port . OUTCLR |= (1 << number); 34 | 35 | #endif 36 | -------------------------------------------------------------------------------- /config/default.exp: -------------------------------------------------------------------------------- 1 | # Copyright (C) 2014 Embecosm Limited. 2 | 3 | # Contributor Pierre Langlois 4 | 5 | # This program is free software; you can redistribute it and/or modify it 6 | # under the terms of the GNU General Public License as published by the Free 7 | # Software Foundation; either version 3 of the License, or (at your option) 8 | # any later version. 9 | 10 | # This program is distributed in the hope that it will be useful, but WITHOUT 11 | # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 12 | # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for 13 | # more details. 14 | 15 | # You should have received a copy of the GNU General Public License along 16 | # with this program. If not, see . 17 | 18 | load_lib "standard.exp" 19 | -------------------------------------------------------------------------------- /config/riscv32/boards/generic/boardsupport.c: -------------------------------------------------------------------------------- 1 | /* Generic RISC-V board support - no special functionality for measurement. 2 | 3 | Copyright (C) 2019 Embecosm Limited and University of Bristol 4 | 5 | Contributor Graham Markall 6 | 7 | This file is part of the Bristol/Embecosm Embedded Benchmark Suite. 8 | 9 | This program is free software: you can redistribute it and/or modify 10 | it under the terms of the GNU General Public License as published by 11 | the Free Software Foundation, either version 3 of the License, or 12 | (at your option) any later version. 13 | 14 | This program is distributed in the hope that it will be useful, 15 | but WITHOUT ANY WARRANTY; without even the implied warranty of 16 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 17 | GNU General Public License for more details. 18 | 19 | You should have received a copy of the GNU General Public License 20 | along with this program. If not, see . */ 21 | 22 | #include 23 | 24 | void initialise_board() 25 | { 26 | } 27 | 28 | void start_trigger() 29 | { 30 | } 31 | 32 | void stop_trigger() 33 | { 34 | } 35 | 36 | 37 | -------------------------------------------------------------------------------- /config/riscv32/boards/generic/boardsupport.h: -------------------------------------------------------------------------------- 1 | /* Generic RISC-V board support - no special functionality for measurement. 2 | 3 | Copyright (C) 2019 Embecosm Limited and University of Bristol 4 | 5 | Contributor Graham Markall 6 | 7 | This file is part of the Bristol/Embecosm Embedded Benchmark Suite. 8 | 9 | This program is free software: you can redistribute it and/or modify 10 | it under the terms of the GNU General Public License as published by 11 | the Free Software Foundation, either version 3 of the License, or 12 | (at your option) any later version. 13 | 14 | This program is distributed in the hope that it will be useful, 15 | but WITHOUT ANY WARRANTY; without even the implied warranty of 16 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 17 | GNU General Public License for more details. 18 | 19 | You should have received a copy of the GNU General Public License 20 | along with this program. If not, see . */ 21 | 22 | #define BOARD_REPEAT_FACTOR 32 23 | -------------------------------------------------------------------------------- /config/riscv32/boards/picorv32verilator/boardsupport.c: -------------------------------------------------------------------------------- 1 | /* Copyright (C) 2017 Embecosm Limited and University of Bristol 2 | 3 | Contributor Graham Markall 4 | 5 | This file is part of the Bristol/Embecosm Embedded Benchmark Suite. 6 | 7 | This program is free software: you can redistribute it and/or modify 8 | it under the terms of the GNU General Public License as published by 9 | the Free Software Foundation, either version 3 of the License, or 10 | (at your option) any later version. 11 | 12 | This program is distributed in the hope that it will be useful, 13 | but WITHOUT ANY WARRANTY; without even the implied warranty of 14 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 | GNU General Public License for more details. 16 | 17 | You should have received a copy of the GNU General Public License 18 | along with this program. If not, see . */ 19 | 20 | #include 21 | 22 | void initialise_board() 23 | { 24 | asm volatile ("li a0, 0" : : : "a0"); 25 | } 26 | 27 | void start_trigger() 28 | { 29 | // Use 91 as a syscall to print the clock at the start trigger 30 | register long a7 asm("a7") = 91; 31 | asm volatile ("ecall" : : "r"(a7) ); 32 | } 33 | 34 | void stop_trigger() 35 | { 36 | // Use 92 as a syscall to print the clock at the stop trigger 37 | register long a7 asm("a7") = 92; 38 | asm volatile ("ecall" : : "r"(a7) ); 39 | } 40 | 41 | 42 | -------------------------------------------------------------------------------- /config/riscv32/boards/picorv32verilator/boardsupport.h: -------------------------------------------------------------------------------- 1 | /* Copyright (C) 2017 Embecosm Limited and University of Bristol 2 | 3 | Contributor Graham Markall 4 | 5 | This file is part of the Bristol/Embecosm Embedded Benchmark Suite. 6 | 7 | This program is free software: you can redistribute it and/or modify 8 | it under the terms of the GNU General Public License as published by 9 | the Free Software Foundation, either version 3 of the License, or 10 | (at your option) any later version. 11 | 12 | This program is distributed in the hope that it will be useful, 13 | but WITHOUT ANY WARRANTY; without even the implied warranty of 14 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 | GNU General Public License for more details. 16 | 17 | You should have received a copy of the GNU General Public License 18 | along with this program. If not, see . */ 19 | 20 | #define BOARD_REPEAT_FACTOR 32 21 | -------------------------------------------------------------------------------- /config/riscv32/boards/ri5cyverilator/boardsupport.c: -------------------------------------------------------------------------------- 1 | /* Copyright (C) 2017 Embecosm Limited and University of Bristol 2 | 3 | Contributor Graham Markall 4 | 5 | This file is part of the Bristol/Embecosm Embedded Benchmark Suite. 6 | 7 | This program is free software: you can redistribute it and/or modify 8 | it under the terms of the GNU General Public License as published by 9 | the Free Software Foundation, either version 3 of the License, or 10 | (at your option) any later version. 11 | 12 | This program is distributed in the hope that it will be useful, 13 | but WITHOUT ANY WARRANTY; without even the implied warranty of 14 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 | GNU General Public License for more details. 16 | 17 | You should have received a copy of the GNU General Public License 18 | along with this program. If not, see . */ 19 | 20 | #include 21 | 22 | void initialise_board() 23 | { 24 | asm volatile ("li a0, 0" : : : "a0"); 25 | } 26 | 27 | void start_trigger() 28 | { 29 | asm volatile ("li a0, 0" : : : "a0"); 30 | } 31 | 32 | void stop_trigger() 33 | { 34 | asm volatile ("li a0, 0" : : : "a0"); 35 | } 36 | 37 | 38 | -------------------------------------------------------------------------------- /config/riscv32/boards/ri5cyverilator/boardsupport.h: -------------------------------------------------------------------------------- 1 | /* Copyright (C) 2017 Embecosm Limited and University of Bristol 2 | 3 | Contributor Graham Markall 4 | 5 | This file is part of the Bristol/Embecosm Embedded Benchmark Suite. 6 | 7 | This program is free software: you can redistribute it and/or modify 8 | it under the terms of the GNU General Public License as published by 9 | the Free Software Foundation, either version 3 of the License, or 10 | (at your option) any later version. 11 | 12 | This program is distributed in the hope that it will be useful, 13 | but WITHOUT ANY WARRANTY; without even the implied warranty of 14 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 | GNU General Public License for more details. 16 | 17 | You should have received a copy of the GNU General Public License 18 | along with this program. If not, see . */ 19 | 20 | #define BOARD_REPEAT_FACTOR 32 21 | -------------------------------------------------------------------------------- /config/riscv32/chips/compare-baseline/chip.cfg: -------------------------------------------------------------------------------- 1 | # Chip configuration for Baseline RISC-V Configuration 2 | 3 | # Copyright (C) 2019 Embecosm Limited and the University of Bristol 4 | 5 | # Contributor Graham Markall 6 | 7 | # This file is part of BEEBS 8 | 9 | # This program is free software; you can redistribute it and/or modify it 10 | # under the terms of the GNU General Public License as published by the Free 11 | # Software Foundation; either version 3 of the License, or (at your option) 12 | # any later version. 13 | 14 | # This program is distributed in the hope that it will be useful, but WITHOUT 15 | # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 16 | # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for 17 | # more details. 18 | 19 | # You should have received a copy of the GNU General Public License along with 20 | # this program. If not, see . 21 | 22 | export CHIP_CFLAGS="-Os -march=rv32imc -fdata-sections -ffunction-sections -Wl,-gc-sections" 23 | -------------------------------------------------------------------------------- /config/riscv32/chips/compare-baseline/chipsupport.c: -------------------------------------------------------------------------------- 1 | /* Chip support for Baseline RISC-V configuration 2 | 3 | Copyright (C) 2019 Embecosm Limited and the University of Bristol 4 | 5 | Contributor Graham Markall 6 | 7 | This file is part of BEEBS 8 | 9 | This program is free software; you can redistribute it and/or modify it 10 | under the terms of the GNU General Public License as published by the Free 11 | Software Foundation; either version 3 of the License, or (at your option) 12 | any later version. 13 | 14 | This program is distributed in the hope that it will be useful, but WITHOUT 15 | ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 16 | FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for 17 | more details. 18 | 19 | You should have received a copy of the GNU General Public License along with 20 | this program. If not, see . */ 21 | 22 | #include "chipsupport.h" 23 | -------------------------------------------------------------------------------- /config/riscv32/chips/compare-baseline/chipsupport.h: -------------------------------------------------------------------------------- 1 | /* Chip support for Baseline RISC-V configuration 2 | 3 | Copyright (C) 2019 Embecosm Limited and the University of Bristol 4 | 5 | Contributor Graham Markall 6 | 7 | This file is part of BEEBS 8 | 9 | This program is free software; you can redistribute it and/or modify it 10 | under the terms of the GNU General Public License as published by the Free 11 | Software Foundation; either version 3 of the License, or (at your option) 12 | any later version. 13 | 14 | This program is distributed in the hope that it will be useful, but WITHOUT 15 | ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 16 | FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for 17 | more details. 18 | 19 | You should have received a copy of the GNU General Public License along with 20 | this program. If not, see . */ 21 | 22 | #ifndef CHIPSUPPORT_H 23 | #define CHIPSUPPORT_H 24 | 25 | /* Nothing here. */ 26 | 27 | #endif 28 | -------------------------------------------------------------------------------- /config/riscv32/chips/compare-nocrt/chip.cfg: -------------------------------------------------------------------------------- 1 | # Chip configuration for No-CRT RISC-V Configuration 2 | 3 | # Copyright (C) 2019 Embecosm Limited and the University of Bristol 4 | 5 | # Contributor Graham Markall 6 | 7 | # This file is part of BEEBS 8 | 9 | # This program is free software; you can redistribute it and/or modify it 10 | # under the terms of the GNU General Public License as published by the Free 11 | # Software Foundation; either version 3 of the License, or (at your option) 12 | # any later version. 13 | 14 | # This program is distributed in the hope that it will be useful, but WITHOUT 15 | # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 16 | # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for 17 | # more details. 18 | 19 | # You should have received a copy of the GNU General Public License along with 20 | # this program. If not, see . 21 | 22 | export CHIP_CFLAGS="-Os -march=rv32imc -fdata-sections -ffunction-sections -Wl,-gc-sections -nostartfiles" 23 | 24 | USE_DUMMY_CRT0=yes 25 | -------------------------------------------------------------------------------- /config/riscv32/chips/compare-nocrt/chipsupport.c: -------------------------------------------------------------------------------- 1 | /* Chip support for No-CRT RISC-V configuration 2 | 3 | Copyright (C) 2019 Embecosm Limited and the University of Bristol 4 | 5 | Contributor Graham Markall 6 | 7 | This file is part of BEEBS 8 | 9 | This program is free software; you can redistribute it and/or modify it 10 | under the terms of the GNU General Public License as published by the Free 11 | Software Foundation; either version 3 of the License, or (at your option) 12 | any later version. 13 | 14 | This program is distributed in the hope that it will be useful, but WITHOUT 15 | ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 16 | FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for 17 | more details. 18 | 19 | You should have received a copy of the GNU General Public License along with 20 | this program. If not, see . */ 21 | 22 | #include "chipsupport.h" 23 | -------------------------------------------------------------------------------- /config/riscv32/chips/compare-nocrt/chipsupport.h: -------------------------------------------------------------------------------- 1 | /* Chip support for No-CRT RISC-V configuration 2 | 3 | Copyright (C) 2019 Embecosm Limited and the University of Bristol 4 | 5 | Contributor Graham Markall 6 | 7 | This file is part of BEEBS 8 | 9 | This program is free software; you can redistribute it and/or modify it 10 | under the terms of the GNU General Public License as published by the Free 11 | Software Foundation; either version 3 of the License, or (at your option) 12 | any later version. 13 | 14 | This program is distributed in the hope that it will be useful, but WITHOUT 15 | ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 16 | FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for 17 | more details. 18 | 19 | You should have received a copy of the GNU General Public License along with 20 | this program. If not, see . */ 21 | 22 | #ifndef CHIPSUPPORT_H 23 | #define CHIPSUPPORT_H 24 | 25 | /* Nothing here. */ 26 | 27 | #endif 28 | -------------------------------------------------------------------------------- /config/riscv32/chips/compare-nolibc-nolibgcc-nolibm/chip.cfg: -------------------------------------------------------------------------------- 1 | # Chip configuration for No-LibC-No-LibGCC RISC-V Configuration 2 | 3 | # Copyright (C) 2019 Embecosm Limited and the University of Bristol 4 | 5 | # Contributor Graham Markall 6 | 7 | # This file is part of BEEBS 8 | 9 | # This program is free software; you can redistribute it and/or modify it 10 | # under the terms of the GNU General Public License as published by the Free 11 | # Software Foundation; either version 3 of the License, or (at your option) 12 | # any later version. 13 | 14 | # This program is distributed in the hope that it will be useful, but WITHOUT 15 | # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 16 | # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for 17 | # more details. 18 | 19 | # You should have received a copy of the GNU General Public License along with 20 | # this program. If not, see . 21 | 22 | export CHIP_CFLAGS="-Os -march=rv32imc -fdata-sections -ffunction-sections -Wl,-gc-sections -nostartfiles -nostdlib" 23 | 24 | 25 | USE_DUMMY_CRT0=yes 26 | USE_DUMMY_LIBC=yes 27 | USE_DUMMY_LIBGCC=yes 28 | USE_DUMMY_LIBM=yes 29 | -------------------------------------------------------------------------------- /config/riscv32/chips/compare-nolibc-nolibgcc-nolibm/chipsupport.c: -------------------------------------------------------------------------------- 1 | /* Chip support for No-LibC-NoLibGCC RISC-V configuration 2 | 3 | Copyright (C) 2019 Embecosm Limited and the University of Bristol 4 | 5 | Contributor Graham Markall 6 | 7 | This file is part of BEEBS 8 | 9 | This program is free software; you can redistribute it and/or modify it 10 | under the terms of the GNU General Public License as published by the Free 11 | Software Foundation; either version 3 of the License, or (at your option) 12 | any later version. 13 | 14 | This program is distributed in the hope that it will be useful, but WITHOUT 15 | ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 16 | FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for 17 | more details. 18 | 19 | You should have received a copy of the GNU General Public License along with 20 | this program. If not, see . */ 21 | 22 | #include "chipsupport.h" 23 | -------------------------------------------------------------------------------- /config/riscv32/chips/compare-nolibc-nolibgcc-nolibm/chipsupport.h: -------------------------------------------------------------------------------- 1 | /* Chip support for No-LibC-NoLibGCC RISC-V configuration 2 | 3 | Copyright (C) 2019 Embecosm Limited and the University of Bristol 4 | 5 | Contributor Graham Markall 6 | 7 | This file is part of BEEBS 8 | 9 | This program is free software; you can redistribute it and/or modify it 10 | under the terms of the GNU General Public License as published by the Free 11 | Software Foundation; either version 3 of the License, or (at your option) 12 | any later version. 13 | 14 | This program is distributed in the hope that it will be useful, but WITHOUT 15 | ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 16 | FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for 17 | more details. 18 | 19 | You should have received a copy of the GNU General Public License along with 20 | this program. If not, see . */ 21 | 22 | #ifndef CHIPSUPPORT_H 23 | #define CHIPSUPPORT_H 24 | 25 | /* Nothing here. */ 26 | 27 | #endif 28 | -------------------------------------------------------------------------------- /config/riscv32/chips/compare-nolibc-nolibgcc/chip.cfg: -------------------------------------------------------------------------------- 1 | # Chip configuration for No-LibC-No-LibGCC RISC-V Configuration 2 | 3 | # Copyright (C) 2019 Embecosm Limited and the University of Bristol 4 | 5 | # Contributor Graham Markall 6 | 7 | # This file is part of BEEBS 8 | 9 | # This program is free software; you can redistribute it and/or modify it 10 | # under the terms of the GNU General Public License as published by the Free 11 | # Software Foundation; either version 3 of the License, or (at your option) 12 | # any later version. 13 | 14 | # This program is distributed in the hope that it will be useful, but WITHOUT 15 | # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 16 | # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for 17 | # more details. 18 | 19 | # You should have received a copy of the GNU General Public License along with 20 | # this program. If not, see . 21 | 22 | export CHIP_CFLAGS="-Os -march=rv32imc -fdata-sections -ffunction-sections -Wl,-gc-sections -nostartfiles -nostdlib" 23 | 24 | 25 | USE_DUMMY_CRT0=yes 26 | USE_DUMMY_LIBC=yes 27 | USE_DUMMY_LIBGCC=yes 28 | -------------------------------------------------------------------------------- /config/riscv32/chips/compare-nolibc-nolibgcc/chipsupport.c: -------------------------------------------------------------------------------- 1 | /* Chip support for No-LibC-NoLibGCC RISC-V configuration 2 | 3 | Copyright (C) 2019 Embecosm Limited and the University of Bristol 4 | 5 | Contributor Graham Markall 6 | 7 | This file is part of BEEBS 8 | 9 | This program is free software; you can redistribute it and/or modify it 10 | under the terms of the GNU General Public License as published by the Free 11 | Software Foundation; either version 3 of the License, or (at your option) 12 | any later version. 13 | 14 | This program is distributed in the hope that it will be useful, but WITHOUT 15 | ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 16 | FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for 17 | more details. 18 | 19 | You should have received a copy of the GNU General Public License along with 20 | this program. If not, see . */ 21 | 22 | #include "chipsupport.h" 23 | -------------------------------------------------------------------------------- /config/riscv32/chips/compare-nolibc-nolibgcc/chipsupport.h: -------------------------------------------------------------------------------- 1 | /* Chip support for No-LibC-NoLibGCC RISC-V configuration 2 | 3 | Copyright (C) 2019 Embecosm Limited and the University of Bristol 4 | 5 | Contributor Graham Markall 6 | 7 | This file is part of BEEBS 8 | 9 | This program is free software; you can redistribute it and/or modify it 10 | under the terms of the GNU General Public License as published by the Free 11 | Software Foundation; either version 3 of the License, or (at your option) 12 | any later version. 13 | 14 | This program is distributed in the hope that it will be useful, but WITHOUT 15 | ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 16 | FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for 17 | more details. 18 | 19 | You should have received a copy of the GNU General Public License along with 20 | this program. If not, see . */ 21 | 22 | #ifndef CHIPSUPPORT_H 23 | #define CHIPSUPPORT_H 24 | 25 | /* Nothing here. */ 26 | 27 | #endif 28 | -------------------------------------------------------------------------------- /config/riscv32/chips/compare-nolibc/chip.cfg: -------------------------------------------------------------------------------- 1 | # Chip configuration for No-LibC RISC-V Configuration 2 | 3 | # Copyright (C) 2019 Embecosm Limited and the University of Bristol 4 | 5 | # Contributor Graham Markall 6 | 7 | # This file is part of BEEBS 8 | 9 | # This program is free software; you can redistribute it and/or modify it 10 | # under the terms of the GNU General Public License as published by the Free 11 | # Software Foundation; either version 3 of the License, or (at your option) 12 | # any later version. 13 | 14 | # This program is distributed in the hope that it will be useful, but WITHOUT 15 | # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 16 | # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for 17 | # more details. 18 | 19 | # You should have received a copy of the GNU General Public License along with 20 | # this program. If not, see . 21 | 22 | export CHIP_CFLAGS="-Os -march=rv32imc -fdata-sections -ffunction-sections -Wl,-gc-sections -nostartfiles -nostdlib -lgcc" 23 | 24 | USE_DUMMY_CRT0=yes 25 | USE_DUMMY_LIBC=yes 26 | -------------------------------------------------------------------------------- /config/riscv32/chips/compare-nolibc/chipsupport.c: -------------------------------------------------------------------------------- 1 | /* Chip support for No-LibC RISC-V configuration 2 | 3 | Copyright (C) 2019 Embecosm Limited and the University of Bristol 4 | 5 | Contributor Graham Markall 6 | 7 | This file is part of BEEBS 8 | 9 | This program is free software; you can redistribute it and/or modify it 10 | under the terms of the GNU General Public License as published by the Free 11 | Software Foundation; either version 3 of the License, or (at your option) 12 | any later version. 13 | 14 | This program is distributed in the hope that it will be useful, but WITHOUT 15 | ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 16 | FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for 17 | more details. 18 | 19 | You should have received a copy of the GNU General Public License along with 20 | this program. If not, see . */ 21 | 22 | #include "chipsupport.h" 23 | -------------------------------------------------------------------------------- /config/riscv32/chips/compare-nolibc/chipsupport.h: -------------------------------------------------------------------------------- 1 | /* Chip support for No-LibC RISC-V configuration 2 | 3 | Copyright (C) 2019 Embecosm Limited and the University of Bristol 4 | 5 | Contributor Graham Markall 6 | 7 | This file is part of BEEBS 8 | 9 | This program is free software; you can redistribute it and/or modify it 10 | under the terms of the GNU General Public License as published by the Free 11 | Software Foundation; either version 3 of the License, or (at your option) 12 | any later version. 13 | 14 | This program is distributed in the hope that it will be useful, but WITHOUT 15 | ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 16 | FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for 17 | more details. 18 | 19 | You should have received a copy of the GNU General Public License along with 20 | this program. If not, see . */ 21 | 22 | #ifndef CHIPSUPPORT_H 23 | #define CHIPSUPPORT_H 24 | 25 | /* Nothing here. */ 26 | 27 | #endif 28 | -------------------------------------------------------------------------------- /config/riscv32/chips/picorv32/chip.cfg: -------------------------------------------------------------------------------- 1 | # Chip configuration for PicoRV32 2 | 3 | # Copyright (C) 2017 Embecosm Limited and the University of Bristol 4 | 5 | # Contributor Graham Markall 6 | 7 | # This file is part of BEEBS 8 | 9 | # This program is free software; you can redistribute it and/or modify it 10 | # under the terms of the GNU General Public License as published by the Free 11 | # Software Foundation; either version 3 of the License, or (at your option) 12 | # any later version. 13 | 14 | # This program is distributed in the hope that it will be useful, but WITHOUT 15 | # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 16 | # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for 17 | # more details. 18 | 19 | # You should have received a copy of the GNU General Public License along with 20 | # this program. If not, see . 21 | 22 | chipdir=`readlink -m $srcdir/config/$arch/chips/$chip/` 23 | 24 | export CHIP_CFLAGS="-march=rv32i" 25 | export CHIP_LDFLAGS="-T $chipdir/picorv32.ld -specs=$chipdir/picorv32.spec" 26 | -------------------------------------------------------------------------------- /config/riscv32/chips/picorv32/chipsupport.c: -------------------------------------------------------------------------------- 1 | /* Chip support for Picorv32 2 | 3 | Copyright (C) 2017 Embecosm Limited and the University of Bristol 4 | 5 | Contributor Graham Markall 6 | 7 | This file is part of BEEBS 8 | 9 | This program is free software; you can redistribute it and/or modify it 10 | under the terms of the GNU General Public License as published by the Free 11 | Software Foundation; either version 3 of the License, or (at your option) 12 | any later version. 13 | 14 | This program is distributed in the hope that it will be useful, but WITHOUT 15 | ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 16 | FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for 17 | more details. 18 | 19 | You should have received a copy of the GNU General Public License along with 20 | this program. If not, see . */ 21 | 22 | #include "chipsupport.h" 23 | -------------------------------------------------------------------------------- /config/riscv32/chips/picorv32/chipsupport.h: -------------------------------------------------------------------------------- 1 | /* Chip support for Picorv32 2 | 3 | Copyright (C) 2017 Embecosm Limited and the University of Bristol 4 | 5 | Contributor Graham Markall 6 | 7 | This file is part of BEEBS 8 | 9 | This program is free software; you can redistribute it and/or modify it 10 | under the terms of the GNU General Public License as published by the Free 11 | Software Foundation; either version 3 of the License, or (at your option) 12 | any later version. 13 | 14 | This program is distributed in the hope that it will be useful, but WITHOUT 15 | ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 16 | FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for 17 | more details. 18 | 19 | You should have received a copy of the GNU General Public License along with 20 | this program. If not, see . */ 21 | 22 | #ifndef CHIPSUPPORT_H 23 | #define CHIPSUPPORT_H 24 | 25 | /* Nothing here. */ 26 | 27 | #endif 28 | -------------------------------------------------------------------------------- /config/riscv32/chips/picorv32/picorv32.spec: -------------------------------------------------------------------------------- 1 | *startfile: crt0%O%s crtbegin%O%s 2 | -------------------------------------------------------------------------------- /config/riscv32/chips/ri5cy/chip.cfg: -------------------------------------------------------------------------------- 1 | # Chip configuration for RI5CY 2 | 3 | # Copyright (C) 2017 Embecosm Limited and the University of Bristol 4 | 5 | # Contributor Graham Markall 6 | 7 | # This file is part of BEEBS 8 | 9 | # This program is free software; you can redistribute it and/or modify it 10 | # under the terms of the GNU General Public License as published by the Free 11 | # Software Foundation; either version 3 of the License, or (at your option) 12 | # any later version. 13 | 14 | # This program is distributed in the hope that it will be useful, but WITHOUT 15 | # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 16 | # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for 17 | # more details. 18 | 19 | # You should have received a copy of the GNU General Public License along with 20 | # this program. If not, see . 21 | 22 | export CHIP_CFLAGS="-march=rv32i" 23 | -------------------------------------------------------------------------------- /config/riscv32/chips/ri5cy/chipsupport.c: -------------------------------------------------------------------------------- 1 | /* Chip support for RI5CY 2 | 3 | Copyright (C) 2017 Embecosm Limited and the University of Bristol 4 | 5 | Contributor Graham Markall 6 | 7 | This file is part of BEEBS 8 | 9 | This program is free software; you can redistribute it and/or modify it 10 | under the terms of the GNU General Public License as published by the Free 11 | Software Foundation; either version 3 of the License, or (at your option) 12 | any later version. 13 | 14 | This program is distributed in the hope that it will be useful, but WITHOUT 15 | ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 16 | FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for 17 | more details. 18 | 19 | You should have received a copy of the GNU General Public License along with 20 | this program. If not, see . */ 21 | 22 | #include "chipsupport.h" 23 | -------------------------------------------------------------------------------- /config/riscv32/chips/ri5cy/chipsupport.h: -------------------------------------------------------------------------------- 1 | /* Chip support for RI5CY 2 | 3 | Copyright (C) 2017 Embecosm Limited and the University of Bristol 4 | 5 | Contributor Graham Markall 6 | 7 | This file is part of BEEBS 8 | 9 | This program is free software; you can redistribute it and/or modify it 10 | under the terms of the GNU General Public License as published by the Free 11 | Software Foundation; either version 3 of the License, or (at your option) 12 | any later version. 13 | 14 | This program is distributed in the hope that it will be useful, but WITHOUT 15 | ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 16 | FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for 17 | more details. 18 | 19 | You should have received a copy of the GNU General Public License along with 20 | this program. If not, see . */ 21 | 22 | #ifndef CHIPSUPPORT_H 23 | #define CHIPSUPPORT_H 24 | 25 | /* Nothing here. */ 26 | 27 | #endif 28 | -------------------------------------------------------------------------------- /config/riscv64/boards/none/boardsupport.c: -------------------------------------------------------------------------------- 1 | /* Copyright (C) 2014 Embecosm Limited and University of Bristol 2 | 3 | Contributor James Pallister 4 | 5 | This file is part of the Bristol/Embecosm Embedded Benchmark Suite. 6 | 7 | This program is free software: you can redistribute it and/or modify 8 | it under the terms of the GNU General Public License as published by 9 | the Free Software Foundation, either version 3 of the License, or 10 | (at your option) any later version. 11 | 12 | This program is distributed in the hope that it will be useful, 13 | but WITHOUT ANY WARRANTY; without even the implied warranty of 14 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 | GNU General Public License for more details. 16 | 17 | You should have received a copy of the GNU General Public License 18 | along with this program. If not, see . */ 19 | 20 | #include 21 | 22 | void initialise_board() 23 | { 24 | } 25 | 26 | void start_trigger() 27 | { 28 | } 29 | 30 | void stop_trigger() 31 | { 32 | } 33 | 34 | 35 | -------------------------------------------------------------------------------- /config/riscv64/chips/generic/chip.cfg: -------------------------------------------------------------------------------- 1 | # Chip configuration for generic x86-64. 2 | 3 | # Copyright (C) 2013-2014 Embecosm Limited and the University of Bristol 4 | 5 | # Contributor Andrew Burgess 6 | 7 | # This file is part of BEEBS 8 | 9 | # This program is free software; you can redistribute it and/or modify it 10 | # under the terms of the GNU General Public License as published by the Free 11 | # Software Foundation; either version 3 of the License, or (at your option) 12 | # any later version. 13 | 14 | # This program is distributed in the hope that it will be useful, but WITHOUT 15 | # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 16 | # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for 17 | # more details. 18 | 19 | # You should have received a copy of the GNU General Public License along with 20 | # this program. If not, see . 21 | 22 | export CHIP_CFLAGS="-std=gnu99" 23 | -------------------------------------------------------------------------------- /config/riscv64/chips/generic/chipsupport.c: -------------------------------------------------------------------------------- 1 | /* Chip support for generic x86-64. 2 | 3 | Copyright (C) 2014 Embecosm Limited and the University of Bristol 4 | 5 | Contributor Andrew Burgess 6 | 7 | This file is part of BEEBS 8 | 9 | This program is free software; you can redistribute it and/or modify it 10 | under the terms of the GNU General Public License as published by the Free 11 | Software Foundation; either version 3 of the License, or (at your option) 12 | any later version. 13 | 14 | This program is distributed in the hope that it will be useful, but WITHOUT 15 | ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 16 | FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for 17 | more details. 18 | 19 | You should have received a copy of the GNU General Public License along with 20 | this program. If not, see . */ 21 | 22 | #include "chipsupport.h" 23 | -------------------------------------------------------------------------------- /config/riscv64/chips/generic/chipsupport.h: -------------------------------------------------------------------------------- 1 | /* Chip support for generic x86-64. 2 | 3 | Copyright (C) 2014 Embecosm Limited and the University of Bristol 4 | 5 | Contributor Andrew Burgess 6 | 7 | This file is part of BEEBS 8 | 9 | This program is free software; you can redistribute it and/or modify it 10 | under the terms of the GNU General Public License as published by the Free 11 | Software Foundation; either version 3 of the License, or (at your option) 12 | any later version. 13 | 14 | This program is distributed in the hope that it will be useful, but WITHOUT 15 | ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 16 | FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for 17 | more details. 18 | 19 | You should have received a copy of the GNU General Public License along with 20 | this program. If not, see . */ 21 | 22 | #ifndef CHIPSUPPORT_H 23 | #define CHIPSUPPORT_H 24 | 25 | /* Nothing here. */ 26 | 27 | #endif 28 | -------------------------------------------------------------------------------- /config/x86_64/boards/none/boardsupport.c: -------------------------------------------------------------------------------- 1 | /* Copyright (C) 2014 Embecosm Limited and University of Bristol 2 | 3 | Contributor James Pallister 4 | 5 | This file is part of the Bristol/Embecosm Embedded Benchmark Suite. 6 | 7 | This program is free software: you can redistribute it and/or modify 8 | it under the terms of the GNU General Public License as published by 9 | the Free Software Foundation, either version 3 of the License, or 10 | (at your option) any later version. 11 | 12 | This program is distributed in the hope that it will be useful, 13 | but WITHOUT ANY WARRANTY; without even the implied warranty of 14 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 | GNU General Public License for more details. 16 | 17 | You should have received a copy of the GNU General Public License 18 | along with this program. If not, see . */ 19 | 20 | #include 21 | 22 | void initialise_board() 23 | { 24 | } 25 | 26 | void start_trigger() 27 | { 28 | } 29 | 30 | void stop_trigger() 31 | { 32 | } 33 | 34 | 35 | -------------------------------------------------------------------------------- /config/x86_64/chips/generic/chip.cfg: -------------------------------------------------------------------------------- 1 | # Chip configuration for generic x86-64. 2 | 3 | # Copyright (C) 2013-2014 Embecosm Limited and the University of Bristol 4 | 5 | # Contributor Andrew Burgess 6 | 7 | # This file is part of BEEBS 8 | 9 | # This program is free software; you can redistribute it and/or modify it 10 | # under the terms of the GNU General Public License as published by the Free 11 | # Software Foundation; either version 3 of the License, or (at your option) 12 | # any later version. 13 | 14 | # This program is distributed in the hope that it will be useful, but WITHOUT 15 | # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 16 | # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for 17 | # more details. 18 | 19 | # You should have received a copy of the GNU General Public License along with 20 | # this program. If not, see . 21 | 22 | export CHIP_CFLAGS="-std=gnu99" 23 | -------------------------------------------------------------------------------- /config/x86_64/chips/generic/chipsupport.c: -------------------------------------------------------------------------------- 1 | /* Chip support for generic x86-64. 2 | 3 | Copyright (C) 2014 Embecosm Limited and the University of Bristol 4 | 5 | Contributor Andrew Burgess 6 | 7 | This file is part of BEEBS 8 | 9 | This program is free software; you can redistribute it and/or modify it 10 | under the terms of the GNU General Public License as published by the Free 11 | Software Foundation; either version 3 of the License, or (at your option) 12 | any later version. 13 | 14 | This program is distributed in the hope that it will be useful, but WITHOUT 15 | ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 16 | FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for 17 | more details. 18 | 19 | You should have received a copy of the GNU General Public License along with 20 | this program. If not, see . */ 21 | 22 | #include "chipsupport.h" 23 | -------------------------------------------------------------------------------- /config/x86_64/chips/generic/chipsupport.h: -------------------------------------------------------------------------------- 1 | /* Chip support for generic x86-64. 2 | 3 | Copyright (C) 2014 Embecosm Limited and the University of Bristol 4 | 5 | Contributor Andrew Burgess 6 | 7 | This file is part of BEEBS 8 | 9 | This program is free software; you can redistribute it and/or modify it 10 | under the terms of the GNU General Public License as published by the Free 11 | Software Foundation; either version 3 of the License, or (at your option) 12 | any later version. 13 | 14 | This program is distributed in the hope that it will be useful, but WITHOUT 15 | ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 16 | FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for 17 | more details. 18 | 19 | You should have received a copy of the GNU General Public License along with 20 | this program. If not, see . */ 21 | 22 | #ifndef CHIPSUPPORT_H 23 | #define CHIPSUPPORT_H 24 | 25 | /* Nothing here. */ 26 | 27 | #endif 28 | -------------------------------------------------------------------------------- /doc/.gitignore: -------------------------------------------------------------------------------- 1 | # Stamp file created as part of the 2 | # documentation process. 3 | stamp-vti 4 | # Generated info page 5 | beebs.info 6 | -------------------------------------------------------------------------------- /doc/Makefile.am: -------------------------------------------------------------------------------- 1 | # Makefile.am -- Documentation automake configuration file 2 | # 3 | # Copyright (C) 2009, 2013 Embecosm Limited 4 | # 5 | # Contributor Jeremy Bennett 6 | # 7 | # This file is part of the Atmel AVR GDB server 8 | # 9 | # This program is free software; you can redistribute it and/or modify it 10 | # under the terms of the GNU General Public License as published by the Free 11 | # Software Foundation; either version 3 of the License, or (at your option) 12 | # any later version. 13 | # 14 | # This program is distributed in the hope that it will be useful, but WITHOUT 15 | # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 16 | # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for 17 | # more details. 18 | # 19 | # You should have received a copy of the GNU General Public License along 20 | # with this program. If not, see . 21 | 22 | 23 | info_TEXINFOS = beebs.texi 24 | 25 | # Included files in the texinfo source 26 | beebs_TEXINFOS = config.texi \ 27 | fdl-1.2.texi \ 28 | version.texi 29 | -------------------------------------------------------------------------------- /doc/config.texi: -------------------------------------------------------------------------------- 1 | @c BEEBS Manual configuration file. 2 | @c 3 | @c Copyright (C) 2014 Embecosm Limited 4 | @c Copyright (C) 2014 University of Bristol 5 | @c 6 | @c Contributor Jeremy Bennett 7 | @c 8 | @c This file is part of BEEBS 9 | @c 10 | @c This program is free software; you can redistribute it and/or modify it 11 | @c under the terms of the GNU General Public License as published by the Free 12 | @c Software Foundation; either version 3 of the License, or (at your option) 13 | @c any later version. 14 | @c 15 | @c This program is distributed in the hope that it will be useful, but WITHOUT 16 | @c ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 17 | @c FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for 18 | @c more details. 19 | @c 20 | @c You should have received a copy of the GNU General Public License along 21 | @c with this program. If not, see . 22 | @c 23 | @c ---------------------------------------------------------------------- 24 | @c Parameters 25 | @c 26 | @c Paragraph indentation 27 | @paragraphindent 0 28 | @c ---------------------------------------------------------------------- 29 | @c STRINGS: 30 | @c 31 | @c Name of the benchmark suite 32 | @set BEEBS BEEBS 33 | -------------------------------------------------------------------------------- /doc/version.texi: -------------------------------------------------------------------------------- 1 | @set UPDATED 13 June 2018 2 | @set UPDATED-MONTH June 2018 3 | @set EDITION 3.0 4 | @set VERSION 3.0 5 | -------------------------------------------------------------------------------- /m4/ltversion.m4: -------------------------------------------------------------------------------- 1 | # ltversion.m4 -- version numbers -*- Autoconf -*- 2 | # 3 | # Copyright (C) 2004, 2011-2015 Free Software Foundation, Inc. 4 | # Written by Scott James Remnant, 2004 5 | # 6 | # This file is free software; the Free Software Foundation gives 7 | # unlimited permission to copy and/or distribute it, with or without 8 | # modifications, as long as this notice is preserved. 9 | 10 | # @configure_input@ 11 | 12 | # serial 4179 ltversion.m4 13 | # This file is part of GNU Libtool 14 | 15 | m4_define([LT_PACKAGE_VERSION], [2.4.6]) 16 | m4_define([LT_PACKAGE_REVISION], [2.4.6]) 17 | 18 | AC_DEFUN([LTVERSION_VERSION], 19 | [macro_version='2.4.6' 20 | macro_revision='2.4.6' 21 | _LT_DECL(, macro_version, 0, [Which release of libtool.m4 was used?]) 22 | _LT_DECL(, macro_revision, 0) 23 | ]) 24 | -------------------------------------------------------------------------------- /report-rv32imc/.gitignore: -------------------------------------------------------------------------------- 1 | README.html 2 | README.pdf 3 | -------------------------------------------------------------------------------- /src/aha-compress/.gitignore: -------------------------------------------------------------------------------- 1 | aha-compress 2 | -------------------------------------------------------------------------------- /src/aha-compress/Makefile.am: -------------------------------------------------------------------------------- 1 | # Makefile.am for building a BEEBS benchmark 2 | # 3 | # Copyright (C) 2014 Embecosm Limited and University of Bristol 4 | # 5 | # This file is part of the Bristol/Embecosm Embedded Benchmark Suite. 6 | # 7 | # Contributor: James Pallister 8 | # 9 | # This program is free software: you can redistribute it and/or modify 10 | # it under the terms of the GNU General Public License as published by 11 | # the Free Software Foundation, either version 3 of the License, or 12 | # (at your option) any later version. 13 | # 14 | # This program is distributed in the hope that it will be useful, 15 | # but WITHOUT ANY WARRANTY; without even the implied warranty of 16 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 17 | # GNU General Public License for more details. 18 | # 19 | # You should have received a copy of the GNU General Public License 20 | # along with this program. If not, see . 21 | 22 | if ENABLED_BENCHMARK_AHA_COMPRESS 23 | 24 | include $(top_srcdir)/src/common.mk.am 25 | 26 | bin_PROGRAMS = aha-compress 27 | noinst_LTLIBRARIES = libaha-compress.la 28 | 29 | aha_compress_SOURCES = 30 | 31 | libaha_compress_la_SOURCES = compress_test.c 32 | 33 | aha_compress_LDADD = $(DUMMY_CRT0) \ 34 | $(top_builddir)/support/libsupport.la \ 35 | libaha-compress.la \ 36 | $(DUMMY_LIBC) $(DUMMY_LIBGCC) $(DUMMY_COMPILERRT) 37 | 38 | endif 39 | -------------------------------------------------------------------------------- /src/aha-mont64/.gitignore: -------------------------------------------------------------------------------- 1 | aha-mont64 2 | -------------------------------------------------------------------------------- /src/aha-mont64/Makefile.am: -------------------------------------------------------------------------------- 1 | # Makefile.am for building a BEEBS benchmark 2 | # 3 | # Copyright (C) 2013 Embecosm Limited and University of Bristol 4 | # 5 | # This file is part of the Bristol/Embecosm Embedded Benchmark Suite. 6 | # 7 | # Contributor: James Pallister 8 | # 9 | # This program is free software: you can redistribute it and/or modify 10 | # it under the terms of the GNU General Public License as published by 11 | # the Free Software Foundation, either version 3 of the License, or 12 | # (at your option) any later version. 13 | # 14 | # This program is distributed in the hope that it will be useful, 15 | # but WITHOUT ANY WARRANTY; without even the implied warranty of 16 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 17 | # GNU General Public License for more details. 18 | # 19 | # You should have received a copy of the GNU General Public License 20 | # along with this program. If not, see . 21 | 22 | # SPDX-License-Identifier: GPL-3.0-or-later 23 | 24 | if ENABLED_BENCHMARK_AHA_MONT64 25 | 26 | include $(top_srcdir)/src/common.mk.am 27 | 28 | bin_PROGRAMS = aha-mont64 29 | noinst_LTLIBRARIES = libaha-mont64.la 30 | 31 | aha_mont64_SOURCES = 32 | 33 | libaha_mont64_la_SOURCES = mont64.c 34 | 35 | aha_mont64_LDADD = $(DUMMY_CRT0) \ 36 | $(top_builddir)/support/libsupport.la \ 37 | libaha-mont64.la \ 38 | $(DUMMY_LIBC) $(DUMMY_LIBGCC) $(DUMMY_COMPILERRT) 39 | 40 | endif 41 | -------------------------------------------------------------------------------- /src/bs/.gitignore: -------------------------------------------------------------------------------- 1 | bs 2 | -------------------------------------------------------------------------------- /src/bs/Makefile.am: -------------------------------------------------------------------------------- 1 | # Makefile.am for building bs 2 | # 3 | # Copyright (C) 2013 Embecosm Limited and University of Bristol 4 | # 5 | # This file is part of the Bristol/Embecosm Embedded Benchmark Suite. 6 | # 7 | # Contributor: James Pallister 8 | # 9 | # This program is free software: you can redistribute it and/or modify 10 | # it under the terms of the GNU General Public License as published by 11 | # the Free Software Foundation, either version 3 of the License, or 12 | # (at your option) any later version. 13 | # 14 | # This program is distributed in the hope that it will be useful, 15 | # but WITHOUT ANY WARRANTY; without even the implied warranty of 16 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 17 | # GNU General Public License for more details. 18 | # 19 | # You should have received a copy of the GNU General Public License 20 | # along with this program. If not, see . 21 | 22 | # SPDX-License-Identifier: GPL-3.0-or-later 23 | 24 | if ENABLED_BENCHMARK_BS 25 | 26 | include $(top_srcdir)/src/common.mk.am 27 | 28 | bin_PROGRAMS = bs 29 | noinst_LTLIBRARIES = libbs.la 30 | 31 | bs_SOURCES = 32 | 33 | libbs_la_SOURCES = libbs.c 34 | 35 | bs_LDADD = $(DUMMY_CRT0) \ 36 | $(top_builddir)/support/libsupport.la \ 37 | libbs.la \ 38 | $(DUMMY_LIBC) $(DUMMY_LIBGCC) $(DUMMY_COMPILERRT) 39 | 40 | endif 41 | -------------------------------------------------------------------------------- /src/bubblesort/.gitignore: -------------------------------------------------------------------------------- 1 | bubblesort 2 | -------------------------------------------------------------------------------- /src/bubblesort/Makefile.am: -------------------------------------------------------------------------------- 1 | # Makefile.am for building bubblesort 2 | # 3 | # Copyright (C) 2013 Embecosm Limited and University of Bristol 4 | # 5 | # This file is part of the Bristol/Embecosm Embedded Benchmark Suite. 6 | # 7 | # Contributor: James Pallister 8 | # 9 | # This program is free software: you can redistribute it and/or modify 10 | # it under the terms of the GNU General Public License as published by 11 | # the Free Software Foundation, either version 3 of the License, or 12 | # (at your option) any later version. 13 | # 14 | # This program is distributed in the hope that it will be useful, 15 | # but WITHOUT ANY WARRANTY; without even the implied warranty of 16 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 17 | # GNU General Public License for more details. 18 | # 19 | # You should have received a copy of the GNU General Public License 20 | # along with this program. If not, see . 21 | 22 | # SPDX-License-Identifier: GPL-3.0-or-later 23 | 24 | if ENABLED_BENCHMARK_BUBBLESORT 25 | 26 | include $(top_srcdir)/src/common.mk.am 27 | 28 | bin_PROGRAMS = bubblesort 29 | noinst_LTLIBRARIES = libbubblesort.la 30 | 31 | bubblesort_SOURCES = 32 | 33 | libbubblesort_la_SOURCES = libbubblesort.c 34 | 35 | bubblesort_LDADD = $(DUMMY_CRT0) \ 36 | $(top_builddir)/support/libsupport.la \ 37 | libbubblesort.la \ 38 | $(DUMMY_LIBC) $(DUMMY_LIBGCC) $(DUMMY_COMPILERRT) 39 | 40 | endif 41 | -------------------------------------------------------------------------------- /src/cnt/.gitignore: -------------------------------------------------------------------------------- 1 | cnt 2 | -------------------------------------------------------------------------------- /src/cnt/Makefile.am: -------------------------------------------------------------------------------- 1 | # Makefile.am for building cnt 2 | # 3 | # Copyright (C) 2013 Embecosm Limited and University of Bristol 4 | # 5 | # This file is part of the Bristol/Embecosm Embedded Benchmark Suite. 6 | # 7 | # Contributor: James Pallister 8 | # 9 | # This program is free software: you can redistribute it and/or modify 10 | # it under the terms of the GNU General Public License as published by 11 | # the Free Software Foundation, either version 3 of the License, or 12 | # (at your option) any later version. 13 | # 14 | # This program is distributed in the hope that it will be useful, 15 | # but WITHOUT ANY WARRANTY; without even the implied warranty of 16 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 17 | # GNU General Public License for more details. 18 | # 19 | # You should have received a copy of the GNU General Public License 20 | # along with this program. If not, see . 21 | 22 | # SPDX-License-Identifier: GPL-3.0-or-later 23 | 24 | if ENABLED_BENCHMARK_CNT 25 | 26 | include $(top_srcdir)/src/common.mk.am 27 | 28 | bin_PROGRAMS = cnt 29 | noinst_LTLIBRARIES = libcnt.la 30 | 31 | cnt_SOURCES = 32 | libcnt_la_SOURCES = cnt.c 33 | 34 | cnt_LDADD = $(DUMMY_CRT0) \ 35 | $(top_builddir)/support/libsupport.la \ 36 | libcnt.la \ 37 | $(DUMMY_LIBC) $(DUMMY_LIBGCC) $(DUMMY_COMPILERRT) 38 | 39 | endif 40 | -------------------------------------------------------------------------------- /src/compress/.gitignore: -------------------------------------------------------------------------------- 1 | compress 2 | -------------------------------------------------------------------------------- /src/cover/.gitignore: -------------------------------------------------------------------------------- 1 | cover 2 | -------------------------------------------------------------------------------- /src/cover/Makefile.am: -------------------------------------------------------------------------------- 1 | # Makefile.am for building a BEEBS benchmark 2 | # 3 | # Copyright (C) 2014 Embecosm Limited and University of Bristol 4 | # 5 | # This file is part of the Bristol/Embecosm Embedded Benchmark Suite. 6 | # 7 | # Contributor: James Pallister 8 | # 9 | # This program is free software: you can redistribute it and/or modify 10 | # it under the terms of the GNU General Public License as published by 11 | # the Free Software Foundation, either version 3 of the License, or 12 | # (at your option) any later version. 13 | # 14 | # This program is distributed in the hope that it will be useful, 15 | # but WITHOUT ANY WARRANTY; without even the implied warranty of 16 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 17 | # GNU General Public License for more details. 18 | # 19 | # You should have received a copy of the GNU General Public License 20 | # along with this program. If not, see . 21 | 22 | # SPDX-License-Identifier: GPL-3.0-or-later 23 | 24 | if ENABLED_BENCHMARK_COVER 25 | 26 | include $(top_srcdir)/src/common.mk.am 27 | 28 | bin_PROGRAMS = cover 29 | noinst_LTLIBRARIES = libcover.la 30 | 31 | cover_SOURCES = 32 | libcover_la_SOURCES = libcover.c 33 | 34 | cover_LDADD = $(DUMMY_CRT0) \ 35 | $(top_builddir)/support/libsupport.la \ 36 | libcover.la \ 37 | $(DUMMY_LIBC) $(DUMMY_LIBGCC) $(DUMMY_COMPILERRT) 38 | 39 | 40 | 41 | endif 42 | -------------------------------------------------------------------------------- /src/crc/.gitignore: -------------------------------------------------------------------------------- 1 | crc 2 | -------------------------------------------------------------------------------- /src/crc/Makefile.am: -------------------------------------------------------------------------------- 1 | # Makefile.am for building a BEEBS benchmark 2 | # 3 | # Copyright (C) 2014 Embecosm Limited and University of Bristol 4 | # 5 | # This file is part of the Bristol/Embecosm Embedded Benchmark Suite. 6 | # 7 | # Contributor: James Pallister 8 | # 9 | # This program is free software: you can redistribute it and/or modify 10 | # it under the terms of the GNU General Public License as published by 11 | # the Free Software Foundation, either version 3 of the License, or 12 | # (at your option) any later version. 13 | # 14 | # This program is distributed in the hope that it will be useful, 15 | # but WITHOUT ANY WARRANTY; without even the implied warranty of 16 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 17 | # GNU General Public License for more details. 18 | # 19 | # You should have received a copy of the GNU General Public License 20 | # along with this program. If not, see . 21 | 22 | # SPDX-License-Identifier: GPL-3.0-or-later 23 | 24 | if ENABLED_BENCHMARK_CRC 25 | 26 | include $(top_srcdir)/src/common.mk.am 27 | 28 | bin_PROGRAMS = crc 29 | noinst_LTLIBRARIES = libcrc.la 30 | 31 | crc_SOURCES = 32 | libcrc_la_SOURCES = libcrc.c 33 | 34 | crc_LDADD = $(DUMMY_CRT0) \ 35 | $(top_builddir)/support/libsupport.la \ 36 | libcrc.la \ 37 | $(DUMMY_LIBC) $(DUMMY_LIBGCC) $(DUMMY_COMPILERRT) 38 | 39 | 40 | 41 | endif 42 | -------------------------------------------------------------------------------- /src/crc32/.gitignore: -------------------------------------------------------------------------------- 1 | crc32 2 | -------------------------------------------------------------------------------- /src/crc32/Makefile.am: -------------------------------------------------------------------------------- 1 | # Makefile.am for BEEBS CRC32 test 2 | # 3 | # Copyright (C) 2013 Embecosm Limited and University of Bristol 4 | # 5 | # Contributor Jeremy Bennett 6 | # 7 | # This file is part of the Bristol/Embecosm Embedded Benchmark Suite. 8 | # 9 | # This program is free software: you can redistribute it and/or modify 10 | # it under the terms of the GNU General Public License as published by 11 | # the Free Software Foundation, either version 3 of the License, or 12 | # (at your option) any later version. 13 | # 14 | # This program is distributed in the hope that it will be useful, 15 | # but WITHOUT ANY WARRANTY; without even the implied warranty of 16 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 17 | # GNU General Public License for more details. 18 | # 19 | # You should have received a copy of the GNU General Public License 20 | # along with this program. If not, see . 21 | 22 | # SPDX-License-Identifier: GPL-3.0-or-later 23 | 24 | if ENABLED_BENCHMARK_CRC32 25 | 26 | include $(top_srcdir)/src/common.mk.am 27 | 28 | bin_PROGRAMS = crc32 29 | noinst_LTLIBRARIES = libcrc32.la 30 | 31 | crc32_SOURCES = 32 | 33 | libcrc32_la_SOURCES = crc_32.c 34 | 35 | crc32_LDADD = $(DUMMY_CRT0) \ 36 | $(top_builddir)/support/libsupport.la \ 37 | libcrc32.la \ 38 | $(DUMMY_LIBC) $(DUMMY_LIBGCC) $(DUMMY_COMPILERRT) 39 | 40 | endif 41 | -------------------------------------------------------------------------------- /src/ctl-stack/.gitignore: -------------------------------------------------------------------------------- 1 | ctl-stack 2 | -------------------------------------------------------------------------------- /src/ctl-stack/ctl.c: -------------------------------------------------------------------------------- 1 | ../ctl/ctl.c -------------------------------------------------------------------------------- /src/ctl-stack/ctl.h: -------------------------------------------------------------------------------- 1 | ../ctl/ctl.h -------------------------------------------------------------------------------- /src/ctl-stack/stack.h: -------------------------------------------------------------------------------- 1 | ../ctl/stack.h -------------------------------------------------------------------------------- /src/ctl-string/.gitignore: -------------------------------------------------------------------------------- 1 | ctl-string 2 | -------------------------------------------------------------------------------- /src/ctl-string/Makefile.am: -------------------------------------------------------------------------------- 1 | # Makefile.am for building a BEEBS benchmark 2 | # 3 | # Copyright (C) 2013 Embecosm Limited and University of Bristol 4 | # 5 | # This file is part of the Bristol/Embecosm Embedded Benchmark Suite. 6 | # 7 | # Contributor: James Pallister 8 | # 9 | # This program is free software: you can redistribute it and/or modify 10 | # it under the terms of the GNU General Public License as published by 11 | # the Free Software Foundation, either version 3 of the License, or 12 | # (at your option) any later version. 13 | # 14 | # This program is distributed in the hope that it will be useful, 15 | # but WITHOUT ANY WARRANTY; without even the implied warranty of 16 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 17 | # GNU General Public License for more details. 18 | # 19 | # You should have received a copy of the GNU General Public License 20 | # along with this program. If not, see . 21 | 22 | # SPDX-License-Identifier: GPL-3.0-or-later 23 | 24 | if ENABLED_BENCHMARK_CTL_STRING 25 | 26 | include $(top_srcdir)/src/common.mk.am 27 | 28 | bin_PROGRAMS = ctl-string 29 | noinst_LTLIBRARIES = libctl-string.la 30 | 31 | ctl_string_SOURCES = 32 | libctl_string_la_SOURCES = string.c 33 | 34 | ctl_string_LDADD = $(DUMMY_CRT0) \ 35 | $(top_builddir)/support/libsupport.la \ 36 | libctl-string.la \ 37 | $(DUMMY_LIBC) $(DUMMY_LIBGCC) $(DUMMY_COMPILERRT) 38 | 39 | endif 40 | -------------------------------------------------------------------------------- /src/ctl-vector/.gitignore: -------------------------------------------------------------------------------- 1 | ctl-vector 2 | -------------------------------------------------------------------------------- /src/ctl-vector/ctl.c: -------------------------------------------------------------------------------- 1 | ../ctl/ctl.c -------------------------------------------------------------------------------- /src/ctl-vector/ctl.h: -------------------------------------------------------------------------------- 1 | ../ctl/ctl.h -------------------------------------------------------------------------------- /src/ctl-vector/vector.h: -------------------------------------------------------------------------------- 1 | ../ctl/vector.h -------------------------------------------------------------------------------- /src/ctl/.gitignore: -------------------------------------------------------------------------------- 1 | ctl 2 | -------------------------------------------------------------------------------- /src/ctl/Makefile.am: -------------------------------------------------------------------------------- 1 | # Makefile.am for distributing ctl 2 | # 3 | # Copyright (C) 2013 Embecosm Limited and University of Bristol 4 | # 5 | # This file is part of the Bristol/Embecosm Embedded Benchmark Suite. 6 | # 7 | # Contributor: James Pallister 8 | # 9 | # This program is free software: you can redistribute it and/or modify 10 | # it under the terms of the GNU General Public License as published by 11 | # the Free Software Foundation, either version 3 of the License, or 12 | # (at your option) any later version. 13 | # 14 | # This program is distributed in the hope that it will be useful, 15 | # but WITHOUT ANY WARRANTY; without even the implied warranty of 16 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 17 | # GNU General Public License for more details. 18 | # 19 | # You should have received a copy of the GNU General Public License 20 | # along with this program. If not, see . 21 | 22 | # SPDX-License-Identifier: GPL-3.0-or-later 23 | 24 | # Not a benchmark per se, but the base software for other benchmarks. 25 | 26 | EXTRA_DIST = ctl.c ctl.h stack.h vector.h 27 | -------------------------------------------------------------------------------- /src/cubic/.gitignore: -------------------------------------------------------------------------------- 1 | cubic 2 | -------------------------------------------------------------------------------- /src/cubic/Makefile.am: -------------------------------------------------------------------------------- 1 | # Makefile.am for BEEBS cubic test 2 | # 3 | # Copyright (C) 2013 Embecosm Limited and University of Bristol 4 | # 5 | # Contributor Jeremy Bennett 6 | # 7 | # This file is part of the Bristol/Embecosm Embedded Benchmark Suite. 8 | # 9 | # This program is free software: you can redistribute it and/or modify 10 | # it under the terms of the GNU General Public License as published by 11 | # the Free Software Foundation, either version 3 of the License, or 12 | # (at your option) any later version. 13 | # 14 | # This program is distributed in the hope that it will be useful, 15 | # but WITHOUT ANY WARRANTY; without even the implied warranty of 16 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 17 | # GNU General Public License for more details. 18 | # 19 | # You should have received a copy of the GNU General Public License 20 | # along with this program. If not, see . 21 | 22 | # SPDX-License-Identifier: GPL-3.0-or-later 23 | 24 | if ENABLED_BENCHMARK_CUBIC 25 | 26 | include $(top_srcdir)/src/common.mk.am 27 | 28 | bin_PROGRAMS = cubic 29 | noinst_LTLIBRARIES = libcubic.la 30 | 31 | cubic_SOURCES = 32 | 33 | libcubic_la_SOURCES = libcubic.c basicmath_small.c pi.h snipmath.h sniptype.h 34 | 35 | cubic_LDADD = $(DUMMY_CRT0) \ 36 | $(top_builddir)/support/libsupport.la \ 37 | libcubic.la \ 38 | $(DUMMY_LIBC) $(DUMMY_LIBGCC) $(DUMMY_COMPILERRT) \ 39 | $(LIBM) 40 | endif 41 | -------------------------------------------------------------------------------- /src/cubic/pi.h: -------------------------------------------------------------------------------- 1 | /* BEEBS cubic benchmark 2 | 3 | Contributor: James Pallister 4 | From http://www.snippets.org/. 5 | 6 | This file is part of the Bristol/Embecosm Embedded Benchmark Suite. 7 | 8 | This program is free software: you can redistribute it and/or modify 9 | it under the terms of the GNU General Public License as published by 10 | the Free Software Foundation, either version 3 of the License, or 11 | (at your option) any later version. 12 | 13 | This program is distributed in the hope that it will be useful, 14 | but WITHOUT ANY WARRANTY; without even the implied warranty of 15 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 16 | GNU General Public License for more details. 17 | 18 | You should have received a copy of the GNU General Public License 19 | along with this program. If not, see . */ 20 | 21 | /* +++Date last modified: 05-Jul-1997 */ 22 | 23 | #ifndef PI__H 24 | #define PI__H 25 | 26 | #include 27 | 28 | #ifndef PI 29 | #define PI (4*atan(1)) 30 | #endif 31 | 32 | #endif /* PI__H */ 33 | 34 | /* vim: set ts=3 sw=3 et: */ 35 | -------------------------------------------------------------------------------- /src/cubic/sniptype.h: -------------------------------------------------------------------------------- 1 | /* BEEBS cubic benchmark 2 | 3 | Contributor: James Pallister 4 | From http://www.snippets.org/. 5 | 6 | This file is part of the Bristol/Embecosm Embedded Benchmark Suite. 7 | 8 | This program is free software: you can redistribute it and/or modify 9 | it under the terms of the GNU General Public License as published by 10 | the Free Software Foundation, either version 3 of the License, or 11 | (at your option) any later version. 12 | 13 | This program is distributed in the hope that it will be useful, 14 | but WITHOUT ANY WARRANTY; without even the implied warranty of 15 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 16 | GNU General Public License for more details. 17 | 18 | You should have received a copy of the GNU General Public License 19 | along with this program. If not, see . */ 20 | 21 | /* +++Date last modified: 05-Jul-1997 */ 22 | 23 | /* 24 | ** SNIPTYPE.H - Include file for SNIPPETS data types and commonly used macros 25 | */ 26 | 27 | #ifndef SNIPTYPE__H 28 | #define SNIPTYPE__H 29 | 30 | typedef unsigned char BYTE; 31 | typedef unsigned long DWORD; 32 | typedef unsigned short WORD; 33 | 34 | #endif /* SNIPTYPE__H */ 35 | 36 | /* vim: set ts=3 sw=3 et: */ 37 | -------------------------------------------------------------------------------- /src/dijkstra/.gitignore: -------------------------------------------------------------------------------- 1 | dijkstra 2 | -------------------------------------------------------------------------------- /src/dijkstra/Makefile.am: -------------------------------------------------------------------------------- 1 | # Makefile.am for BEEBS Dijkstra test 2 | # 3 | # Copyright (C) 2013 Embecosm Limited and University of Bristol 4 | # 5 | # Contributor Jeremy Bennett 6 | # 7 | # This file is part of the Bristol/Embecosm Embedded Benchmark Suite. 8 | # 9 | # This program is free software: you can redistribute it and/or modify 10 | # it under the terms of the GNU General Public License as published by 11 | # the Free Software Foundation, either version 3 of the License, or 12 | # (at your option) any later version. 13 | # 14 | # This program is distributed in the hope that it will be useful, 15 | # but WITHOUT ANY WARRANTY; without even the implied warranty of 16 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 17 | # GNU General Public License for more details. 18 | # 19 | # You should have received a copy of the GNU General Public License 20 | # along with this program. If not, see . 21 | 22 | # SPDX-License-Identifier: GPL-3.0-or-later 23 | 24 | if ENABLED_BENCHMARK_DIJKSTRA 25 | 26 | include $(top_srcdir)/src/common.mk.am 27 | 28 | bin_PROGRAMS = dijkstra 29 | noinst_LTLIBRARIES = libdijkstra.la 30 | 31 | dijkstra_SOURCES = 32 | libdijkstra_la_SOURCES = dijkstra_small.c 33 | 34 | dijkstra_LDADD = $(DUMMY_CRT0) \ 35 | $(top_builddir)/support/libsupport.la \ 36 | libdijkstra.la \ 37 | $(DUMMY_LIBC) $(DUMMY_LIBGCC) $(DUMMY_COMPILERRT) 38 | 39 | 40 | 41 | endif 42 | -------------------------------------------------------------------------------- /src/dtoa/.gitignore: -------------------------------------------------------------------------------- 1 | dtoa 2 | -------------------------------------------------------------------------------- /src/dtoa/Makefile.am: -------------------------------------------------------------------------------- 1 | # Makefile.am for building a BEEBS benchmark 2 | # 3 | # Copyright (C) 2013 Embecosm Limited and University of Bristol 4 | # 5 | # This file is part of the Bristol/Embecosm Embedded Benchmark Suite. 6 | # 7 | # Contributor: James Pallister 8 | # 9 | # This program is free software: you can redistribute it and/or modify 10 | # it under the terms of the GNU General Public License as published by 11 | # the Free Software Foundation, either version 3 of the License, or 12 | # (at your option) any later version. 13 | # 14 | # This program is distributed in the hope that it will be useful, 15 | # but WITHOUT ANY WARRANTY; without even the implied warranty of 16 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 17 | # GNU General Public License for more details. 18 | # 19 | # You should have received a copy of the GNU General Public License 20 | # along with this program. If not, see . 21 | 22 | # SPDX-License-Identifier: GPL-3.0-or-later 23 | 24 | if ENABLED_BENCHMARK_DTOA 25 | 26 | include $(top_srcdir)/src/common.mk.am 27 | 28 | bin_PROGRAMS = dtoa 29 | noinst_LTLIBRARIES = libdtoa.la 30 | 31 | dtoa_SOURCES = 32 | libdtoa_la_SOURCES = libdtoa.c 33 | 34 | dtoa_LDADD = $(DUMMY_CRT0) \ 35 | $(top_builddir)/support/libsupport.la \ 36 | libdtoa.la \ 37 | $(DUMMY_LIBC) $(DUMMY_LIBGCC) $(DUMMY_COMPILERRT) 38 | 39 | 40 | 41 | endif 42 | -------------------------------------------------------------------------------- /src/duff/.gitignore: -------------------------------------------------------------------------------- 1 | duff 2 | -------------------------------------------------------------------------------- /src/duff/Makefile.am: -------------------------------------------------------------------------------- 1 | # Makefile.am for building duff 2 | # 3 | # Copyright (C) 2013 Embecosm Limited and University of Bristol 4 | # 5 | # This file is part of the Bristol/Embecosm Embedded Benchmark Suite. 6 | # 7 | # Contributor: James Pallister 8 | # 9 | # This program is free software: you can redistribute it and/or modify 10 | # it under the terms of the GNU General Public License as published by 11 | # the Free Software Foundation, either version 3 of the License, or 12 | # (at your option) any later version. 13 | # 14 | # This program is distributed in the hope that it will be useful, 15 | # but WITHOUT ANY WARRANTY; without even the implied warranty of 16 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 17 | # GNU General Public License for more details. 18 | # 19 | # You should have received a copy of the GNU General Public License 20 | # along with this program. If not, see . 21 | 22 | # SPDX-License-Identifier: GPL-3.0-or-later 23 | 24 | if ENABLED_BENCHMARK_DUFF 25 | 26 | include $(top_srcdir)/src/common.mk.am 27 | 28 | bin_PROGRAMS = duff 29 | noinst_LTLIBRARIES = libduff.la 30 | 31 | duff_SOURCES = 32 | libduff_la_SOURCES = libduff.c 33 | 34 | duff_LDADD = $(DUMMY_CRT0) \ 35 | $(top_builddir)/support/libsupport.la \ 36 | libduff.la \ 37 | $(DUMMY_LIBC) $(DUMMY_LIBGCC) $(DUMMY_COMPILERRT) 38 | 39 | 40 | 41 | endif 42 | -------------------------------------------------------------------------------- /src/edn/.gitignore: -------------------------------------------------------------------------------- 1 | edn 2 | -------------------------------------------------------------------------------- /src/edn/Makefile.am: -------------------------------------------------------------------------------- 1 | # Makefile.am for building edn 2 | # 3 | # Copyright (C) 2013 Embecosm Limited and University of Bristol 4 | # 5 | # This file is part of the Bristol/Embecosm Embedded Benchmark Suite. 6 | # 7 | # Contributor: James Pallister 8 | # 9 | # This program is free software: you can redistribute it and/or modify 10 | # it under the terms of the GNU General Public License as published by 11 | # the Free Software Foundation, either version 3 of the License, or 12 | # (at your option) any later version. 13 | # 14 | # This program is distributed in the hope that it will be useful, 15 | # but WITHOUT ANY WARRANTY; without even the implied warranty of 16 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 17 | # GNU General Public License for more details. 18 | # 19 | # You should have received a copy of the GNU General Public License 20 | # along with this program. If not, see . 21 | 22 | # SPDX-License-Identifier: GPL-3.0-or-later 23 | 24 | if ENABLED_BENCHMARK_EDN 25 | 26 | include $(top_srcdir)/src/common.mk.am 27 | 28 | bin_PROGRAMS = edn 29 | noinst_LTLIBRARIES = libedn.la 30 | 31 | edn_SOURCES = 32 | libedn_la_SOURCES = libedn.c 33 | 34 | edn_LDADD = $(DUMMY_CRT0) \ 35 | $(top_builddir)/support/libsupport.la \ 36 | libedn.la \ 37 | $(DUMMY_LIBC) $(DUMMY_LIBGCC) $(DUMMY_COMPILERRT) 38 | 39 | 40 | 41 | endif 42 | -------------------------------------------------------------------------------- /src/expint/.gitignore: -------------------------------------------------------------------------------- 1 | expint 2 | -------------------------------------------------------------------------------- /src/expint/Makefile.am: -------------------------------------------------------------------------------- 1 | # Makefile.am for building a BEEBS benchmark 2 | # 3 | # Copyright (C) 2014 Embecosm Limited and University of Bristol 4 | # 5 | # This file is part of the Bristol/Embecosm Embedded Benchmark Suite. 6 | # 7 | # Contributor: Pierre Langlois 8 | # 9 | # This program is free software: you can redistribute it and/or modify 10 | # it under the terms of the GNU General Public License as published by 11 | # the Free Software Foundation, either version 3 of the License, or 12 | # (at your option) any later version. 13 | # 14 | # This program is distributed in the hope that it will be useful, 15 | # but WITHOUT ANY WARRANTY; without even the implied warranty of 16 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 17 | # GNU General Public License for more details. 18 | # 19 | # You should have received a copy of the GNU General Public License 20 | # along with this program. If not, see . 21 | 22 | # SPDX-License-Identifier: GPL-3.0-or-later 23 | 24 | if ENABLED_BENCHMARK_EXPINT 25 | 26 | include $(top_srcdir)/src/common.mk.am 27 | 28 | bin_PROGRAMS = expint 29 | noinst_LTLIBRARIES = libexpint.la 30 | 31 | expint_SOURCES = 32 | libexpint_la_SOURCES = libexpint.c 33 | 34 | expint_LDADD = $(DUMMY_CRT0) \ 35 | $(top_builddir)/support/libsupport.la \ 36 | libexpint.la \ 37 | $(DUMMY_LIBC) $(DUMMY_LIBGCC) $(DUMMY_COMPILERRT) 38 | 39 | 40 | 41 | endif 42 | -------------------------------------------------------------------------------- /src/fac/.gitignore: -------------------------------------------------------------------------------- 1 | fac 2 | -------------------------------------------------------------------------------- /src/fac/Makefile.am: -------------------------------------------------------------------------------- 1 | # Makefile.am for building a BEEBS benchmark 2 | # 3 | # Copyright (C) 2014 Embecosm Limited and University of Bristol 4 | # 5 | # This file is part of the Bristol/Embecosm Embedded Benchmark Suite. 6 | # 7 | # Contributor: Pierre Langlois 8 | # 9 | # This program is free software: you can redistribute it and/or modify 10 | # it under the terms of the GNU General Public License as published by 11 | # the Free Software Foundation, either version 3 of the License, or 12 | # (at your option) any later version. 13 | # 14 | # This program is distributed in the hope that it will be useful, 15 | # but WITHOUT ANY WARRANTY; without even the implied warranty of 16 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 17 | # GNU General Public License for more details. 18 | # 19 | # You should have received a copy of the GNU General Public License 20 | # along with this program. If not, see . 21 | 22 | # SPDX-License-Identifier: GPL-3.0-or-later 23 | 24 | if ENABLED_BENCHMARK_FAC 25 | 26 | include $(top_srcdir)/src/common.mk.am 27 | 28 | bin_PROGRAMS = fac 29 | noinst_LTLIBRARIES = libfac.la 30 | 31 | fac_SOURCES = 32 | libfac_la_SOURCES = libfac.c 33 | 34 | fac_LDADD = $(DUMMY_CRT0) \ 35 | $(top_builddir)/support/libsupport.la \ 36 | libfac.la \ 37 | $(DUMMY_LIBC) $(DUMMY_LIBGCC) $(DUMMY_COMPILERRT) 38 | 39 | 40 | 41 | endif 42 | -------------------------------------------------------------------------------- /src/fasta/.gitignore: -------------------------------------------------------------------------------- 1 | fasta 2 | -------------------------------------------------------------------------------- /src/fasta/Makefile.am: -------------------------------------------------------------------------------- 1 | # Makefile.am for building fasta benchmark 2 | # 3 | # Copyright (C) 2013 Embecosm Limited and University of Bristol 4 | # 5 | # This file is part of the Bristol/Embecosm Embedded Benchmark Suite. 6 | # 7 | # Contributor: James Pallister 8 | # 9 | # This program is free software: you can redistribute it and/or modify 10 | # it under the terms of the GNU General Public License as published by 11 | # the Free Software Foundation, either version 3 of the License, or 12 | # (at your option) any later version. 13 | # 14 | # This program is distributed in the hope that it will be useful, 15 | # but WITHOUT ANY WARRANTY; without even the implied warranty of 16 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 17 | # GNU General Public License for more details. 18 | # 19 | # You should have received a copy of the GNU General Public License 20 | # along with this program. If not, see . 21 | 22 | # SPDX-License-Identifier: GPL-3.0-or-later 23 | 24 | if ENABLED_BENCHMARK_FASTA 25 | 26 | include $(top_srcdir)/src/common.mk.am 27 | 28 | bin_PROGRAMS = fasta 29 | noinst_LTLIBRARIES = libfasta.la 30 | 31 | fasta_SOURCES = 32 | libfasta_la_SOURCES = libfasta.c 33 | 34 | fasta_LDADD = $(DUMMY_CRT0) \ 35 | $(top_builddir)/support/libsupport.la \ 36 | libfasta.la \ 37 | $(DUMMY_LIBC) $(DUMMY_LIBGCC) $(DUMMY_COMPILERRT) 38 | 39 | 40 | 41 | endif 42 | -------------------------------------------------------------------------------- /src/fdct/.gitignore: -------------------------------------------------------------------------------- 1 | fdct 2 | -------------------------------------------------------------------------------- /src/fdct/Makefile.am: -------------------------------------------------------------------------------- 1 | # Makefile.am for building a BEEBS benchmark 2 | # 3 | # Copyright (C) 2013-2014 Embecosm Limited and University of Bristol 4 | # 5 | # This file is part of the Bristol/Embecosm Embedded Benchmark Suite. 6 | # 7 | # Contributor: James Pallister 8 | # 9 | # This program is free software: you can redistribute it and/or modify 10 | # it under the terms of the GNU General Public License as published by 11 | # the Free Software Foundation, either version 3 of the License, or 12 | # (at your option) any later version. 13 | # 14 | # This program is distributed in the hope that it will be useful, 15 | # but WITHOUT ANY WARRANTY; without even the implied warranty of 16 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 17 | # GNU General Public License for more details. 18 | # 19 | # You should have received a copy of the GNU General Public License 20 | # along with this program. If not, see . 21 | 22 | # SPDX-License-Identifier: GPL-3.0-or-later 23 | 24 | if ENABLED_BENCHMARK_FDCT 25 | 26 | include $(top_srcdir)/src/common.mk.am 27 | 28 | bin_PROGRAMS = fdct 29 | noinst_LTLIBRARIES = libfdct.la 30 | 31 | fdct_SOURCES = 32 | libfdct_la_SOURCES = libfdct.c 33 | 34 | fdct_LDADD = $(DUMMY_CRT0) \ 35 | $(top_builddir)/support/libsupport.la \ 36 | libfdct.la \ 37 | $(DUMMY_LIBC) $(DUMMY_LIBGCC) $(DUMMY_COMPILERRT) 38 | 39 | 40 | 41 | endif 42 | -------------------------------------------------------------------------------- /src/fibcall/.gitignore: -------------------------------------------------------------------------------- 1 | fibcall 2 | -------------------------------------------------------------------------------- /src/fibcall/Makefile.am: -------------------------------------------------------------------------------- 1 | # Makefile.am for building a BEEBS benchmark 2 | # 3 | # Copyright (C) 2014 Embecosm Limited and University of Bristol 4 | # 5 | # This file is part of the Bristol/Embecosm Embedded Benchmark Suite. 6 | # 7 | # Contributor: James Pallister 8 | # 9 | # This program is free software: you can redistribute it and/or modify 10 | # it under the terms of the GNU General Public License as published by 11 | # the Free Software Foundation, either version 3 of the License, or 12 | # (at your option) any later version. 13 | # 14 | # This program is distributed in the hope that it will be useful, 15 | # but WITHOUT ANY WARRANTY; without even the implied warranty of 16 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 17 | # GNU General Public License for more details. 18 | # 19 | # You should have received a copy of the GNU General Public License 20 | # along with this program. If not, see . 21 | 22 | # SPDX-License-Identifier: GPL-3.0-or-later 23 | 24 | if ENABLED_BENCHMARK_FIBCALL 25 | 26 | include $(top_srcdir)/src/common.mk.am 27 | 28 | bin_PROGRAMS = fibcall 29 | noinst_LTLIBRARIES = libfibcall.la 30 | 31 | fibcall_SOURCES = 32 | libfibcall_la_SOURCES = libfibcall.c 33 | 34 | fibcall_LDADD = $(DUMMY_CRT0) \ 35 | $(top_builddir)/support/libsupport.la \ 36 | libfibcall.la \ 37 | $(DUMMY_LIBC) $(DUMMY_LIBGCC) $(DUMMY_COMPILERRT) 38 | 39 | 40 | 41 | endif 42 | -------------------------------------------------------------------------------- /src/fir/.gitignore: -------------------------------------------------------------------------------- 1 | fir 2 | -------------------------------------------------------------------------------- /src/fir/Makefile.am: -------------------------------------------------------------------------------- 1 | # Makefile.am for building a BEEBS benchmark 2 | # 3 | # Copyright (C) 2014 Embecosm Limited and University of Bristol 4 | # 5 | # This file is part of the Bristol/Embecosm Embedded Benchmark Suite. 6 | # 7 | # Contributor: Pierre Langlois 8 | # 9 | # This program is free software: you can redistribute it and/or modify 10 | # it under the terms of the GNU General Public License as published by 11 | # the Free Software Foundation, either version 3 of the License, or 12 | # (at your option) any later version. 13 | # 14 | # This program is distributed in the hope that it will be useful, 15 | # but WITHOUT ANY WARRANTY; without even the implied warranty of 16 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 17 | # GNU General Public License for more details. 18 | # 19 | # You should have received a copy of the GNU General Public License 20 | # along with this program. If not, see . 21 | 22 | # SPDX-License-Identifier: GPL-3.0-or-later 23 | 24 | if ENABLED_BENCHMARK_FIR 25 | 26 | include $(top_srcdir)/src/common.mk.am 27 | 28 | bin_PROGRAMS = fir 29 | noinst_LTLIBRARIES = libfir.la 30 | 31 | fir_SOURCES = 32 | libfir_la_SOURCES = libfir.c 33 | 34 | fir_LDADD = $(DUMMY_CRT0) \ 35 | $(top_builddir)/support/libsupport.la \ 36 | libfir.la \ 37 | $(DUMMY_LIBC) $(DUMMY_LIBGCC) $(DUMMY_COMPILERRT) 38 | 39 | 40 | 41 | endif 42 | -------------------------------------------------------------------------------- /src/frac/.gitignore: -------------------------------------------------------------------------------- 1 | frac 2 | -------------------------------------------------------------------------------- /src/frac/Makefile.am: -------------------------------------------------------------------------------- 1 | # Makefile.am for building a BEEBS benchmark 2 | # 3 | # Copyright (C) 2013 Embecosm Limited and University of Bristol 4 | # 5 | # This file is part of the Bristol/Embecosm Embedded Benchmark Suite. 6 | # 7 | # Contributor: James Pallister 8 | # 9 | # This program is free software: you can redistribute it and/or modify 10 | # it under the terms of the GNU General Public License as published by 11 | # the Free Software Foundation, either version 3 of the License, or 12 | # (at your option) any later version. 13 | # 14 | # This program is distributed in the hope that it will be useful, 15 | # but WITHOUT ANY WARRANTY; without even the implied warranty of 16 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 17 | # GNU General Public License for more details. 18 | # 19 | # You should have received a copy of the GNU General Public License 20 | # along with this program. If not, see . 21 | 22 | # SPDX-License-Identifier: GPL-3.0-or-later 23 | 24 | if ENABLED_BENCHMARK_FRAC 25 | 26 | include $(top_srcdir)/src/common.mk.am 27 | 28 | bin_PROGRAMS = frac 29 | noinst_LTLIBRARIES = libfrac.la 30 | 31 | frac_SOURCES = 32 | libfrac_la_SOURCES = libfrac.c 33 | 34 | frac_LDADD = $(DUMMY_CRT0) \ 35 | $(top_builddir)/support/libsupport.la \ 36 | libfrac.la \ 37 | $(DUMMY_LIBC) $(DUMMY_LIBGCC) $(DUMMY_COMPILERRT) 38 | 39 | 40 | 41 | endif 42 | -------------------------------------------------------------------------------- /src/huffbench/.gitignore: -------------------------------------------------------------------------------- 1 | huffbench 2 | -------------------------------------------------------------------------------- /src/insertsort/.gitignore: -------------------------------------------------------------------------------- 1 | insertsort 2 | -------------------------------------------------------------------------------- /src/janne_complex/.gitignore: -------------------------------------------------------------------------------- 1 | janne_complex 2 | -------------------------------------------------------------------------------- /src/jfdctint/.gitignore: -------------------------------------------------------------------------------- 1 | jfdctint 2 | -------------------------------------------------------------------------------- /src/jfdctint/Makefile.am: -------------------------------------------------------------------------------- 1 | # Makefile.am for building a BEEBS benchmark 2 | # 3 | # Copyright (C) 2014 Embecosm Limited and University of Bristol 4 | # 5 | # This file is part of the Bristol/Embecosm Embedded Benchmark Suite. 6 | # 7 | # Contributor: Pierre Langlois 8 | # 9 | # This program is free software: you can redistribute it and/or modify 10 | # it under the terms of the GNU General Public License as published by 11 | # the Free Software Foundation, either version 3 of the License, or 12 | # (at your option) any later version. 13 | # 14 | # This program is distributed in the hope that it will be useful, 15 | # but WITHOUT ANY WARRANTY; without even the implied warranty of 16 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 17 | # GNU General Public License for more details. 18 | # 19 | # You should have received a copy of the GNU General Public License 20 | # along with this program. If not, see . 21 | 22 | # SPDX-License-Identifier: GPL-3.0-or-later 23 | 24 | if ENABLED_BENCHMARK_JFDCTINT 25 | 26 | include $(top_srcdir)/src/common.mk.am 27 | 28 | bin_PROGRAMS = jfdctint 29 | noinst_LTLIBRARIES = libjfdctint.la 30 | 31 | jfdctint_SOURCES = 32 | libjfdctint_la_SOURCES = libjfdctint.c 33 | 34 | jfdctint_LDADD = $(DUMMY_CRT0) \ 35 | $(top_builddir)/support/libsupport.la \ 36 | libjfdctint.la \ 37 | $(DUMMY_LIBC) $(DUMMY_LIBGCC) $(DUMMY_COMPILERRT) 38 | 39 | 40 | 41 | endif 42 | -------------------------------------------------------------------------------- /src/lcdnum/.gitignore: -------------------------------------------------------------------------------- 1 | lcdnum 2 | -------------------------------------------------------------------------------- /src/lcdnum/Makefile.am: -------------------------------------------------------------------------------- 1 | # Makefile.am for building a BEEBS benchmark 2 | # 3 | # Copyright (C) 2014 Embecosm Limited and University of Bristol 4 | # 5 | # This file is part of the Bristol/Embecosm Embedded Benchmark Suite. 6 | # 7 | # Contributor: James Pallister 8 | # 9 | # This program is free software: you can redistribute it and/or modify 10 | # it under the terms of the GNU General Public License as published by 11 | # the Free Software Foundation, either version 3 of the License, or 12 | # (at your option) any later version. 13 | # 14 | # This program is distributed in the hope that it will be useful, 15 | # but WITHOUT ANY WARRANTY; without even the implied warranty of 16 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 17 | # GNU General Public License for more details. 18 | # 19 | # You should have received a copy of the GNU General Public License 20 | # along with this program. If not, see . 21 | 22 | # SPDX-License-Identifier: GPL-3.0-or-later 23 | 24 | if ENABLED_BENCHMARK_LCDNUM 25 | 26 | include $(top_srcdir)/src/common.mk.am 27 | 28 | bin_PROGRAMS = lcdnum 29 | noinst_LTLIBRARIES = liblcdnum.la 30 | 31 | lcdnum_SOURCES = 32 | liblcdnum_la_SOURCES = liblcdnum.c 33 | 34 | lcdnum_LDADD = $(DUMMY_CRT0) \ 35 | $(top_builddir)/support/libsupport.la \ 36 | liblcdnum.la \ 37 | $(DUMMY_LIBC) $(DUMMY_LIBGCC) $(DUMMY_COMPILERRT) 38 | 39 | 40 | 41 | endif 42 | -------------------------------------------------------------------------------- /src/levenshtein/.gitignore: -------------------------------------------------------------------------------- 1 | levenshtein 2 | -------------------------------------------------------------------------------- /src/ludcmp/.gitignore: -------------------------------------------------------------------------------- 1 | ludcmp 2 | -------------------------------------------------------------------------------- /src/ludcmp/Makefile.am: -------------------------------------------------------------------------------- 1 | # Makefile.am for building a BEEBS benchmark 2 | # 3 | # Copyright (C) 2014 Embecosm Limited and University of Bristol 4 | # 5 | # This file is part of the Bristol/Embecosm Embedded Benchmark Suite. 6 | # 7 | # Contributor: Pierre Langlois 8 | # 9 | # This program is free software: you can redistribute it and/or modify 10 | # it under the terms of the GNU General Public License as published by 11 | # the Free Software Foundation, either version 3 of the License, or 12 | # (at your option) any later version. 13 | # 14 | # This program is distributed in the hope that it will be useful, 15 | # but WITHOUT ANY WARRANTY; without even the implied warranty of 16 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 17 | # GNU General Public License for more details. 18 | # 19 | # You should have received a copy of the GNU General Public License 20 | # along with this program. If not, see . 21 | 22 | # SPDX-License-Identifier: GPL-3.0-or-later 23 | 24 | if ENABLED_BENCHMARK_LUDCMP 25 | 26 | include $(top_srcdir)/src/common.mk.am 27 | 28 | bin_PROGRAMS = ludcmp 29 | noinst_LTLIBRARIES = libludcmp.la 30 | 31 | ludcmp_SOURCES = 32 | libludcmp_la_SOURCES = libludcmp.c 33 | 34 | ludcmp_LDADD = $(DUMMY_CRT0) \ 35 | $(top_builddir)/support/libsupport.la \ 36 | libludcmp.la \ 37 | $(DUMMY_LIBC) $(DUMMY_LIBGCC) $(DUMMY_COMPILERRT) 38 | 39 | 40 | 41 | endif 42 | -------------------------------------------------------------------------------- /src/matmult-float/.gitignore: -------------------------------------------------------------------------------- 1 | matmult-float 2 | -------------------------------------------------------------------------------- /src/matmult-float/matmult.c: -------------------------------------------------------------------------------- 1 | ../matmult/matmult.c -------------------------------------------------------------------------------- /src/matmult-int/.gitignore: -------------------------------------------------------------------------------- 1 | matmult-int 2 | -------------------------------------------------------------------------------- /src/matmult-int/matmult.c: -------------------------------------------------------------------------------- 1 | ../matmult/matmult.c -------------------------------------------------------------------------------- /src/matmult/.gitignore: -------------------------------------------------------------------------------- 1 | matmult 2 | -------------------------------------------------------------------------------- /src/matmult/Makefile.am: -------------------------------------------------------------------------------- 1 | # Makefile.am for distributing matmult 2 | # 3 | # Copyright (C) 2013 Embecosm Limited and University of Bristol 4 | # 5 | # This file is part of the Bristol/Embecosm Embedded Benchmark Suite. 6 | # 7 | # Contributor: James Pallister 8 | # 9 | # This program is free software: you can redistribute it and/or modify 10 | # it under the terms of the GNU General Public License as published by 11 | # the Free Software Foundation, either version 3 of the License, or 12 | # (at your option) any later version. 13 | # 14 | # This program is distributed in the hope that it will be useful, 15 | # but WITHOUT ANY WARRANTY; without even the implied warranty of 16 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 17 | # GNU General Public License for more details. 18 | # 19 | # You should have received a copy of the GNU General Public License 20 | # along with this program. If not, see . 21 | 22 | # SPDX-License-Identifier: GPL-3.0-or-later 23 | 24 | # Not a benchmark per se, but the base software for other benchmarks. 25 | 26 | EXTRA_DIST = matmult.c 27 | -------------------------------------------------------------------------------- /src/mergesort/.gitignore: -------------------------------------------------------------------------------- 1 | mergesort 2 | -------------------------------------------------------------------------------- /src/miniz/.gitignore: -------------------------------------------------------------------------------- 1 | miniz 2 | -------------------------------------------------------------------------------- /src/miniz/miniz.h: -------------------------------------------------------------------------------- 1 | /* BEEBS miniz benchmark 2 | 3 | This file is part of the Bristol/Embecosm Embedded Benchmark Suite. 4 | 5 | This program is free software: you can redistribute it and/or modify 6 | it under the terms of the GNU General Public License as published by 7 | the Free Software Foundation, either version 3 of the License, or 8 | (at your option) any later version. 9 | 10 | This program is distributed in the hope that it will be useful, 11 | but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 | GNU General Public License for more details. 14 | 15 | You should have received a copy of the GNU General Public License 16 | along with this program. If not, see . */ 17 | 18 | /* For more compatibility with zlib, miniz.c uses unsigned long for 19 | some parameters/struct members. Beware: mz_ulong can be either 32 20 | or 64-bits! */ 21 | typedef unsigned long mz_ulong; 22 | 23 | /* Forward declaration of function: Single-call decompression. 24 | Returns MZ_OK on success, or one of the error codes from 25 | mz_inflate() on failure. */ 26 | int mz_uncompress(unsigned char *pDest, mz_ulong *pDest_len, 27 | const unsigned char *pSource, mz_ulong source_len); 28 | -------------------------------------------------------------------------------- /src/minver/.gitignore: -------------------------------------------------------------------------------- 1 | minver 2 | -------------------------------------------------------------------------------- /src/minver/Makefile.am: -------------------------------------------------------------------------------- 1 | # Makefile.am for building a BEEBS benchmark 2 | # 3 | # Copyright (C) 2014 Embecosm Limited and University of Bristol 4 | # 5 | # This file is part of the Bristol/Embecosm Embedded Benchmark Suite. 6 | # 7 | # Contributor: Pierre Langlois 8 | # 9 | # This program is free software: you can redistribute it and/or modify 10 | # it under the terms of the GNU General Public License as published by 11 | # the Free Software Foundation, either version 3 of the License, or 12 | # (at your option) any later version. 13 | # 14 | # This program is distributed in the hope that it will be useful, 15 | # but WITHOUT ANY WARRANTY; without even the implied warranty of 16 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 17 | # GNU General Public License for more details. 18 | # 19 | # You should have received a copy of the GNU General Public License 20 | # along with this program. If not, see . 21 | 22 | # SPDX-License-Identifier: GPL-3.0-or-later 23 | 24 | if ENABLED_BENCHMARK_MINVER 25 | 26 | include $(top_srcdir)/src/common.mk.am 27 | 28 | bin_PROGRAMS = minver 29 | noinst_LTLIBRARIES = libminver.la 30 | 31 | minver_SOURCES = 32 | libminver_la_SOURCES = libminver.c 33 | 34 | minver_LDADD = $(DUMMY_CRT0) \ 35 | $(top_builddir)/support/libsupport.la \ 36 | libminver.la \ 37 | $(DUMMY_LIBC) $(DUMMY_LIBGCC) $(DUMMY_COMPILERRT) 38 | 39 | 40 | 41 | endif 42 | -------------------------------------------------------------------------------- /src/nbody/.gitignore: -------------------------------------------------------------------------------- 1 | nbody 2 | -------------------------------------------------------------------------------- /src/nbody/Makefile.am: -------------------------------------------------------------------------------- 1 | # Makefile.am for building the nbody benchmark 2 | # 3 | # Copyright (C) 2013 Embecosm Limited and University of Bristol 4 | # 5 | # This file is part of the Bristol/Embecosm Embedded Benchmark Suite. 6 | # 7 | # Contributor: James Pallister 8 | # 9 | # This program is free software: you can redistribute it and/or modify 10 | # it under the terms of the GNU General Public License as published by 11 | # the Free Software Foundation, either version 3 of the License, or 12 | # (at your option) any later version. 13 | # 14 | # This program is distributed in the hope that it will be useful, 15 | # but WITHOUT ANY WARRANTY; without even the implied warranty of 16 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 17 | # GNU General Public License for more details. 18 | # 19 | # You should have received a copy of the GNU General Public License 20 | # along with this program. If not, see . 21 | 22 | # SPDX-License-Identifier: GPL-3.0-or-later 23 | 24 | if ENABLED_BENCHMARK_NBODY 25 | 26 | include $(top_srcdir)/src/common.mk.am 27 | 28 | bin_PROGRAMS = nbody 29 | noinst_LTLIBRARIES = libnbody.la 30 | 31 | nbody_SOURCES = 32 | libnbody_la_SOURCES = nbody.c 33 | 34 | nbody_LDADD = $(DUMMY_CRT0) \ 35 | $(top_builddir)/support/libsupport.la \ 36 | libnbody.la \ 37 | $(DUMMY_LIBC) $(DUMMY_LIBGCC) $(DUMMY_COMPILERRT) \ 38 | $(LIBM) 39 | endif 40 | -------------------------------------------------------------------------------- /src/ndes/.gitignore: -------------------------------------------------------------------------------- 1 | ndes 2 | -------------------------------------------------------------------------------- /src/ndes/Makefile.am: -------------------------------------------------------------------------------- 1 | # Makefile.am for building a BEEBS benchmark 2 | # 3 | # Copyright (C) 2014 Embecosm Limited and University of Bristol 4 | # 5 | # This file is part of the Bristol/Embecosm Embedded Benchmark Suite. 6 | # 7 | # Contributor: Pierre Langlois 8 | # 9 | # This program is free software: you can redistribute it and/or modify 10 | # it under the terms of the GNU General Public License as published by 11 | # the Free Software Foundation, either version 3 of the License, or 12 | # (at your option) any later version. 13 | # 14 | # This program is distributed in the hope that it will be useful, 15 | # but WITHOUT ANY WARRANTY; without even the implied warranty of 16 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 17 | # GNU General Public License for more details. 18 | # 19 | # You should have received a copy of the GNU General Public License 20 | # along with this program. If not, see . 21 | 22 | # SPDX-License-Identifier: GPL-3.0-or-later 23 | 24 | if ENABLED_BENCHMARK_NDES 25 | 26 | include $(top_srcdir)/src/common.mk.am 27 | 28 | bin_PROGRAMS = ndes 29 | noinst_LTLIBRARIES = libndes.la 30 | 31 | ndes_SOURCES = 32 | libndes_la_SOURCES = libndes.c 33 | 34 | ndes_LDADD = $(DUMMY_CRT0) \ 35 | $(top_builddir)/support/libsupport.la \ 36 | libndes.la \ 37 | $(DUMMY_LIBC) $(DUMMY_LIBGCC) $(DUMMY_COMPILERRT) 38 | 39 | 40 | 41 | endif 42 | -------------------------------------------------------------------------------- /src/nettle-aes/.gitignore: -------------------------------------------------------------------------------- 1 | nettle-aes 2 | -------------------------------------------------------------------------------- /src/nettle-aes/Makefile.am: -------------------------------------------------------------------------------- 1 | # Makefile.am for nettle-aes 2 | # 3 | # Copyright (C) 2019 Embecosm Limited and University of Bristol 4 | # 5 | # This file is part of the Bristol/Embecosm Embedded Benchmark Suite. 6 | # 7 | # Contributor: Graham Markall 8 | # 9 | # This program is free software: you can redistribute it and/or modify 10 | # it under the terms of the GNU General Public License as published by 11 | # the Free Software Foundation, either version 3 of the License, or 12 | # (at your option) any later version. 13 | # 14 | # This program is distributed in the hope that it will be useful, 15 | # but WITHOUT ANY WARRANTY; without even the implied warranty of 16 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 17 | # GNU General Public License for more details. 18 | # 19 | # You should have received a copy of the GNU General Public License 20 | # along with this program. If not, see . 21 | 22 | # SPDX-License-Identifier: GPL-3.0-or-later 23 | 24 | if ENABLED_BENCHMARK_NETTLE_AES 25 | 26 | include $(top_srcdir)/src/common.mk.am 27 | 28 | bin_PROGRAMS = nettle-aes 29 | noinst_LTLIBRARIES = libnettle-aes.la 30 | 31 | nettle_aes_SOURCES = 32 | libnettle_aes_la_SOURCES = nettle-aes.c 33 | 34 | nettle_aes_LDADD = $(DUMMY_CRT0) \ 35 | $(top_builddir)/support/libsupport.la \ 36 | libnettle-aes.la \ 37 | $(DUMMY_LIBC) $(DUMMY_LIBGCC) $(DUMMY_COMPILERRT) 38 | 39 | endif 40 | -------------------------------------------------------------------------------- /src/nettle-arcfour/.gitignore: -------------------------------------------------------------------------------- 1 | nettle-arcfour 2 | -------------------------------------------------------------------------------- /src/nettle-cast128/.gitignore: -------------------------------------------------------------------------------- 1 | nettle-cast128 2 | -------------------------------------------------------------------------------- /src/nettle-des/.gitignore: -------------------------------------------------------------------------------- 1 | nettle-des 2 | -------------------------------------------------------------------------------- /src/nettle-md5/.gitignore: -------------------------------------------------------------------------------- 1 | nettle-md5 2 | -------------------------------------------------------------------------------- /src/nettle-md5/Makefile.am: -------------------------------------------------------------------------------- 1 | # Makefile.am for building a BEEBS benchmark 2 | # 3 | # Copyright (C) 2014 Embecosm Limited and University of Bristol 4 | # 5 | # This file is part of the Bristol/Embecosm Embedded Benchmark Suite. 6 | # 7 | # Contributor: Pierre Langlois 8 | # 9 | # This program is free software: you can redistribute it and/or modify 10 | # it under the terms of the GNU General Public License as published by 11 | # the Free Software Foundation, either version 3 of the License, or 12 | # (at your option) any later version. 13 | # 14 | # This program is distributed in the hope that it will be useful, 15 | # but WITHOUT ANY WARRANTY; without even the implied warranty of 16 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 17 | # GNU General Public License for more details. 18 | # 19 | # You should have received a copy of the GNU General Public License 20 | # along with this program. If not, see . 21 | 22 | # SPDX-License-Identifier: GPL-3.0-or-later 23 | 24 | if ENABLED_BENCHMARK_NETTLE_MD5 25 | 26 | include $(top_srcdir)/src/common.mk.am 27 | 28 | bin_PROGRAMS = nettle-md5 29 | noinst_LTLIBRARIES = libnettle-md5.la 30 | 31 | nettle_md5_SOURCES = 32 | libnettle_md5_la_SOURCES = md5.c 33 | 34 | nettle_md5_LDADD = $(DUMMY_CRT0) \ 35 | $(top_builddir)/support/libsupport.la \ 36 | libnettle-md5.la \ 37 | $(DUMMY_LIBC) $(DUMMY_LIBGCC) $(DUMMY_COMPILERRT) 38 | 39 | endif 40 | -------------------------------------------------------------------------------- /src/nettle-sha256/.gitignore: -------------------------------------------------------------------------------- 1 | nettle-sha256 2 | -------------------------------------------------------------------------------- /src/newlib-exp/.gitignore: -------------------------------------------------------------------------------- 1 | newlib-exp 2 | -------------------------------------------------------------------------------- /src/newlib-log/.gitignore: -------------------------------------------------------------------------------- 1 | newlib-log 2 | -------------------------------------------------------------------------------- /src/newlib-mod/.gitignore: -------------------------------------------------------------------------------- 1 | newlib-mod 2 | -------------------------------------------------------------------------------- /src/newlib-sqrt/.gitignore: -------------------------------------------------------------------------------- 1 | newlib-sqrt 2 | -------------------------------------------------------------------------------- /src/ns/.gitignore: -------------------------------------------------------------------------------- 1 | ns 2 | -------------------------------------------------------------------------------- /src/ns/Makefile.am: -------------------------------------------------------------------------------- 1 | # Makefile.am for building a BEEBS benchmark 2 | # 3 | # Copyright (C) 2014 Embecosm Limited and University of Bristol 4 | # 5 | # This file is part of the Bristol/Embecosm Embedded Benchmark Suite. 6 | # 7 | # Contributor: James Pallister 8 | # 9 | # This program is free software: you can redistribute it and/or modify 10 | # it under the terms of the GNU General Public License as published by 11 | # the Free Software Foundation, either version 3 of the License, or 12 | # (at your option) any later version. 13 | # 14 | # This program is distributed in the hope that it will be useful, 15 | # but WITHOUT ANY WARRANTY; without even the implied warranty of 16 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 17 | # GNU General Public License for more details. 18 | # 19 | # You should have received a copy of the GNU General Public License 20 | # along with this program. If not, see . 21 | 22 | # SPDX-License-Identifier: GPL-3.0-or-later 23 | 24 | if ENABLED_BENCHMARK_NS 25 | 26 | include $(top_srcdir)/src/common.mk.am 27 | 28 | bin_PROGRAMS = ns 29 | noinst_LTLIBRARIES = libns.la 30 | 31 | ns_SOURCES = 32 | libns_la_SOURCES = libns.c 33 | 34 | ns_LDADD = $(DUMMY_CRT0) \ 35 | $(top_builddir)/support/libsupport.la \ 36 | libns.la \ 37 | $(DUMMY_LIBC) $(DUMMY_LIBGCC) $(DUMMY_COMPILERRT) 38 | 39 | 40 | 41 | endif 42 | -------------------------------------------------------------------------------- /src/nsichneu/.gitignore: -------------------------------------------------------------------------------- 1 | nsichneu 2 | -------------------------------------------------------------------------------- /src/nsichneu/Makefile.am: -------------------------------------------------------------------------------- 1 | # Makefile.am for building a BEEBS benchmark 2 | # 3 | # Copyright (C) 2014 Embecosm Limited and University of Bristol 4 | # 5 | # This file is part of the Bristol/Embecosm Embedded Benchmark Suite. 6 | # 7 | # Contributor: James Pallister 8 | # 9 | # This program is free software: you can redistribute it and/or modify 10 | # it under the terms of the GNU General Public License as published by 11 | # the Free Software Foundation, either version 3 of the License, or 12 | # (at your option) any later version. 13 | # 14 | # This program is distributed in the hope that it will be useful, 15 | # but WITHOUT ANY WARRANTY; without even the implied warranty of 16 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 17 | # GNU General Public License for more details. 18 | # 19 | # You should have received a copy of the GNU General Public License 20 | # along with this program. If not, see . 21 | 22 | # SPDX-License-Identifier: GPL-3.0-or-later 23 | 24 | if ENABLED_BENCHMARK_NSICHNEU 25 | 26 | include $(top_srcdir)/src/common.mk.am 27 | 28 | bin_PROGRAMS = nsichneu 29 | noinst_LTLIBRARIES = libnsichneu.la 30 | 31 | nsichneu_SOURCES = 32 | libnsichneu_la_SOURCES = libnsichneu.c 33 | 34 | nsichneu_LDADD = $(DUMMY_CRT0) \ 35 | $(top_builddir)/support/libsupport.la \ 36 | libnsichneu.la \ 37 | $(DUMMY_LIBC) $(DUMMY_LIBGCC) $(DUMMY_COMPILERRT) 38 | 39 | 40 | 41 | endif 42 | -------------------------------------------------------------------------------- /src/picojpeg/.gitignore: -------------------------------------------------------------------------------- 1 | picojpeg 2 | -------------------------------------------------------------------------------- /src/prime/.gitignore: -------------------------------------------------------------------------------- 1 | prime 2 | -------------------------------------------------------------------------------- /src/prime/Makefile.am: -------------------------------------------------------------------------------- 1 | # Makefile.am for building a BEEBS benchmark 2 | # 3 | # Copyright (C) 2014 Embecosm Limited and University of Bristol 4 | # 5 | # This file is part of the Bristol/Embecosm Embedded Benchmark Suite. 6 | # 7 | # Contributor: Pierre Langlois 8 | # 9 | # This program is free software: you can redistribute it and/or modify 10 | # it under the terms of the GNU General Public License as published by 11 | # the Free Software Foundation, either version 3 of the License, or 12 | # (at your option) any later version. 13 | # 14 | # This program is distributed in the hope that it will be useful, 15 | # but WITHOUT ANY WARRANTY; without even the implied warranty of 16 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 17 | # GNU General Public License for more details. 18 | # 19 | # You should have received a copy of the GNU General Public License 20 | # along with this program. If not, see . 21 | 22 | # SPDX-License-Identifier: GPL-3.0-or-later 23 | 24 | if ENABLED_BENCHMARK_PRIME 25 | 26 | include $(top_srcdir)/src/common.mk.am 27 | 28 | bin_PROGRAMS = prime 29 | noinst_LTLIBRARIES = libprime.la 30 | 31 | prime_SOURCES = 32 | libprime_la_SOURCES = libprime.c 33 | 34 | prime_LDADD = $(DUMMY_CRT0) \ 35 | $(top_builddir)/support/libsupport.la \ 36 | libprime.la \ 37 | $(DUMMY_LIBC) $(DUMMY_LIBGCC) $(DUMMY_COMPILERRT) 38 | 39 | 40 | 41 | endif 42 | -------------------------------------------------------------------------------- /src/qrduino/.gitignore: -------------------------------------------------------------------------------- 1 | qrduino 2 | -------------------------------------------------------------------------------- /src/qrduino/qrbits.h: -------------------------------------------------------------------------------- 1 | /* BEEBS qrduino benchmark 2 | 3 | Copyright (C) 2014 Embecosm Limited and University of Bristol 4 | 5 | Contributor James Pallister 6 | 7 | This file is part of the Bristol/Embecosm Embedded Benchmark Suite. 8 | 9 | This program is free software: you can redistribute it and/or modify 10 | it under the terms of the GNU General Public License as published by 11 | the Free Software Foundation, either version 3 of the License, or 12 | (at your option) any later version. 13 | 14 | This program is distributed in the hope that it will be useful, 15 | but WITHOUT ANY WARRANTY; without even the implied warranty of 16 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 17 | GNU General Public License for more details. 18 | 19 | You should have received a copy of the GNU General Public License 20 | along with this program. If not, see . */ 21 | 22 | /* Original code from: https://github.com/tz1/qrduino */ 23 | 24 | #define QRBIT(x,y) ( ( qrframe[((x)>>3) + (y) * WDB] >> (7-((x) & 7 ))) & 1 ) 25 | #define SETQRBIT(x,y) qrframe[((x)>>3) + (y) * WDB] |= 0x80 >> ((x) & 7) 26 | #define TOGQRBIT(x,y) qrframe[((x)>>3) + (y) * WDB] ^= 0x80 >> ((x) & 7) 27 | -------------------------------------------------------------------------------- /src/qsort/.gitignore: -------------------------------------------------------------------------------- 1 | qsort 2 | -------------------------------------------------------------------------------- /src/qsort/Makefile.am: -------------------------------------------------------------------------------- 1 | # Makefile.am for building a BEEBS benchmark 2 | # 3 | # Copyright (C) 2014 Embecosm Limited and University of Bristol 4 | # 5 | # This file is part of the Bristol/Embecosm Embedded Benchmark Suite. 6 | # 7 | # Contributor: James Pallister 8 | # 9 | # This program is free software: you can redistribute it and/or modify 10 | # it under the terms of the GNU General Public License as published by 11 | # the Free Software Foundation, either version 3 of the License, or 12 | # (at your option) any later version. 13 | # 14 | # This program is distributed in the hope that it will be useful, 15 | # but WITHOUT ANY WARRANTY; without even the implied warranty of 16 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 17 | # GNU General Public License for more details. 18 | # 19 | # You should have received a copy of the GNU General Public License 20 | # along with this program. If not, see . 21 | 22 | # SPDX-License-Identifier: GPL-3.0-or-later 23 | 24 | if ENABLED_BENCHMARK_QSORT 25 | 26 | include $(top_srcdir)/src/common.mk.am 27 | 28 | bin_PROGRAMS = qsort 29 | noinst_LTLIBRARIES = libqsort.la 30 | 31 | qsort_SOURCES = 32 | libqsort_la_SOURCES = libqsort.c 33 | 34 | qsort_LDADD = $(DUMMY_CRT0) \ 35 | $(top_builddir)/support/libsupport.la \ 36 | libqsort.la \ 37 | $(DUMMY_LIBC) $(DUMMY_LIBGCC) $(DUMMY_COMPILERRT) 38 | 39 | 40 | 41 | endif 42 | -------------------------------------------------------------------------------- /src/qurt/.gitignore: -------------------------------------------------------------------------------- 1 | qurt 2 | -------------------------------------------------------------------------------- /src/qurt/Makefile.am: -------------------------------------------------------------------------------- 1 | # Makefile.am for building a BEEBS benchmark 2 | # 3 | # Copyright (C) 2014 Embecosm Limited and University of Bristol 4 | # 5 | # This file is part of the Bristol/Embecosm Embedded Benchmark Suite. 6 | # 7 | # Contributor: Pierre Langlois 8 | # 9 | # This program is free software: you can redistribute it and/or modify 10 | # it under the terms of the GNU General Public License as published by 11 | # the Free Software Foundation, either version 3 of the License, or 12 | # (at your option) any later version. 13 | # 14 | # This program is distributed in the hope that it will be useful, 15 | # but WITHOUT ANY WARRANTY; without even the implied warranty of 16 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 17 | # GNU General Public License for more details. 18 | # 19 | # You should have received a copy of the GNU General Public License 20 | # along with this program. If not, see . 21 | 22 | # SPDX-License-Identifier: GPL-3.0-or-later 23 | 24 | if ENABLED_BENCHMARK_QURT 25 | 26 | include $(top_srcdir)/src/common.mk.am 27 | 28 | bin_PROGRAMS = qurt 29 | noinst_LTLIBRARIES = libqurt.la 30 | 31 | qurt_SOURCES = 32 | libqurt_la_SOURCES = libqurt.c 33 | 34 | qurt_LDADD = $(DUMMY_CRT0) \ 35 | $(top_builddir)/support/libsupport.la \ 36 | libqurt.la \ 37 | $(DUMMY_LIBC) $(DUMMY_LIBGCC) $(DUMMY_COMPILERRT) 38 | 39 | 40 | 41 | endif 42 | -------------------------------------------------------------------------------- /src/recursion/.gitignore: -------------------------------------------------------------------------------- 1 | recursion 2 | -------------------------------------------------------------------------------- /src/rijndael/.gitignore: -------------------------------------------------------------------------------- 1 | rijndael 2 | -------------------------------------------------------------------------------- /src/select/.gitignore: -------------------------------------------------------------------------------- 1 | select 2 | -------------------------------------------------------------------------------- /src/select/Makefile.am: -------------------------------------------------------------------------------- 1 | # Makefile.am for building a BEEBS benchmark 2 | # 3 | # Copyright (C) 2014 Embecosm Limited and University of Bristol 4 | # 5 | # This file is part of the Bristol/Embecosm Embedded Benchmark Suite. 6 | # 7 | # Contributor: Pierre Langlois 8 | # 9 | # This program is free software: you can redistribute it and/or modify 10 | # it under the terms of the GNU General Public License as published by 11 | # the Free Software Foundation, either version 3 of the License, or 12 | # (at your option) any later version. 13 | # 14 | # This program is distributed in the hope that it will be useful, 15 | # but WITHOUT ANY WARRANTY; without even the implied warranty of 16 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 17 | # GNU General Public License for more details. 18 | # 19 | # You should have received a copy of the GNU General Public License 20 | # along with this program. If not, see . 21 | 22 | # SPDX-License-Identifier: GPL-3.0-or-later 23 | 24 | if ENABLED_BENCHMARK_SELECT 25 | 26 | include $(top_srcdir)/src/common.mk.am 27 | 28 | bin_PROGRAMS = select 29 | noinst_LTLIBRARIES = libselect.la 30 | 31 | select_SOURCES = 32 | libselect_la_SOURCES = libselect.c 33 | 34 | select_LDADD = $(DUMMY_CRT0) \ 35 | $(top_builddir)/support/libsupport.la \ 36 | libselect.la \ 37 | $(DUMMY_LIBC) $(DUMMY_LIBGCC) $(DUMMY_COMPILERRT) 38 | 39 | endif 40 | -------------------------------------------------------------------------------- /src/sglib-arraybinsearch/.gitignore: -------------------------------------------------------------------------------- 1 | sglib-arraybinsearch 2 | -------------------------------------------------------------------------------- /src/sglib-arrayheapsort/.gitignore: -------------------------------------------------------------------------------- 1 | sglib-arrayheapsort 2 | -------------------------------------------------------------------------------- /src/sglib-arrayheapsort/arraysort.c: -------------------------------------------------------------------------------- 1 | ../sglib-arraysort/arraysort.c -------------------------------------------------------------------------------- /src/sglib-arrayheapsort/sglib.h: -------------------------------------------------------------------------------- 1 | ../sglib-arraysort/sglib.h -------------------------------------------------------------------------------- /src/sglib-arrayquicksort/.gitignore: -------------------------------------------------------------------------------- 1 | sglib-arrayquicksort 2 | -------------------------------------------------------------------------------- /src/sglib-arrayquicksort/arraysort.c: -------------------------------------------------------------------------------- 1 | ../sglib-arraysort/arraysort.c -------------------------------------------------------------------------------- /src/sglib-arrayquicksort/sglib.h: -------------------------------------------------------------------------------- 1 | ../sglib-arraysort/sglib.h -------------------------------------------------------------------------------- /src/sglib-arraysort/.gitignore: -------------------------------------------------------------------------------- 1 | sglib-arraysort 2 | -------------------------------------------------------------------------------- /src/sglib-arraysort/Makefile.am: -------------------------------------------------------------------------------- 1 | # Makefile.am for distributing sglib-arraysort. 2 | # 3 | # Copyright (C) 2013 Embecosm Limited and University of Bristol 4 | # 5 | # This file is part of the Bristol/Embecosm Embedded Benchmark Suite. 6 | # 7 | # Contributor: James Pallister 8 | # 9 | # This program is free software: you can redistribute it and/or modify 10 | # it under the terms of the GNU General Public License as published by 11 | # the Free Software Foundation, either version 3 of the License, or 12 | # (at your option) any later version. 13 | # 14 | # This program is distributed in the hope that it will be useful, 15 | # but WITHOUT ANY WARRANTY; without even the implied warranty of 16 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 17 | # GNU General Public License for more details. 18 | # 19 | # You should have received a copy of the GNU General Public License 20 | # along with this program. If not, see . 21 | 22 | # SPDX-License-Identifier: GPL-3.0-or-later 23 | 24 | # Not a benchmark per se, but the base software for other benchmarks. 25 | 26 | EXTRA_DIST = arraysort.c sglib.h 27 | -------------------------------------------------------------------------------- /src/sglib-dllist/.gitignore: -------------------------------------------------------------------------------- 1 | sglib-dllist 2 | -------------------------------------------------------------------------------- /src/sglib-hashtable/.gitignore: -------------------------------------------------------------------------------- 1 | sglib-hashtable 2 | -------------------------------------------------------------------------------- /src/sglib-listinsertsort/.gitignore: -------------------------------------------------------------------------------- 1 | sglib-listinsertsort 2 | -------------------------------------------------------------------------------- /src/sglib-listsort/.gitignore: -------------------------------------------------------------------------------- 1 | sglib-listsort 2 | -------------------------------------------------------------------------------- /src/sglib-queue/.gitignore: -------------------------------------------------------------------------------- 1 | sglib-queue 2 | -------------------------------------------------------------------------------- /src/sglib-rbtree/.gitignore: -------------------------------------------------------------------------------- 1 | sglib-rbtree 2 | -------------------------------------------------------------------------------- /src/slre/.gitignore: -------------------------------------------------------------------------------- 1 | slre 2 | -------------------------------------------------------------------------------- /src/slre/Makefile.am: -------------------------------------------------------------------------------- 1 | # Makefile.am for building a BEEBS benchmark 2 | # 3 | # Copyright (C) 2013 Embecosm Limited and University of Bristol 4 | # 5 | # This file is part of the Bristol/Embecosm Embedded Benchmark Suite. 6 | # 7 | # Contributor: James Pallister 8 | # 9 | # This program is free software: you can redistribute it and/or modify 10 | # it under the terms of the GNU General Public License as published by 11 | # the Free Software Foundation, either version 3 of the License, or 12 | # (at your option) any later version. 13 | # 14 | # This program is distributed in the hope that it will be useful, 15 | # but WITHOUT ANY WARRANTY; without even the implied warranty of 16 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 17 | # GNU General Public License for more details. 18 | # 19 | # You should have received a copy of the GNU General Public License 20 | # along with this program. If not, see . 21 | 22 | # SPDX-License-Identifier: GPL-3.0-or-later 23 | 24 | if ENABLED_BENCHMARK_SLRE 25 | 26 | include $(top_srcdir)/src/common.mk.am 27 | 28 | bin_PROGRAMS = slre 29 | noinst_LTLIBRARIES = libslre.la 30 | 31 | slre_SOURCES = 32 | libslre_la_SOURCES = libslre.c slre.h 33 | 34 | slre_LDADD = $(DUMMY_CRT0) \ 35 | $(top_builddir)/support/libsupport.la \ 36 | libslre.la \ 37 | $(DUMMY_LIBC) $(DUMMY_LIBGCC) $(DUMMY_COMPILERRT) 38 | 39 | 40 | 41 | endif 42 | -------------------------------------------------------------------------------- /src/sqrt/.gitignore: -------------------------------------------------------------------------------- 1 | sqrt 2 | -------------------------------------------------------------------------------- /src/sqrt/Makefile.am: -------------------------------------------------------------------------------- 1 | # Makefile.am for building a BEEBS benchmark 2 | # 3 | # Copyright (C) 2014 Embecosm Limited and University of Bristol 4 | # 5 | # This file is part of the Bristol/Embecosm Embedded Benchmark Suite. 6 | # 7 | # Contributor: James Pallister 8 | # 9 | # This program is free software: you can redistribute it and/or modify 10 | # it under the terms of the GNU General Public License as published by 11 | # the Free Software Foundation, either version 3 of the License, or 12 | # (at your option) any later version. 13 | # 14 | # This program is distributed in the hope that it will be useful, 15 | # but WITHOUT ANY WARRANTY; without even the implied warranty of 16 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 17 | # GNU General Public License for more details. 18 | # 19 | # You should have received a copy of the GNU General Public License 20 | # along with this program. If not, see . 21 | 22 | # SPDX-License-Identifier: GPL-3.0-or-later 23 | 24 | if ENABLED_BENCHMARK_SQRT 25 | 26 | include $(top_srcdir)/src/common.mk.am 27 | 28 | bin_PROGRAMS = sqrt 29 | noinst_LTLIBRARIES = libsqrt.la 30 | 31 | sqrt_SOURCES = 32 | libsqrt_la_SOURCES = libsqrt.c 33 | 34 | sqrt_LDADD = $(DUMMY_CRT0) \ 35 | $(top_builddir)/support/libsupport.la \ 36 | libsqrt.la \ 37 | $(DUMMY_LIBC) $(DUMMY_LIBGCC) $(DUMMY_COMPILERRT) 38 | 39 | 40 | 41 | endif 42 | -------------------------------------------------------------------------------- /src/st/.gitignore: -------------------------------------------------------------------------------- 1 | st 2 | -------------------------------------------------------------------------------- /src/st/Makefile.am: -------------------------------------------------------------------------------- 1 | # Makefile.am for building a BEEBS benchmark 2 | # 3 | # Copyright (C) 2014 Embecosm Limited and University of Bristol 4 | # 5 | # This file is part of the Bristol/Embecosm Embedded Benchmark Suite. 6 | # 7 | # Contributor: James Pallister 8 | # 9 | # This program is free software: you can redistribute it and/or modify 10 | # it under the terms of the GNU General Public License as published by 11 | # the Free Software Foundation, either version 3 of the License, or 12 | # (at your option) any later version. 13 | # 14 | # This program is distributed in the hope that it will be useful, 15 | # but WITHOUT ANY WARRANTY; without even the implied warranty of 16 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 17 | # GNU General Public License for more details. 18 | # 19 | # You should have received a copy of the GNU General Public License 20 | # along with this program. If not, see . 21 | 22 | # SPDX-License-Identifier: GPL-3.0-or-later 23 | 24 | if ENABLED_BENCHMARK_ST 25 | 26 | include $(top_srcdir)/src/common.mk.am 27 | 28 | bin_PROGRAMS = st 29 | noinst_LTLIBRARIES = libst.la 30 | 31 | st_SOURCES = 32 | libst_la_SOURCES = libst.c 33 | 34 | st_LDADD = $(DUMMY_CRT0) \ 35 | $(top_builddir)/support/libsupport.la \ 36 | libst.la \ 37 | $(DUMMY_LIBC) $(DUMMY_LIBGCC) $(DUMMY_COMPILERRT) \ 38 | $(LIBM) 39 | 40 | endif 41 | -------------------------------------------------------------------------------- /src/statemate/.gitignore: -------------------------------------------------------------------------------- 1 | statemate 2 | -------------------------------------------------------------------------------- /src/stb_perlin/.gitignore: -------------------------------------------------------------------------------- 1 | stb_perlin 2 | -------------------------------------------------------------------------------- /src/stringsearch1/.gitignore: -------------------------------------------------------------------------------- 1 | stringsearch1 2 | -------------------------------------------------------------------------------- /src/strstr/.gitignore: -------------------------------------------------------------------------------- 1 | strstr 2 | -------------------------------------------------------------------------------- /src/strstr/Makefile.am: -------------------------------------------------------------------------------- 1 | # Makefile.am for building a BEEBS benchmark 2 | # 3 | # Copyright (C) 2013 Embecosm Limited and University of Bristol 4 | # 5 | # This file is part of the Bristol/Embecosm Embedded Benchmark Suite. 6 | # 7 | # Contributor: James Pallister 8 | # 9 | # This program is free software: you can redistribute it and/or modify 10 | # it under the terms of the GNU General Public License as published by 11 | # the Free Software Foundation, either version 3 of the License, or 12 | # (at your option) any later version. 13 | # 14 | # This program is distributed in the hope that it will be useful, 15 | # but WITHOUT ANY WARRANTY; without even the implied warranty of 16 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 17 | # GNU General Public License for more details. 18 | # 19 | # You should have received a copy of the GNU General Public License 20 | # along with this program. If not, see . 21 | 22 | # SPDX-License-Identifier: GPL-3.0-or-later 23 | 24 | if ENABLED_BENCHMARK_STRSTR 25 | 26 | include $(top_srcdir)/src/common.mk.am 27 | 28 | bin_PROGRAMS = strstr 29 | noinst_LTLIBRARIES = libstrstr.la 30 | 31 | strstr_SOURCES = 32 | libstrstr_la_SOURCES = libstrstr.c 33 | 34 | strstr_LDADD = $(DUMMY_CRT0) \ 35 | $(top_builddir)/support/libsupport.la \ 36 | libstrstr.la \ 37 | $(DUMMY_LIBC) $(DUMMY_LIBGCC) $(DUMMY_COMPILERRT) 38 | 39 | 40 | 41 | endif 42 | -------------------------------------------------------------------------------- /src/tarai/.gitignore: -------------------------------------------------------------------------------- 1 | tarai 2 | -------------------------------------------------------------------------------- /src/tarai/Makefile.am: -------------------------------------------------------------------------------- 1 | # Makefile.am for building a BEEBS benchmark 2 | # 3 | # Copyright (C) 2013 Embecosm Limited and University of Bristol 4 | # 5 | # This file is part of the Bristol/Embecosm Embedded Benchmark Suite. 6 | # 7 | # Contributor: James Pallister 8 | # 9 | # This program is free software: you can redistribute it and/or modify 10 | # it under the terms of the GNU General Public License as published by 11 | # the Free Software Foundation, either version 3 of the License, or 12 | # (at your option) any later version. 13 | # 14 | # This program is distributed in the hope that it will be useful, 15 | # but WITHOUT ANY WARRANTY; without even the implied warranty of 16 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 17 | # GNU General Public License for more details. 18 | # 19 | # You should have received a copy of the GNU General Public License 20 | # along with this program. If not, see . 21 | 22 | # SPDX-License-Identifier: GPL-3.0-or-later 23 | 24 | if ENABLED_BENCHMARK_TARAI 25 | 26 | include $(top_srcdir)/src/common.mk.am 27 | 28 | bin_PROGRAMS = tarai 29 | noinst_LTLIBRARIES = libtarai.la 30 | 31 | tarai_SOURCES = 32 | libtarai_la_SOURCES = libtarai.c 33 | 34 | tarai_LDADD = $(DUMMY_CRT0) \ 35 | $(top_builddir)/support/libsupport.la \ 36 | libtarai.la \ 37 | $(DUMMY_LIBC) $(DUMMY_LIBGCC) $(DUMMY_COMPILERRT) 38 | 39 | 40 | 41 | endif 42 | -------------------------------------------------------------------------------- /src/template/.gitignore: -------------------------------------------------------------------------------- 1 | template 2 | -------------------------------------------------------------------------------- /src/trio-snprintf/.gitignore: -------------------------------------------------------------------------------- 1 | trio-snprintf 2 | -------------------------------------------------------------------------------- /src/trio-snprintf/trio.c: -------------------------------------------------------------------------------- 1 | ../trio/trio.c -------------------------------------------------------------------------------- /src/trio-snprintf/trio.h: -------------------------------------------------------------------------------- 1 | ../trio/trio.h -------------------------------------------------------------------------------- /src/trio-snprintf/trio_test.c: -------------------------------------------------------------------------------- 1 | ../trio/trio_test.c -------------------------------------------------------------------------------- /src/trio-snprintf/triodef.h: -------------------------------------------------------------------------------- 1 | ../trio/triodef.h -------------------------------------------------------------------------------- /src/trio-snprintf/triop.h: -------------------------------------------------------------------------------- 1 | ../trio/triop.h -------------------------------------------------------------------------------- /src/trio-snprintf/triostr.c: -------------------------------------------------------------------------------- 1 | ../trio/triostr.c -------------------------------------------------------------------------------- /src/trio-snprintf/triostr.h: -------------------------------------------------------------------------------- 1 | ../trio/triostr.h -------------------------------------------------------------------------------- /src/trio-sscanf/.gitignore: -------------------------------------------------------------------------------- 1 | trio-sscanf 2 | -------------------------------------------------------------------------------- /src/trio-sscanf/trio.c: -------------------------------------------------------------------------------- 1 | ../trio/trio.c -------------------------------------------------------------------------------- /src/trio-sscanf/trio.h: -------------------------------------------------------------------------------- 1 | ../trio/trio.h -------------------------------------------------------------------------------- /src/trio-sscanf/trio_test.c: -------------------------------------------------------------------------------- 1 | ../trio/trio_test.c -------------------------------------------------------------------------------- /src/trio-sscanf/triodef.h: -------------------------------------------------------------------------------- 1 | ../trio/triodef.h -------------------------------------------------------------------------------- /src/trio-sscanf/triop.h: -------------------------------------------------------------------------------- 1 | ../trio/triop.h -------------------------------------------------------------------------------- /src/trio-sscanf/triostr.c: -------------------------------------------------------------------------------- 1 | ../trio/triostr.c -------------------------------------------------------------------------------- /src/trio-sscanf/triostr.h: -------------------------------------------------------------------------------- 1 | ../trio/triostr.h -------------------------------------------------------------------------------- /src/trio/.gitignore: -------------------------------------------------------------------------------- 1 | trio 2 | -------------------------------------------------------------------------------- /src/trio/Makefile.am: -------------------------------------------------------------------------------- 1 | # Makefile.am for distributing trio 2 | # 3 | # Copyright (C) 2013 Embecosm Limited and University of Bristol 4 | # 5 | # This file is part of the Bristol/Embecosm Embedded Benchmark Suite. 6 | # 7 | # Contributor: James Pallister 8 | # 9 | # This program is free software: you can redistribute it and/or modify 10 | # it under the terms of the GNU General Public License as published by 11 | # the Free Software Foundation, either version 3 of the License, or 12 | # (at your option) any later version. 13 | # 14 | # This program is distributed in the hope that it will be useful, 15 | # but WITHOUT ANY WARRANTY; without even the implied warranty of 16 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 17 | # GNU General Public License for more details. 18 | # 19 | # You should have received a copy of the GNU General Public License 20 | # along with this program. If not, see . 21 | 22 | # SPDX-License-Identifier: GPL-3.0-or-later 23 | 24 | # Not a benchmark per se, but the base software for other benchmarks. 25 | 26 | EXTRA_DIST = trio.c triodef.h trio.h triop.h triostr.c triostr.h trio_test.c 27 | -------------------------------------------------------------------------------- /src/ud/.gitignore: -------------------------------------------------------------------------------- 1 | ud 2 | -------------------------------------------------------------------------------- /src/ud/Makefile.am: -------------------------------------------------------------------------------- 1 | # Makefile.am for building a BEEBS benchmark 2 | # 3 | # Copyright (C) 2014 Embecosm Limited and University of Bristol 4 | # 5 | # This file is part of the Bristol/Embecosm Embedded Benchmark Suite. 6 | # 7 | # Contributor: James Pallister 8 | # 9 | # This program is free software: you can redistribute it and/or modify 10 | # it under the terms of the GNU General Public License as published by 11 | # the Free Software Foundation, either version 3 of the License, or 12 | # (at your option) any later version. 13 | # 14 | # This program is distributed in the hope that it will be useful, 15 | # but WITHOUT ANY WARRANTY; without even the implied warranty of 16 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 17 | # GNU General Public License for more details. 18 | # 19 | # You should have received a copy of the GNU General Public License 20 | # along with this program. If not, see . 21 | 22 | # SPDX-License-Identifier: GPL-3.0-or-later 23 | 24 | if ENABLED_BENCHMARK_UD 25 | 26 | include $(top_srcdir)/src/common.mk.am 27 | 28 | bin_PROGRAMS = ud 29 | noinst_LTLIBRARIES = libud.la 30 | 31 | ud_SOURCES = 32 | libud_la_SOURCES = libud.c 33 | 34 | ud_LDADD = $(DUMMY_CRT0) \ 35 | $(top_builddir)/support/libsupport.la \ 36 | libud.la \ 37 | $(DUMMY_LIBC) $(DUMMY_LIBGCC) $(DUMMY_COMPILERRT) 38 | 39 | 40 | 41 | endif 42 | -------------------------------------------------------------------------------- /src/whetstone/.gitignore: -------------------------------------------------------------------------------- 1 | whetstone 2 | -------------------------------------------------------------------------------- /src/wikisort/.gitignore: -------------------------------------------------------------------------------- 1 | wikisort 2 | -------------------------------------------------------------------------------- /support/board.c: -------------------------------------------------------------------------------- 1 | /* Common board.c for the benchmarks 2 | 3 | Copyright (C) 2018 Embecosm Limited 4 | 5 | Contributor: Jeremy Bennett 6 | 7 | This file is part of the Bristol/Embecosm Embedded Benchmark Suite. 8 | 9 | This program is free software: you can redistribute it and/or modify 10 | it under the terms of the GNU General Public License as published by 11 | the Free Software Foundation, either version 3 of the License, or 12 | (at your option) any later version. 13 | 14 | This program is distributed in the hope that it will be useful, 15 | but WITHOUT ANY WARRANTY; without even the implied warranty of 16 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 17 | GNU General Public License for more details. 18 | 19 | You should have received a copy of the GNU General Public License 20 | along with this program. If not, see . 21 | 22 | SPDX-License-Identifier: GPL-3.0-or-later */ 23 | 24 | /* This is just a wrapper for the board specific support file. */ 25 | 26 | #include "boardsupport.c" 27 | 28 | 29 | /* 30 | Local Variables: 31 | mode: C++ 32 | c-file-style: "gnu" 33 | End: 34 | */ 35 | -------------------------------------------------------------------------------- /support/chip.c: -------------------------------------------------------------------------------- 1 | /* Common board.c for the benchmarks 2 | 3 | Copyright (C) 2018 Embecosm Limited 4 | 5 | Contributor: Jeremy Bennett 6 | 7 | This file is part of the Bristol/Embecosm Embedded Benchmark Suite. 8 | 9 | This program is free software: you can redistribute it and/or modify 10 | it under the terms of the GNU General Public License as published by 11 | the Free Software Foundation, either version 3 of the License, or 12 | (at your option) any later version. 13 | 14 | This program is distributed in the hope that it will be useful, 15 | but WITHOUT ANY WARRANTY; without even the implied warranty of 16 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 17 | GNU General Public License for more details. 18 | 19 | You should have received a copy of the GNU General Public License 20 | along with this program. If not, see . 21 | 22 | SPDX-License-Identifier: GPL-3.0-or-later */ 23 | 24 | /* This is just a wrapper for the chip specific support file if there is one. */ 25 | 26 | #include "config.h" 27 | 28 | #ifdef HAVE_CHIPSUPPORT_H 29 | #include "chipsupport.c" 30 | #endif 31 | 32 | /* 33 | Local Variables: 34 | mode: C 35 | c-file-style: "gnu" 36 | End: 37 | */ 38 | -------------------------------------------------------------------------------- /support/dummy-crt0.c: -------------------------------------------------------------------------------- 1 | /* Dummy C runtime for the benchmarks 2 | 3 | Copyright (C) 2018 Embecosm Limited 4 | 5 | Contributor: Jeremy Bennett 6 | 7 | This file is part of the Bristol/Embecosm Embedded Benchmark Suite. 8 | 9 | This program is free software: you can redistribute it and/or modify 10 | it under the terms of the GNU General Public License as published by 11 | the Free Software Foundation, either version 3 of the License, or 12 | (at your option) any later version. 13 | 14 | This program is distributed in the hope that it will be useful, 15 | but WITHOUT ANY WARRANTY; without even the implied warranty of 16 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 17 | GNU General Public License for more details. 18 | 19 | You should have received a copy of the GNU General Public License 20 | along with this program. If not, see . 21 | 22 | SPDX-License-Identifier: GPL-3.0-or-later */ 23 | 24 | /* The purpose of this library is to measure the size of code excluding target 25 | dependent C library code. 26 | 27 | Some target linker scripts (e.g. RISC-V, ARM) use _start as the entry point - 28 | others (e.g. ARC) use __start. */ 29 | 30 | extern int main (int argc, 31 | char *argv[]); 32 | 33 | 34 | void 35 | _start (void) 36 | { 37 | (void) main (0, 0); 38 | } 39 | 40 | void 41 | __start (void) 42 | { 43 | (void) main (0, 0); 44 | } 45 | 46 | 47 | -------------------------------------------------------------------------------- /testsuite/.gitignore: -------------------------------------------------------------------------------- 1 | # Output from build system / test harness 2 | beebs.log 3 | beebs.sum 4 | site.exp 5 | -------------------------------------------------------------------------------- /testsuite/Makefile.am: -------------------------------------------------------------------------------- 1 | # Makefile for BEEBS testsuite directory 2 | # 3 | # Copyright (C) 2018 Embecosm Limited 4 | # 5 | # Contributor: Jeremy Bennett 6 | # 7 | # This file is part of the Bristol/Embecosm Embedded Benchmark Suite. 8 | # 9 | # This program is free software: you can redistribute it and/or modify 10 | # it under the terms of the GNU General Public License as published by 11 | # the Free Software Foundation, either version 3 of the License, or 12 | # (at your option) any later version. 13 | # 14 | # This program is distributed in the hope that it will be useful, 15 | # but WITHOUT ANY WARRANTY; without even the implied warranty of 16 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 17 | # GNU General Public License for more details. 18 | # 19 | # You should have received a copy of the GNU General Public License 20 | # along with this program. If not, see . 21 | 22 | # SPDX-License-Identifier: GPL-3.0-or-later 23 | 24 | AUTOMAKE_OPTIONS = dejagnu 25 | 26 | SUBDIRS = beebs.test config lib 27 | 28 | EXTRA_DIST = beebs-conf.exp 29 | 30 | # Testing flags 31 | 32 | DEJATOOL = beebs 33 | export DEJAGNU 34 | export BENCHMARKS 35 | AM_RUNTESTFLAGS = --target_board @BOARD@ 36 | -------------------------------------------------------------------------------- /testsuite/beebs-conf.exp: -------------------------------------------------------------------------------- 1 | # Configure input file for DejaGnu site.exp 2 | 3 | # Copyright (C) 2013-2014 Embecosm Limited and the University of Bristol 4 | 5 | # Contributor Pierre Langlois 6 | 7 | # This file is part of BEEBS 8 | 9 | # This program is free software; you can redistribute it and/or modify it 10 | # under the terms of the GNU General Public License as published by the Free 11 | # Software Foundation; either version 3 of the License, or (at your option) 12 | # any later version. 13 | 14 | # This program is distributed in the hope that it will be useful, but WITHOUT 15 | # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 16 | # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for 17 | # more details. 18 | 19 | # You should have received a copy of the GNU General Public License along 20 | # with this program. If not, see . 21 | 22 | if ![info exists boards_dir] { 23 | lappend boards_dir "$srcdir" 24 | } else { 25 | set boards_dir "$srcdir" 26 | } 27 | lappend boards_dir "$srcdir/config" 28 | lappend boards_dir "$srcdir/lib" 29 | verbose "Boards dir ${boards_dir}" 30 | -------------------------------------------------------------------------------- /testsuite/beebs.test/Makefile.am: -------------------------------------------------------------------------------- 1 | # Makefile for BEEBS test directory 2 | # 3 | # Copyright (C) 2018 Embecosm Limited 4 | # 5 | # Contributor: Jeremy Bennett 6 | # 7 | # This file is part of the Bristol/Embecosm Embedded Benchmark Suite. 8 | # 9 | # This program is free software: you can redistribute it and/or modify 10 | # it under the terms of the GNU General Public License as published by 11 | # the Free Software Foundation, either version 3 of the License, or 12 | # (at your option) any later version. 13 | # 14 | # This program is distributed in the hope that it will be useful, 15 | # but WITHOUT ANY WARRANTY; without even the implied warranty of 16 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 17 | # GNU General Public License for more details. 18 | # 19 | # You should have received a copy of the GNU General Public License 20 | # along with this program. If not, see . 21 | 22 | # SPDX-License-Identifier: GPL-3.0-or-later 23 | 24 | EXTRA_DIST = execute.exp size.exp 25 | -------------------------------------------------------------------------------- /testsuite/beebs.test/execute.exp: -------------------------------------------------------------------------------- 1 | # Copyright (C) 2014 Embecosm Limited. 2 | 3 | # Contributor Pierre Langlois 4 | 5 | # This file is part of BEEBS 6 | 7 | # This program is free software; you can redistribute it and/or modify it 8 | # under the terms of the GNU General Public License as published by the Free 9 | # Software Foundation; either version 3 of the License, or (at your option) 10 | # any later version. 11 | 12 | # This program is distributed in the hope that it will be useful, but WITHOUT 13 | # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 14 | # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for 15 | # more details. 16 | 17 | # You should have received a copy of the GNU General Public License along 18 | # with this program. If not, see . 19 | 20 | # SPDX-License-Identifier: GPL-3.0-or-later 21 | 22 | # Set timeout based on optional environment variable. 23 | 24 | if { [llength [array names env BEEBS_TIMEOUT]] > 0 } { 25 | set timeout $env(BEEBS_TIMEOUT) 26 | verbose "BEEBS_TIMEOUT set to $timeout" 27 | } 28 | 29 | foreach target $target_list { 30 | beebs_run_all_benchmarks $target ${objdir}/../src 31 | } 32 | -------------------------------------------------------------------------------- /testsuite/beebs.test/size.exp: -------------------------------------------------------------------------------- 1 | # Copyright (C) 2018 Embecosm Limited. 2 | 3 | # Contributor Jeremy Bennett . 19 | 20 | # SPDX-License-Identifier: GPL-3.0-or-later 21 | 22 | foreach target $target_list { 23 | beebs_size_all_benchmarks $target ${objdir}/../src 24 | } 25 | -------------------------------------------------------------------------------- /testsuite/config/Makefile.am: -------------------------------------------------------------------------------- 1 | # Makefile for BEEBS test config directory 2 | # 3 | # Copyright (C) 2018 Embecosm Limited 4 | # 5 | # Contributor: Jeremy Bennett 6 | # 7 | # This file is part of the Bristol/Embecosm Embedded Benchmark Suite. 8 | # 9 | # This program is free software: you can redistribute it and/or modify 10 | # it under the terms of the GNU General Public License as published by 11 | # the Free Software Foundation, either version 3 of the License, or 12 | # (at your option) any later version. 13 | # 14 | # This program is distributed in the hope that it will be useful, 15 | # but WITHOUT ANY WARRANTY; without even the implied warranty of 16 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 17 | # GNU General Public License for more details. 18 | # 19 | # You should have received a copy of the GNU General Public License 20 | # along with this program. If not, see . 21 | 22 | # SPDX-License-Identifier: GPL-3.0-or-later 23 | 24 | EXTRA_DIST = avrdude.exp none.exp ri5cyverilator.exp 25 | -------------------------------------------------------------------------------- /testsuite/config/generic.exp: -------------------------------------------------------------------------------- 1 | # Copyright (C) 2019 Embecosm Limited. 2 | 3 | # Contributor Graham Markall 4 | 5 | # This file is part of BEEBS 6 | 7 | # This program is free software; you can redistribute it and/or modify it 8 | # under the terms of the GNU General Public License as published by the Free 9 | # Software Foundation; either version 3 of the License, or (at your option) 10 | # any later version. 11 | 12 | # This program is distributed in the hope that it will be useful, but WITHOUT 13 | # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 14 | # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for 15 | # more details. 16 | 17 | # You should have received a copy of the GNU General Public License along 18 | # with this program. If not, see . 19 | 20 | # SPDX-License-Identifier: GPL-3.0-or-later 21 | 22 | set_board_info beebs,benchmarks "$env(BENCHMARKS)" 23 | 24 | proc generic_filter_benchmark { b f } { 25 | return 0 26 | } 27 | 28 | proc generic_init { test_file_name } { 29 | uplevel #0 { 30 | proc beebs_filter_benchmark { b f } { 31 | return [generic_filter_benchmark $b $f] 32 | } 33 | } 34 | } 35 | -------------------------------------------------------------------------------- /testsuite/config/none.exp: -------------------------------------------------------------------------------- 1 | # Copyright (C) 2018 Embecosm Limited. 2 | 3 | # Contributor Jeremy Bennett 4 | 5 | # This file is part of BEEBS 6 | 7 | # This program is free software; you can redistribute it and/or modify it 8 | # under the terms of the GNU General Public License as published by the Free 9 | # Software Foundation; either version 3 of the License, or (at your option) 10 | # any later version. 11 | 12 | # This program is distributed in the hope that it will be useful, but WITHOUT 13 | # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 14 | # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for 15 | # more details. 16 | 17 | # You should have received a copy of the GNU General Public License along 18 | # with this program. If not, see . 19 | 20 | # SPDX-License-Identifier: GPL-3.0-or-later 21 | 22 | set_board_info beebs,benchmarks "$env(BENCHMARKS)" 23 | 24 | proc none_filter_benchmark { b f } { 25 | return 0 26 | } 27 | 28 | proc none_init { test_file_name } { 29 | uplevel #0 { 30 | proc beebs_filter_benchmark { b f } { 31 | return [none_filter_benchmark $b $f] 32 | } 33 | } 34 | } 35 | -------------------------------------------------------------------------------- /testsuite/config/ty_eysgjn.exp: -------------------------------------------------------------------------------- 1 | # Copyright (C) 2018 Embecosm Limited. 2 | 3 | # Contributor Graham Markall 4 | 5 | # This file is part of BEEBS 6 | 7 | # This program is free software; you can redistribute it and/or modify it 8 | # under the terms of the GNU General Public License as published by the Free 9 | # Software Foundation; either version 3 of the License, or (at your option) 10 | # any later version. 11 | 12 | # This program is distributed in the hope that it will be useful, but WITHOUT 13 | # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 14 | # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for 15 | # more details. 16 | 17 | # You should have received a copy of the GNU General Public License along 18 | # with this program. If not, see . 19 | 20 | # SPDX-License-Identifier: GPL-3.0-or-later 21 | 22 | set_board_info beebs,benchmarks "$env(BENCHMARKS)" 23 | 24 | proc ty_eysgjn_filter_benchmark { b f } { 25 | return 0 26 | } 27 | 28 | proc ty_eysgjn_init { test_file_name } { 29 | uplevel #0 { 30 | proc beebs_filter_benchmark { b f } { 31 | return [ty_eysgjn_filter_benchmark $b $f] 32 | } 33 | } 34 | } 35 | -------------------------------------------------------------------------------- /testsuite/lib/Makefile.am: -------------------------------------------------------------------------------- 1 | # Makefile for BEEBS test lib directory 2 | # 3 | # Copyright (C) 2018 Embecosm Limited 4 | # 5 | # Contributor: Jeremy Bennett 6 | # 7 | # This file is part of the Bristol/Embecosm Embedded Benchmark Suite. 8 | # 9 | # This program is free software: you can redistribute it and/or modify 10 | # it under the terms of the GNU General Public License as published by 11 | # the Free Software Foundation, either version 3 of the License, or 12 | # (at your option) any later version. 13 | # 14 | # This program is distributed in the hope that it will be useful, 15 | # but WITHOUT ANY WARRANTY; without even the implied warranty of 16 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 17 | # GNU General Public License for more details. 18 | # 19 | # You should have received a copy of the GNU General Public License 20 | # along with this program. If not, see . 21 | 22 | # SPDX-License-Identifier: GPL-3.0-or-later 23 | 24 | EXTRA_DIST = beebs.exp mageec-wand.exp perf-stat.exp 25 | -------------------------------------------------------------------------------- /travis_test.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | ./configure --disable-maintainer-mode || exit 1 4 | make || exit 1 5 | make check 6 | res=$? 7 | 8 | echo travis_fold:start:beebs.log 9 | cat beebs.log 10 | echo travis_fold:end:beebs.log 11 | 12 | echo travis_fold:start:beebs.sum 13 | cat beebs.sum 14 | echo travis_fold:end:beebs.sum 15 | 16 | exit $res 17 | -------------------------------------------------------------------------------- /update-makefile.sno: -------------------------------------------------------------------------------- 1 | * Argument processing 2 | 3 | argv = ARRAY('0:9') 4 | i = 0 5 | first_arg = HOST(3) 6 | argv[i] = HOST(2, first_arg - 1) 7 | 8 | get_args 9 | arg = HOST(2, first_arg + i) :F(args_done) 10 | i = i + 1 11 | argv[i] = arg :(get_args) 12 | 13 | args_done 14 | argc = i + 1 15 | 16 | EQ(argc,1) :S(args_ok) 17 | TERMINAL = 'Usage: ' argv[0] :(END) 18 | 19 | args_ok 20 | 21 | * Useful strings and patterns 22 | 23 | lc_aldig = 'abcdefghijklmnopqrstuvwxyz0123456789' 24 | eqsign = ARBNO(' ') '=' 25 | 26 | next_line 27 | line = INPUT :F(all_done) 28 | 29 | line ' $(top_builddir)/support/libmain.la' :S(insert_lib) 30 | 31 | * Lines to omit 32 | 33 | * Ordinary lines we print out 34 | 35 | OUTPUT = line :(next_line) 36 | 37 | * Update -lm line 38 | 39 | insert_lib 40 | line POS(0) ARB . start ('$(top_builddir)/support/libmain.la' 41 | + ARB) . end RPOS(0) 42 | OUTPUT = start '@DUMMY_CRT0@ \' 43 | OUTPUT = DUPL(' ', SIZE(start)) end :(next_line) 44 | 45 | * All lines transferred 46 | 47 | all_done 48 | 49 | END 50 | --------------------------------------------------------------------------------