Multiple choice technology programming languages

How will you get the assembly code from a C raw code?

  1. asmb <filename>

  2. gcc -S <filename> ; cat <filename.s>

  3. as <filename.s>

  4. None

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

Using gcc -S compiles C code into assembly and outputs it to `, which is then displayed viacat. Other options likeasmbdo not exist, andas` is the assembler used to compile assembly into machine code, not raw C into assembly.