The following fragment of code is to be executed on two different superscalar processors. The processors have two integer units and two load/store units (i.e., up to two memory accesses and two integer operations can be executed concurrently. The fetch window is eight instructions. Show how it would be executed, cycle?by?cycle, on:
a: superscalar with in?order issue and in?order execution
b: superscalar with out?of ?order issue and out?of?order execution
LDR r3,[r0] ;get x[i]
ADD r0,r0,#4 ;update pointer
STR r3,[r6] ;store q[i]
ADD r6,r6,#4 ;update pointer
ADD r8,r8,r3 ;keep running total
LDR r4,[r1] ;get y[i]
ADD r1,r1,#4 ;update pointer
ADD r4,r4,r3 ;x[i] + y[i]
ADD r4,r4,r4 ;2(x[i] + y[i])
STR r4,[r2] ;store z[i]
ADD r2,r2,#4 ;update pointer
SUBS r5,r5,#1 ;dec loop counter
Assume that the latency for each instruction is one cycle, except for a load which is two cycles. Assume that the
multiply operation has a latency of two cycles and that the multiplier cannot be reused until the previous
instruction has been completed.
You might also like to view...
For each of the following scenarios, which is the most appropriate interviewing technique. Give a rationale for each answer.
a. Office manager whose main responsibilities are ordering supplies, tracking in-house inventory and maintaining time sheets. This person has a private office and spends most of each day in that office carrying out these responsibilities b. Teenager searching the Web looking for the best joystick for a new computer. c. Surgeon performing an operation. The surgical team is very busy performing operations during the week and can only see you for two hours on Saturday mornings. d. Academic advisor who is staffing the advising hot line during daily afternoon advising hours. e. Student using a new Web-based registration system. f. Air traffic controllers running Arrival and Departure Control at O’Hare Airport and who work in very cramped quarters.
Macro Settings are part of the Trust Center Settings and can be modified based on the needs of the organization
Indicate whether the statement is true or false
Why was it necessary to run ps as root (prefacing the command with sudo)?
Step 1. Access the command line.
a. Log on to the CyberOps Workstation VM as the analyst, using the password cyberops. The account analyst is used as the example user account throughout this lab.
b. To access the command line, click the terminal icon located in the Dock, at the bottom of VM screen. The terminal emulator opens.
Step 2. Display the services currently running.
a. Use the ps command to display all the programs running in the background:
[analyst@secOps ~]$ sudo ps –elf
[sudo] password for analyst:
F S UID PID PPID C PRI NI ADDR SZ WCHAN STIME TTY TIME CMD
4 S root 1 0 0 80 0 - 2250 SyS_ep Feb27 ? 00:00:00 /sbin/init
1 S root 2 0 0 80 0 - 0 kthrea Feb27 ? 00:00:00 [kthreadd]
1 S root 3 2 0 80 0 - 0 smpboo Feb27 ? 00:00:00 [ksoftirqd/0]
1 S root 5 2 0 60 -20 - 0 worker Feb27 ? 00:00:00 [kworker/0:0H]
1 S root 7 2 0 80 0 - 0 rcu_gp Feb27 ? 00:00:00 [rcu_preempt]
1 S root 8 2 0 80 0 - 0 rcu_gp Feb27 ? 00:00:00 [rcu_sched]
1 S root 9 2 0 80 0 - 0 rcu_gp Feb27 ? 00:00:00 [rcu_bh]
1 S root 10 2 0 -40 - - 0 smpboo Feb27 ? 00:00:00 [migration/0]
1 S root 11 2 0 60 -20 - 0 rescue Feb27 ? 00:00:00 [lru-add-drain]
5 S root 12 2 0 -40 - - 0 smpboo Feb27 ? 00:00:00 [watchdog/0]
1 S root 13 2 0 80 0 - 0 smpboo Feb27 ? 00:00:00 [cpuhp/0]
5 S root 14 2 0 80 0 - 0 devtmp Feb27 ? 00:00:00 [kdevtmpfs]
1 S root 15 2 0 60 -20 - 0 rescue Feb27 ? 00:00:00 [netns]
1 S root 16 2 0 80 0 - 0 watchd Feb27 ? 00:00:00 [khungtaskd]
1 S root 17 2 0 80 0 - 0 oom_re Feb27 ? 00:00:00 [oom_reaper]
Pictures can be made to look like sketches or paintings by applying:
A) alignment effects. B) leveling effects. C) artistic effects. D) paging elements.