Write the following code in ARM 32 *AND* 64 bit assembly. Be sure to follow C calling conventions.
char *strcpy(char *dst, char *src) {
char *dst_copy = dst;
while (*src) {
(*dst) = (*src)
++dst;
++src;
}
(*dst) = (*src)
return dst_copy;
}
Dos and Dont's
- DO follow ARM calling conventions
- DO NOT just compile the code with a C compiler and turn that in. That is cheating :(
- DO check your work. Download an ARM gcc/gas tool chain and make sure your code works.
- DO Turn in both an ARM 32bit and ARM 64bit version and make sure both follow the correct conventions.