I produced the assembler below by running
clang -s hello.c
where hello.c
is the filename for the following:
#include <stdio.h>
main() {
printf("Hello\n");
}
The assembler is in hello.s
:
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 10, 14 sdk_version 10, 14
.globl _main ## -- Begin function main
.p2align 4, 0x90
_main: ## @main
.cfi_startproc
## %bb.0:
pushq %rbp
...