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

46 lines
665 B
C
Raw Normal View History

2022-10-23 23:03:34 +00:00
#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;
}