How do I allocate a vector in armv8 assembly?

286 views Asked by At

So, I am trying to allocate a vector in armv8, here is the code

ASM_FUNC(test)
.data
array: .word 10,20,30,40

.text
mov    x0,#5
ret

It compiles, but when i try to run, it just gets stuck. How can I properly declare and allocate a vector in assembly armv8? Do I have to put a .data. before? And then put a .code on the operations?

This is the c code I am using

int test();

int main(void)
{
 int ff = test();
 return 0;
}
0

There are 0 answers