forked from foss-for-synopsys-dwc-arc-processors/embench-iot
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdummy-crt0.c
44 lines (32 loc) · 783 Bytes
/
dummy-crt0.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
/* Dummy C runtime for the benchmarks
Copyright (C) 2018-2019 Embecosm Limited
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 */
/* The purpose of this library is to measure the size of code excluding target
dependent C library code.
Some target linker scripts (e.g. RISC-V, ARM) use _start as the entry point -
others (e.g. ARC) use __start. */
extern int main (int argc, char *argv[]);
void
_start (void)
{
(void) main (0, 0);
}
void
__start (void)
{
(void) main (0, 0);
}
void
__init (void)
{
(void) main (0, 0);
}
/*
Local Variables:
mode: C
c-file-style: "gnu"
End:
*/