From 7a0e5bdcd244b4c30a14217fb079cbfc568123f3 Mon Sep 17 00:00:00 2001 From: Pierre Valarcher Date: Tue, 28 Sep 2021 09:15:52 +0200 Subject: [PATCH] prem's --- Exemples/main.c | 9 +++++++++ Exemples/main.s | 19 +++++++++++++++++++ 2 files changed, 28 insertions(+) create mode 100644 Exemples/main.c create mode 100644 Exemples/main.s diff --git a/Exemples/main.c b/Exemples/main.c new file mode 100644 index 0000000..5bf93a9 --- /dev/null +++ b/Exemples/main.c @@ -0,0 +1,9 @@ +#include +#include + +int main (int argc, char *argv[]) +{ + + + return EXIT_SUCCESS; +} diff --git a/Exemples/main.s b/Exemples/main.s new file mode 100644 index 0000000..83dcea6 --- /dev/null +++ b/Exemples/main.s @@ -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