Answered step by step
Verified Expert Solution
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.
// 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:
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 0Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started