
Database System Concepts
7th Edition
ISBN: 9780078022159
Author: Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher: McGraw-Hill Education
expand_more
expand_more
format_list_bulleted
Question

Transcribed Image Text:How many times the loop starting at line 20 executes lines of code going up to line
27 before moving to line 28? (type number)

Transcribed Image Text:HAHAAAAAAHN
HNM1000 OHNM
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
27
28
30
31
32
section
. data
.section .text
.globl _start
start:
pushq $4
pushq $3
call function-A
addq $16, $rsp
movg %rax, %rbx
movq $1, rax
int $0x80
.type function-A, @function
function-A:
pushq rbp
movq rsp, rbp.
subq $8, rsp
movg 16(%rbp), %rbx
movq 24 (rbp), rcx
movg %rbx, -8(%rbp)
label-A:
#variable y
#variable z
cmpq $1, $rcx
je label-B
movq -8 (&rbp), rax
imulg %rbx, srax
movq rax, -8 (%rbp)
decq rcx
jmp label-A
label-B:
movq -8 (Srbp), rax
movq rbp, rsp
popq &rbp
ret
Expert Solution

This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
Step by stepSolved in 3 steps

Knowledge Booster
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.Similar questions
- Question 12 What is the label to reach the commands to invoke the Operating System O/S? Question 13 What register contains the value for conditional statement for execution of the loop?arrow_forward3. Add B36EH with 264DH. Specify Flag status. SF=? ZF=? AF=? PF=? CF =?arrow_forwardModify the findmax.s file to find the minimum value in the list.REQUIRED SPECIFICATIONS: Create your own list of 10 values. Use the byte data type rather than the int (hint: you will need to use the smallest sized register and move over by a byte for reading next value) Adjust suffixes to match register destination size Below is the findmax.s file. The hashmarks reprsent notes taken. This is assembly language on Ubuntu Linix. data_items: #These are the data items .int 3,67,34,222,45,75,54,34,44,33,22,11,66,0 .section .text .globl _start _start: movq $0, %rdi # move 0 into the index register movl data_items(,%rdi,4), %eax # load the first byte of data movl %eax, %ebx # since this is the first item, %rax is # the biggest start_loop: # start loop cmpl $0, %eax # check to see if we’ve hit the end je loop_exit incq %rdi # load next value movl data_items(,%rdi,4), %eax cmpl %ebx, %eax # compare values jle start_loop # jump to loop beginning if the new # one isn’t bigger…arrow_forward
- Topic: Server Side Development How do you tell the server that session variables are being used? You do not have to add any special code. The server handles session variables automatically. Include the code: $_SESSION['sessionVarName'] = $varName; exchanging varName with the name of the variables for your program. Include the code: session_start(); as the first line in each function that uses a session variable. Include the code: session_start(); at the very top of the Web page.arrow_forwardFilename: runlength_decoder.py Starter code for data: hw4data.py Download hw4data.py Download hw4data.pyYou must provide a function named decode() that takes a list of RLE-encoded values as its single parameter, and returns a list containing the decoded values with the “runs” expanded. If we were to use Python annotations, the function signature would look similar to this:def decode(data : list) -> list: Run-length encoding (RLE) is a simple, “lossless” compression scheme in which “runs” of data. The same value in consecutive data elements are stored as a single occurrence of the data value, and a count of occurrences for the run. For example, using Python lists, the initial list: [‘P’,‘P’,‘P’,‘P’,‘P’,‘Y’,‘Y’,‘Y’,‘P’,‘G’,‘G’] would be encoded as: ['P', 5, 'Y', 3, ‘P’, 1, ‘G’, 2] So, instead of using 11 “units” of space (if we consider the space for a character/int 1 unit), we only use 8 “units”. In this small example, we don’t achieve much of a savings (and indeed the…arrow_forwardPython Turtle, the clearstamp(face_up_lis) not working for some reason. please helparrow_forward
- In a dataframe, Create a header list of ["A", "B", "CT Paragraph V BI U A EV EM + v | 33arrow_forwardWhat do the urlretrieve and urlopen functions do?arrow_forwardHAHAAAAAAHN HNM1000 OHNM 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 27 28 30 31 32 section . data .section .text .globl _start start: pushq $4 pushq $3 call function-A addq $16, $rsp movg %rax, %rbx movq $1, rax int $0x80 .type function-A, @function function-A: pushq rbp movq rsp, rbp. subq $8, rsp movg 16(%rbp), %rbx movq 24 (rbp), rcx movg %rbx, -8(%rbp) label-A: #variable y #variable z cmpq $1, $rcx je label-B movq -8 (&rbp), rax imulg %rbx, srax movq krax, -8 (%rbp) decq rcx jmp label-A label-B: movq -8 (Srbp), rax movq rbp, rsp popq &rbp retarrow_forward
arrow_back_ios
arrow_forward_ios
Recommended textbooks for you
- Database System ConceptsComputer ScienceISBN:9780078022159Author:Abraham Silberschatz Professor, Henry F. Korth, S. SudarshanPublisher:McGraw-Hill EducationStarting Out with Python (4th Edition)Computer ScienceISBN:9780134444321Author:Tony GaddisPublisher:PEARSONDigital Fundamentals (11th Edition)Computer ScienceISBN:9780132737968Author:Thomas L. FloydPublisher:PEARSON
- C How to Program (8th Edition)Computer ScienceISBN:9780133976892Author:Paul J. Deitel, Harvey DeitelPublisher:PEARSONDatabase Systems: Design, Implementation, & Manag...Computer ScienceISBN:9781337627900Author:Carlos Coronel, Steven MorrisPublisher:Cengage LearningProgrammable Logic ControllersComputer ScienceISBN:9780073373843Author:Frank D. PetruzellaPublisher:McGraw-Hill Education

Database System Concepts
Computer Science
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:McGraw-Hill Education

Starting Out with Python (4th Edition)
Computer Science
ISBN:9780134444321
Author:Tony Gaddis
Publisher:PEARSON

Digital Fundamentals (11th Edition)
Computer Science
ISBN:9780132737968
Author:Thomas L. Floyd
Publisher:PEARSON

C How to Program (8th Edition)
Computer Science
ISBN:9780133976892
Author:Paul J. Deitel, Harvey Deitel
Publisher:PEARSON

Database Systems: Design, Implementation, & Manag...
Computer Science
ISBN:9781337627900
Author:Carlos Coronel, Steven Morris
Publisher:Cengage Learning

Programmable Logic Controllers
Computer Science
ISBN:9780073373843
Author:Frank D. Petruzella
Publisher:McGraw-Hill Education