Question: Make a program containing one function with source in C++ and one function with source code in X86. Make a bash file that does the

Make a program containing one function with source in C++ and one function with source code in X86. Make a bash file that does the usual actions, namely: == translates the X86 file into an object file == translates the C++ file into an object file == links the 2 object files into a single executable == launches that single executable

The Main module is not part of the solution. It outputs various greetings and farewells. The important thing it does is call the Accumulator module written in X86. The accumulator receives a sequence of 64 bit signed integer. Each inputted number is

separated from its predecessor and successor by white space. The last inputted number is

followed by enter and then followed by control+D. The X86 module adds all the inputted numbers and displays the sum of those numbers. The last action of the X86 module is to return the sum to the main function.

Make a program containing one function with source in C++ and one

Sample session while running this program. Welcome to summing a sequence of integers. This program is brought to you by Michelle Zaragoza. The fast accumulator program written in X86 Intel language has begun. Instructions: Enter a sequence of integers. Include white space between each number. To terminate press 'Enter' followed by Control+D Enter an integer: 7 Enter an integer: -3 Enter an integer: 12 Enter an integer: 1 Enter an integer: Thank you. You entered 4 numbers with a sum equal to 17. The X86 function will now return the sum to the caller program. Bye. The main program received this number: 17 Main will return 0 to the operating system. Have a nice day. Sample session while running this program. Welcome to summing a sequence of integers. This program is brought to you by Michelle Zaragoza. The fast accumulator program written in X86 Intel language has begun. Instructions: Enter a sequence of integers. Include white space between each number. To terminate press 'Enter' followed by Control+D Enter an integer: 7 Enter an integer: -3 Enter an integer: 12 Enter an integer: 1 Enter an integer: Thank you. You entered 4 numbers with a sum equal to 17. The X86 function will now return the sum to the caller program. Bye. The main program received this number: 17 Main will return 0 to the operating system. Have a nice day

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!