| < Day Day Up > |
|
Creating and Linking C Libraries: Write a C function that counts the number of words in a text file and returns the count. Compile the routine and create a static library. Write a C++ program that calls the wordCount() function.
Inline Assembly: Write a C++ function that takes an array of integers and the number of elements the array contains as arguments. Sum the array contents and return the result using assembly language for your particular hardware and compiler.
Stand Alone Assembly Modules: Convert the array summation function you wrote in the previous exercise to a stand-alone assembly module. Create a C++ program that calls the arraySum() function.
Java Native Interface (JNI): Write a Java program that calls the wordCount() function created in the first exercize.
| < Day Day Up > |
|