You will learn how to generate assembly language from the compiler in your C program for more precise control.
In this assignment, you will be asked to write a â€œmath libraryâ€ function. You will be writing the function in C or C++, and using the compiler to generate Assembly code (also called Object Code). Please consult the Help options in Visual Studio on how to generate the assembly code. There are switches during compile that can generate the assembly code for you (researching how to generate the assembly code from Visual Studio using Help and the Web is part of the assignment).
You should use C/C++ for support tasks like defining local variables, returning a value from the function, etc.
The IA-32 Architecture includes the floating point instructions needed to implement these functions. You will save yourself a lot of work if you carefully choose the right instructions. This is a large and powerful instruction set, and you should make use of that power instead of â€œre-inventing the wheel.â€ In other words, donâ€™t spend a lot of time writing a lot of dumb code. Instead, spend your time thinking first, and you will be able to write a smaller amount of smart code. Loops are not necessary for any of these assignments, and your code should not include them. Do not implement a mathematical solution such as a power series. There is no need for something like this and doing all that unneccessary work will reflect poorly on your understanding of the instructions available in the IA-32 Architecture.
Write a function named absD that returns the absolute value of its argument (the D indicates that the argument and return value are of type double). The function prototype is: double absD (double n); Submit your code as a03-yourname.c and also a03-yourname.asm (for the generated assembly file). Ensure you meet the coding guidelines and requirements.
Study Acers provides students with tutoring and help them save time, and excel in their courses. Students LOVE us!No matter what kind of essay paper you need, it is simple and secure to hire an essay writer for a price you can afford at StudyAcers. Save more time for yourself. Delivering a high-quality product at a reasonable price is not enough anymore.
That’s why we have developed 5 beneficial guarantees that will make your experience with our service enjoyable, easy, and safe.
You have to be 100% sure of the quality of your product to give a money-back guarantee. This describes us perfectly. Make sure that this guarantee is totally transparent.Read more
Each paper is composed from scratch, according to your instructions. It is then checked by our plagiarism-detection software. There is no gap where plagiarism could squeeze in.Read more
Thanks to our free revisions, there is no way for you to be unsatisfied. We will work on your paper until you are completely happy with the result.Read more
Your email is safe, as we store it according to international data protection rules. Your bank details are secure, as we use only reliable payment systems.Read more
By sending us your money, you buy the service we provide. Check out our terms and conditions if you prefer business talks to be laid out in official language.Read more