Hello everyone, I\'m working on a program for school. I chose my raspberry pi 3
ID: 3841437 • Letter: H
Question
Hello everyone,
I'm working on a program for school. I chose my raspberry pi 3 w/ arm CPU as my platform. I'm not familiar with arm assembly except for the simple hello world or addition programs, so you'll have to excuse me if I'm a bit slow on figuring out the tech jargon. So my assignment states the following;
The project wants you to implement multiplication and reduction over a 721-prime. In
order to do that you should implement multi-precision multiplication in radix_2^32. It means you should allocate every 32-bits of field operands inside a 32-bit register.
It might sound stupid, but how do I get started? Any simple examples on what they mean by allocating every 32 bit of field operands? I have no problem doing this by hand or even in CPP, but in assembly, I'm lost. Any help would be really appreciated. Thanks
Explanation / Answer
#include <stdio.h>
int main ()
{
printf("Hello Cross Compiled Pi ");
return 0;
}
# gcc -o native-hello hello.c
# file native-hello
native-hello: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.18, not stripped
# ./native-hello
Hello Cross Compiled Pi
#
# arm-unknown-linux-gnueabi-gcc -o arm-hello hello.c
# file arm-hello
arm-hello: ELF 32-bit LSB executable, ARM, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.27, not stripped
#
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.