Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdlib.h>
- #include <stdint.h>
- uint64_t numb1 = 1;
- uint64_t numb2 = 2;
- uint64_t numb3 = 3;
- uint64_t numb4 = 4;
- uint64_t numb5 = 5;
- char array[40000];
- //time valgrind --tool=callgrind --dsymutil=yes ./pbd ./multi2 multi
- //callgrind_annotate --auto=yes callgrind.out.9742 > out
- void multi(int n)
- {
- for (int i = 0; i < n; i++)
- {
- if (i == n - 1)
- {
- numb1 += 7;
- numb2 += 8;
- numb3 += 9;
- numb4 += 10;
- numb5 += 11;
- array[39999] = numb1;
- }
- }
- }
- int main()
- {
- multi(100000);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement