File: testfile_entry_value.c

package info (click to toggle)
elfutils 0.194-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 27,680 kB
  • sloc: ansic: 114,970; sh: 35,537; cpp: 4,998; makefile: 1,986; yacc: 1,388; lex: 130; asm: 77; sed: 39; awk: 35
file content (19 lines) | stat: -rw-r--r-- 315 bytes parent folder | download | duplicates (10)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
// gcc -g -O2 -o entry_value entry_value.c
int __attribute__((noinline, noclone)) foo (int x, int y)
{
  return x + y;
}

int __attribute__((noinline, noclone)) bar (int x, int y)
{
  int z;
  z = foo (x, y);
  z += foo (y, x);
  return z;
}

int
main (int argc, char **argv)
{
  return bar (argc + 1, argc - 1);
}