Quantcast
Viewing all articles
Browse latest Browse all 5014

C/C++ • C and ARM64

I want to write an ARM64 assembly language function and then call that function from C code.

How do I preload parameters into ARM64 registers from C before I call the assembly language function?

And how do I fetch the results from ARM64 registers into C after the assembly language function returns?

I've read the "Interacting With C and Python" chapter in Stephen Smith's Programming with 64-Bit ARM Assembly Language: Single Board Computer Development for Raspberry Pi and Mobile Devices, and a few other sources, but none of them seem to cover this rather elementary task.

Statistics: Posted by mdavidjohnson442 — Thu May 16, 2024 5:54 pm — Replies 0 — Views 56



Viewing all articles
Browse latest Browse all 5014

Trending Articles