- #1
heman
- 361
- 0
Can some one guide me ,,how to write an assembly language function for Pentium-class PCs with the following features.
1. C callable.
2. Takes one 32-bit argument
3. Returns 32-bit argument obtained by reversing the bits of the input (i.e. bit 0 of input appears at bit 31, bit 1 at bit 30 and so on).
4. Write another function in C which implements the same behavior.
5. Using the time related function calls, find the time of execution of C function and assembly language function (when the call is made 50000 times).
i just need an general outline..I will be highly thankful for yours help..
1. C callable.
2. Takes one 32-bit argument
3. Returns 32-bit argument obtained by reversing the bits of the input (i.e. bit 0 of input appears at bit 31, bit 1 at bit 30 and so on).
4. Write another function in C which implements the same behavior.
5. Using the time related function calls, find the time of execution of C function and assembly language function (when the call is made 50000 times).
i just need an general outline..I will be highly thankful for yours help..