Skip to content

Instantly share code, notes, and snippets.

@omo
Created January 3, 2019 04:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save omo/1a4697f04a2d22a139117e613831d998 to your computer and use it in GitHub Desktop.
Save omo/1a4697f04a2d22a139117e613831d998 to your computer and use it in GitHub Desktop.
const int large_size = 32*1024*1024;
const volatile int large[large_size] = {};
int main() {
for (int i = 0; i < large_size; i++) {
volatile int li = large[i];
}
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment