Search code examples
cassemblyc-preprocessorcc

How I open .s assembly file in Linux?


I wrote my c program add.c, then preprocessed with cpp, then compiled with CC to obtain an add.s file. Now I would like to open it to see the assembly code. Can't find a way to do it.


Solution

  • The .s files are basically assembler source files, so you can pretty much open them in whatever tool you used to create the .c files in the first place.

    In other words, mere mortals will opt for Notepad++ or Emacs, but the true intelligentsia will use Vim :-)