Executando verificação de segurança...
1
Carregando publicação patrocinada...
1

Sim claro:

gcc -o teste_c2.asm teste.c -O3 -S
	.file	"teste.c"
	.text
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB0:
	.cfi_startproc
	xorl	%eax, %eax
	ret
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.ident	"GCC: (GNU) 12.2.0"
	.section	.note.GNU-stack,"",@progbits

Interessante que o GCC removeu completamente o loop vazio.

1