1

I want to use GNU gprof that comes with GCC to profile my C program. However, it returns __dyld section not supported error when I compile with the -pg flag and try to run the program:

$ gcc -pg main.c 
$ ./a.out 
dyld: __dyld section not supported in /Users/evgenii/Downloads/c_profile/./a.out

This error has been reported here. Is there a way to use the GNU profiler on macOS Mojave? I'm aware that there are alternative tools for profiling, but I want to use gprof.

Evgenii
  • 36,389
  • 27
  • 134
  • 170

0 Answers0