Unverified Commit 2db45ded authored by Birte Kristina Friesel's avatar Birte Kristina Friesel
Browse files

treebench: use separate tree.cc; remove main.cc (now generated automitcally)

parent 83ac36a5
Loading
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -18,7 +18,8 @@
/src/app/prototest/capnp_c_bench.capnp.h
/src/app/prototest/prototest_global.cc.inc
/src/app/prototest/prototest_local.cc.inc
/src/app/treebench/tree.c.inc
/src/app/treebench/main.cc
/src/app/treebench/tree.cc
src/driver/dummy.cc
include/driver/dummy.h
include/arch/*/driver/bme680-*/*
+2 −0
Original line number Diff line number Diff line
@@ -3,3 +3,5 @@
# Copyright 2020 Birte Kristina Friesel
#
# SPDX-License-Identifier: CC0-1.0

CXX_TARGETS += src/app/${app_dir}/tree.cc

src/app/treebench/main.cc

deleted100644 → 0
+0 −31
Original line number Diff line number Diff line
/*
 * Copyright 2020 Birte Kristina Friesel
 *
 * SPDX-License-Identifier: BSD-2-Clause
 */
#include "arch.h"
#include "driver/gpio.h"
#include "driver/stdout.h"
#include "driver/uptime.h"
#include "driver/counter.h"

#include "tree.c.inc"

int main(void)
{
	arch.setup();
	gpio.setup();
	kout.setup();

	counter.start();
	counter.stop();
	kout << "nop @ " << counter.value << "/" << counter.overflow << " cycles" << endl << endl;

	run_benchmark();

	while (1) {
		arch.idle();
	}

	return 0;
}