1
Fork 0
mirror of https://github.com/Steffo99/unimore-hpc-assignments.git synced 2024-11-23 00:24:23 +00:00
hpc-2022-g3/profile/gprof/profile.c
Alessandro Capotondi 5ecb815874 Added gprof example
2022-10-24 01:03:34 +02:00

45 lines
665 B
C

#include<stdio.h>
void some_other_test(void)
{
printf("\n Inside the function some_other_test() \n");
int i = 0;
for(;i<=0XFFFF;i++);
}
void yet_another_test(void)
{
printf("\n Inside the function yet_other_test() \n");
int i = 0;
for(;i<=0XFFFFFFF;i++);
}
void another_test(void)
{
printf("\n Inside the function another_test() \n");
int i = 0;
for(;i<=0XFFF;i++);
yet_another_test();
}
void test(void)
{
printf("\n Inside the function test() \n");
int i = 0;
for(;i<=0XFFFFFF;i++);
another_test();
}
int main(void)
{
printf("\n Inside the function main() \n");
int i = 0;
for(;i<=0XFFFFF;i++);
test();
some_other_test();
return 0;
}