asm_book/python/function.S
Perry Kivolowitz c67f16b7b4 missed one
2023-01-25 21:07:23 -06:00

20 lines
343 B
ArmAsm

#include "apple-linux-convergence.S"
/*
gcc -fPIC -shared -o my_square.so function.S
https://realpython.com/python-bindings-overview/#python-bindings-overview
*/
.p2align 2
.text
GLABEL square
#if defined(__APPLE__)
_square:
#else
square:
#endif
mul x0, x0, x0
ret
.end