ARMv8: Minimum value functions (Ep. 11)
Implement a fully link-able min() function in ARMv8. Code is implement on an AWS EC2 instance using Linux. 0:08 Implement a function that returns the minimum of two integers, in C-language. 2:22 Implement a function that returns the minimum of two integers, in C-language. Use calls to the previous function to implement the function, rather than explicit logic with IF-ELSE statements. 3:07 Implement a main() function in C-language that tests the operation of the minimum functions. 4:30 Implement the binary minimum function in ARMv8. 10:08 Implement the ternary minimum function in ARMv8. 24:28 Link the main() C-code and the ARMv8 source codes using GCC. Errata: At about 18 minutes in, we shadow copy some variables to the stack, requiring 20 total bytes of stack space. Yet, we left the command "sub sp, sp, #16" to allocate only 16 bytes of stack space. This would need to be modified to "sub sp, sp, #20" to avoid clobbering the stack of main(). How it still worked after messing with main()'s stack 🤷.
Download
0 formatsNo download links available.