Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Assembly/Architecture question involving C++. I am struggling to answer question number 2. Code and output down below. Intel manual is required in order to answer

Assembly/Architecture question involving C++. I am struggling to answer question number 2. Code and output down below. Intel manual is required in order to answer the question. All help is appreciated.

image text in transcribed

// Sample CPUID program for Visual Studio

#include

#include

#include

using namespace std;

int main(int argc, char* argv[])

{

int b[4] = { 0 };

int a;

for (a = 0; a

__cpuid(b, a);

cout

setfill('0')

}

return 0;

}

Output:

image text in transcribed

Use the CPUID program discussed in class on February 5 to determine some capabilities of your home PC or Mac. Refer to the Intel documentation discussed in the February 5 lab to decode the CPUID program output. The Windows Settings/About window also contains some information related to this homework. Update this document and turn it in io a Canvas drop box. You will have to modify the parameters to the CPUID instruction to answer some of these questions. 1. What is the processor type of the PC you used? 2. What is the processor instruction cache size? 3. Does the processor support the x87 floating point unit? 4. (Use table 3-14) a. What is the Brand Index value? b. String? 5. Does the processor support the AVX instructions? Code:0 gives 000000Gd 756e6547 6c65746e 49656e69 Code:1 gives 000206a7 4100800 1f9ae3bf bfebfbff Code:2 gives 76035a1 fObGff ca0000 Code:3 gives 00000000 00 0 Code:4 gives 1c004121 1c0003f 3f 0 Use the CPUID program discussed in class on February 5 to determine some capabilities of your home PC or Mac. Refer to the Intel documentation discussed in the February 5 lab to decode the CPUID program output. The Windows Settings/About window also contains some information related to this homework. Update this document and turn it in io a Canvas drop box. You will have to modify the parameters to the CPUID instruction to answer some of these questions. 1. What is the processor type of the PC you used? 2. What is the processor instruction cache size? 3. Does the processor support the x87 floating point unit? 4. (Use table 3-14) a. What is the Brand Index value? b. String? 5. Does the processor support the AVX instructions? Code:0 gives 000000Gd 756e6547 6c65746e 49656e69 Code:1 gives 000206a7 4100800 1f9ae3bf bfebfbff Code:2 gives 76035a1 fObGff ca0000 Code:3 gives 00000000 00 0 Code:4 gives 1c004121 1c0003f 3f 0

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database And Expert Systems Applications 24th International Conference Dexa 2013 Prague Czech Republic August 2013 Proceedings Part 2 Lncs 8056

Authors: Hendrik Decker ,Lenka Lhotska ,Sebastian Link ,Josef Basl ,A Min Tjoa

2013th Edition

3642401724, 978-3642401725

More Books

Students also viewed these Databases questions