Afegides mes operacions de ARM assembly
This commit is contained in:
55
.gitignore
vendored
55
.gitignore
vendored
@@ -1,54 +1 @@
|
|||||||
# ---> C
|
out_64
|
||||||
# Prerequisites
|
|
||||||
*.d
|
|
||||||
|
|
||||||
# Object files
|
|
||||||
*.o
|
|
||||||
*.ko
|
|
||||||
*.obj
|
|
||||||
*.elf
|
|
||||||
|
|
||||||
# Linker output
|
|
||||||
*.ilk
|
|
||||||
*.map
|
|
||||||
*.exp
|
|
||||||
|
|
||||||
# Precompiled Headers
|
|
||||||
*.gch
|
|
||||||
*.pch
|
|
||||||
|
|
||||||
# Libraries
|
|
||||||
*.lib
|
|
||||||
*.a
|
|
||||||
*.la
|
|
||||||
*.lo
|
|
||||||
|
|
||||||
# Shared objects (inc. Windows DLLs)
|
|
||||||
*.dll
|
|
||||||
*.so
|
|
||||||
*.so.*
|
|
||||||
*.dylib
|
|
||||||
|
|
||||||
# Executables
|
|
||||||
*.exe
|
|
||||||
*.out
|
|
||||||
*.app
|
|
||||||
*.i*86
|
|
||||||
*.x86_64
|
|
||||||
*.hex
|
|
||||||
|
|
||||||
# Debug files
|
|
||||||
*.dSYM/
|
|
||||||
*.su
|
|
||||||
*.idb
|
|
||||||
*.pdb
|
|
||||||
|
|
||||||
# Kernel Module Compile Results
|
|
||||||
*.mod*
|
|
||||||
*.cmd
|
|
||||||
.tmp_versions/
|
|
||||||
modules.order
|
|
||||||
Module.symvers
|
|
||||||
Mkfile.old
|
|
||||||
dkms.conf
|
|
||||||
|
|
||||||
|
|||||||
@@ -1,11 +0,0 @@
|
|||||||
#include <stdio.h>
|
|
||||||
|
|
||||||
extern int my_function(int a, int b);
|
|
||||||
|
|
||||||
int main()
|
|
||||||
{
|
|
||||||
int a = 6;
|
|
||||||
int b = 4;
|
|
||||||
printf("Calling assembly function my_function with x0=%d and x1=%d results in %d\n", a, b, my_function(a, b));
|
|
||||||
return (0);
|
|
||||||
}
|
|
||||||
@@ -1,6 +0,0 @@
|
|||||||
.global my_function
|
|
||||||
.type my_function, "function"
|
|
||||||
.p2align 4
|
|
||||||
my_function:
|
|
||||||
add x0, x0, x1
|
|
||||||
ret
|
|
||||||
Reference in New Issue
Block a user