scc

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

crt-posix.s (244B)


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