forked from embench/embench-iot
-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.c
47 lines (32 loc) · 993 Bytes
/
main.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
/* Common main.c for the benchmarks
Copyright (C) 2014 Embecosm Limited and University of Bristol
Copyright (C) 2018-2019 Embecosm Limited
Contributor: James Pallister <[email protected]>
Contributor: Jeremy Bennett <[email protected]>
This file is part of Embench and was formerly part of the Bristol/Embecosm
Embedded Benchmark Suite.
SPDX-License-Identifier: GPL-3.0-or-later */
#include "support.h"
int __attribute__ ((used))
main (int argc __attribute__ ((unused)),
char *argv[] __attribute__ ((unused)))
{
int i;
volatile int result;
int correct;
initialise_board ();
initialise_benchmark ();
warm_caches (WARMUP_HEAT);
start_trigger ();
result = benchmark ();
stop_trigger ();
/* bmarks that use arrays will check a global array rather than int result */
correct = verify_benchmark (result);
return (!correct);
} /* main () */
/*
Local Variables:
mode: C
c-file-style: "gnu"
End:
*/