Add wasm tacle-bench targets
This commit is contained in:
25
targets/wasm-tacle/sequential/mpeg2/CMakeLists.txt
Normal file
25
targets/wasm-tacle/sequential/mpeg2/CMakeLists.txt
Normal file
@ -0,0 +1,25 @@
|
||||
# ~~~
|
||||
# SPDX-License-Identifier: MIT
|
||||
# SPDX-FileCopyrightText: 2026, Friedrich-Alexander-Universität Erlangen-Nürnberg (FAU)
|
||||
# ~~~
|
||||
|
||||
cmake_minimum_required(VERSION 3.20)
|
||||
|
||||
project(mpeg2)
|
||||
|
||||
set(TACLEBENCH_ROOT_PATH "${CMAKE_CURRENT_LIST_DIR}/../../..")
|
||||
set(REPOSITORY_ROOT_PATH "${CMAKE_CURRENT_LIST_DIR}/../../../..")
|
||||
|
||||
set(APP_TARGET_NAME "${CMAKE_PROJECT_NAME}")
|
||||
|
||||
if(DEFINED TACLEBENCH_VARIANT AND "${TACLEBENCH_VARIANT}" STREQUAL "inline")
|
||||
set(APP_SOURCE_FILE_PATH
|
||||
"generated/modified_sources/inline/mpeg2.c")
|
||||
else()
|
||||
set(APP_SOURCE_FILE_PATH
|
||||
"generated/modified_sources/default/mpeg2.c")
|
||||
endif()
|
||||
|
||||
include(${REPOSITORY_ROOT_PATH}/cmake/taclebench_wasm.cmake)
|
||||
|
||||
|
||||
35
targets/wasm-tacle/sequential/mpeg2/ChangeLog.txt
Executable file
35
targets/wasm-tacle/sequential/mpeg2/ChangeLog.txt
Executable file
@ -0,0 +1,35 @@
|
||||
File: mpeg2.c
|
||||
Original provenience: MediaBench II benchmark suite,
|
||||
http://euler.slu.edu/~fritts/mediabench (mirror)
|
||||
|
||||
2015-11-05:
|
||||
- Removed original header comment, replaced by TACLeBench header.
|
||||
- Removed unnecessary preprocessor macros, integrated required preprocessor
|
||||
macros directly in the source code.
|
||||
- Added prefix "mpeg2_" to all global symbols.
|
||||
- Added explicit forward declarations of functions.
|
||||
- Added TACLeBench-compliant initialization code.
|
||||
- Added new function mpeg2_return producing a checksum as return value.
|
||||
- Added new function mpeg2_main according to TACLeBench guidelines.
|
||||
mpeg2_main is annotated as entry-point for timing analysis.
|
||||
- Applied code formatting according to the following rules
|
||||
- Lines shall not be wider than 80 characters; whenever possible, appropriate
|
||||
line breaks shall be inserted to keep lines below 80 characters
|
||||
- Indentation is done using whitespaces only, no tabs. Code is indented by
|
||||
two whitespaces
|
||||
- Two empty lines are put between any two functions
|
||||
- In non-empty lists or index expressions, opening '(' and '[' are followed by
|
||||
one whitespace, closing ')' and ']' are preceded by one whitespace
|
||||
- In comma- or colon-separated argument lists, one whitespace is put after
|
||||
each comma/colon
|
||||
- Names of functions and global variables all start with a benchmark-specific
|
||||
prefix (here: bs_) followed by lowercase letter (e.g., bs_square)
|
||||
- For pointer types, one whitespace is put before the '*'
|
||||
- Operators within expressions shall be preceded and followed by one
|
||||
whitespace
|
||||
- Code of then- and else-parts of if-then-else statements shall be put in
|
||||
separate lines, not in the same lines as the if-condition or the keyword
|
||||
"else"
|
||||
- Opening braces '{' denoting the beginning of code for some if-else or loop
|
||||
body shall be put at the end of the same line where the keywords "if",
|
||||
"else", "for", "while" etc. occur
|
||||
BIN
targets/wasm-tacle/sequential/mpeg2/generated/default/mpeg2.wasm
Executable file
BIN
targets/wasm-tacle/sequential/mpeg2/generated/default/mpeg2.wasm
Executable file
Binary file not shown.
12495
targets/wasm-tacle/sequential/mpeg2/generated/default/mpeg2.wat
Normal file
12495
targets/wasm-tacle/sequential/mpeg2/generated/default/mpeg2.wat
Normal file
File diff suppressed because one or more lines are too long
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
13212
targets/wasm-tacle/sequential/mpeg2/mpeg2.c
Executable file
13212
targets/wasm-tacle/sequential/mpeg2/mpeg2.c
Executable file
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user