I've been trying to disassemble C code into intel assembly code on my m1 macbook pro but can't find any way to do it (i've tried to look up how to do it using gdb, lldb, objdump, but no succes so far). So my question is: is it possible and if so, how and with which library/program? Would it also be possible to do with an IDE like CLion or Xcode?
Thanks in advance!
I have solution, you can use
brew install x86_64-elf-binutils, then you will have a set of tools which are same with what you normally used in x86 platform linux such asx86_64-elf-gcc, andx86_64-elf-objdumpis one of them. Then you can easily use it as what you useobjdumpin x86 linux enviroment.