Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #define NROWS 8192 // 2^13 rows
- #define NCOLS 8192 // 2^13 cols
- #define NTIMES 10 // Repeat 10 times
- // Matrix size 2^26 = 64 MiBytes
- char matrix[NROWS][NCOLS];
- int main(void)
- {
- int i, j, rep;
- // Repeat NTIMES to obtain e better execution time
- for (rep = 0; rep < NTIMES; rep++)
- {
- for (i = 0; i < NROWS; i++)
- {
- for(j = 0; j < NCOLS; j++)
- {
- matrix[i][j] = 'A';
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement