#!/bin/bash cat <<'EOF' > a.cpp #include using namespace std; char buf[1000 * 1000 * 1000]; int main(int argc, char **argv) { cout << "Hello, world!" << endl; for (int i = 0; i < 1000000000; i += 23) { buf[i] = i; } return 0; } EOF g++ a.cpp ./a.out