File: gcc48-simple.src.c

package info (click to toggle)
python-pyelftools 0.32-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 68,964 kB
  • sloc: python: 15,903; ansic: 298; asm: 86; makefile: 24; cpp: 18; sh: 4
file content (19 lines) | stat: -rw-r--r-- 433 bytes parent folder | download | duplicates (8)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
/* Generated by compiling with gcc 4.8 as follows:
**
** gcc-4.8 -O0 -g -fno-dwarf2-cfi-asm -c dwarf4_simple.c -o gcc48-simple.
**
** Note: -fno-dwarf2-cfi-asm to tell gcc to generate .dwarf_frames as well
** as the .eh_frames it generates by default.
**
*/

extern int bar(int);
extern int baz(int);

int foo(int v) {
    int x = bar(v);
    int i;
    for (i = 0; i < v; ++i)
        x += bar(i) + bar(v) * baz(i);
    return x;
}