mirror of
https://github.com/autc04/Retro68.git
synced 2025-01-12 10:31:01 +00:00
d21be3b4e1
(from https://sourceware.org/elfutils/, GPL/LGPL licensed)
20 lines
315 B
C
20 lines
315 B
C
// 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);
|
|
}
|