scc

simple c99 compiler
git clone git://git.simple-cc.org/scc
Log | Files | Refs | README | LICENSE

crt-posix.s (213B)


      1 	.bss
      2 	.globl	_environ
      3 _environ:
      4 	.long	0
      5 
      6 	.text
      7 	.global	start
      8 _start:
      9 	movl	%esp,%ebp
     10 
     11 	movl	(%ebp),%edi
     12 	leal	8(%ebp),%esi
     13 	leal	16(%ebp,%edi,8),%edx
     14 	movl	%edx,_environ
     15 
     16 	call 	main
     17 	movl	%eax,%edi
     18 	jmp	exit