fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. extern void* __start_text;
  5.  
  6. int main() {
  7. for(int i = 0; i < 8192; i++) {
  8. char x = *((char*)__dso_handle + i);
  9. if (isprint(x)) putchar(x);
  10. else putchar('.');
  11. }
  12. }
Compilation error #stdin compilation error #stdout 0s 15240KB
stdin
Standard input is empty
compilation info
prog.cpp: In function ‘int main()’:
prog.cpp:8:24: error: ‘__dso_handle’ was not declared in this scope
      char x = *((char*)__dso_handle + i);
                        ^~~~~~~~~~~~
stdout
Standard output is empty