Tencent / libco

libco is a coroutine library which is widely used in wechat back-end service. It has been running on tens of thousands of machines since 2013.
Other
8.32k stars 2.09k forks source link

There is any one who translate the x86 64 assembly language to arm64? #100

Open darbee opened 5 years ago

darbee commented 5 years ago

I want to port the assembly language to arm64. There is any one can help

    leaq 8(%rsp),%rax
leaq 112(%rdi),%rsp
pushq %rax
pushq %rbx
pushq %rcx
pushq %rdx

pushq -8(%rax) //ret func addr

pushq %rsi
pushq %rdi
pushq %rbp
pushq %r8
pushq %r9
pushq %r12
pushq %r13
pushq %r14
pushq %r15

movq %rsi, %rsp
popq %r15
popq %r14
popq %r13
popq %r12
popq %r9
popq %r8
popq %rbp
popq %rdi
popq %rsi
popq %rax //ret func addr
popq %rdx
popq %rcx
popq %rbx
popq %rsp
pushq %rax

xorl %eax, %eax
ret

I want to port the assembly language to arm64. There is any one can help me? Thanks a lot

Screwtapello commented 5 years ago

The original version of libco supports ARM and ARM64.

opt-liang commented 2 years ago

https://github.com/idealvin/coost.git

跨平台类go语言编程的c++协程库。