Home
       crt-posix.s - scc - simple c99 compiler
  HTML git clone git://git.simple-cc.org/scc
   DIR Log
   DIR Files
   DIR Refs
   DIR Submodules
   DIR README
   DIR LICENSE
       ---
       crt-posix.s (244B)
       ---
            1         .globl        _environ
            2         .comm        _environ,8,8
            3 
            4         .text
            5         .globl        _start
            6 _start:
            7         ldr        x0,[sp]                /* argc */
            8         add        x1,sp,#8        /* argv */
            9         adr        x2,_environ
           10         add        x9,x1,x0,lsl #3        /* envp = argc + 8*argc + 8 */
           11         add        x9,x9,#8
           12         ldr        x9,[x9]
           13         str        x9,[x2]
           14         bl        main
           15         b        exit