This commit is contained in:
Pierre Valarcher 2021-09-28 09:15:52 +02:00
parent 37e7a003e5
commit 7a0e5bdcd2
2 changed files with 28 additions and 0 deletions

9
Exemples/main.c Normal file
View File

@ -0,0 +1,9 @@
#include <stdio.h>
#include <stdlib.h>
int main (int argc, char *argv[])
{
return EXIT_SUCCESS;
}

19
Exemples/main.s Normal file
View File

@ -0,0 +1,19 @@
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 11, 0 sdk_version 11, 1
.globl _main ; -- Begin function main
.p2align 2
_main: ; @main
.cfi_startproc
; %bb.0:
sub sp, sp, #16 ; =16
.cfi_def_cfa_offset 16
mov w8, #0
str wzr, [sp, #12]
str w0, [sp, #8]
str x1, [sp]
mov x0, x8
add sp, sp, #16 ; =16
ret
.cfi_endproc
; -- End function
.subsections_via_symbols