
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
Draw a picture illustrating the contents of memory, given the following data declarations:
You need to mark all the memory addresses. Assume that your data segment starts at 0x1000 in memory.
Name: .asciiz "Jim Bond!"
Age: .byte 24
Numbers: .word 11, 22, 33
Letter1: .asciiz 'M'
In this format
Hexadecimal
Address, Hex Value, Character/Number/Symbol, Binary Value, Decimal Value
ALREADY HAVE!
marking all the memory addresses. Assuming that the data segment starts at 0x1000 in memory.
The Memory Layout looks like
Byte by Byte
Address Data
0x1000 4a
0x1001 61
0x1002 6d
0x1003 65
0x1004 73
0x1005 00
0x1006 18
0x1007 00
0x1008 0b
0x1009 00
0x100a 00
0x100b 00
0x100c 21
0x100d 00
0x100e 00
0x100f 00
0x1010 14
0x1011 00
0x1012 00
0x1013 00
0x1014 4d
arrow_forward
Step 2
In mips 1 word is equal to 4 bytes.
Address Data
0x1000 0x656d614a
0x1004 0x00180073
0x1008 0x0000000b
0x100c 0x00000021
0x1010 0x00000014
0x1014 0x0000004d
create the data declaration part of the above by creating a file with MARS and assemble it to show the memory contents. You don't have to have .text part since this is just data declaration only. Capture your screen of MARS execution window by checking "ASCII" option of Data Segment part.
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 5 steps with 5 images

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
- Suppose you have the following C++ code: int number; int* intPtr = &number; Suppose number is stored at the 32-bit memory address 0x0040C406 (the “0x” prefix indicates that address is represented as a hexadecimal number). What is the value stored in memory of variable identifier intPtr?arrow_forwardThe address operator O is a variable that holds an address all of these O returns the memory address of a variable dereferences a pointer and allows access to the value of the variable the pointer points toarrow_forwardPlease your code should be in mips assembly languagearrow_forward
- Please help! Please take a look at the code I have provided as a attachment to this question. Please comment each line of code of the differences between program 1 and 2. What happens when you subtract one pointer from another? Is it subtracting the two addresses, or something else? How do you know? What happens when you increment a pointer? Compare and contrast how C-strings are laid out in memory compared to arrays of integers. What's one similarity and one difference? Show how the individual bytes of this integer array are laid out in memory. Thanks!arrow_forwardComment on each snippet with what the snippet does. Assume that there is an array, int arr [6] = {3, 1, 4, 1, 5, 9}, which starts at memory address 0xBFFFFF00. You may assume that each integer is stored in 4 bytes. Register a0 contains arr's address lw t0, 0(a0) lw t1, 8(a0) add t2, t0, t1 sw t2, 4(a0) 2. add t0, x0, x0 loop: slti t1, t0, 6 beq t1, x0, end slli t2, t0, 2 add t3, a0, t2 lw t4, 0(t3) sub t4, x0, t4 sw t4, 0(t3) addi t0, t0, 1 j loop end: pseudo-instructions are not allowedarrow_forwardPROGRAMMING EXERCISES: 4. How many double entries can aValues[MAX_A] store? 5. What is the value of aValues[2]? [Hint: the value is an address] 6. How many bytes are allocated to sentence?arrow_forward
- Please explain, (Selection all that apply) Which of the following apply to a pointer? Choose the answer: A. A pointer is a data type B. A pointers stores an address C. You can have pointers to custom data types you define.arrow_forwardConsider the code below: main() { float b, *y; char c, *z; int a, X = &a; y = &b; z = &c; Given the memory representation of the variables of type int, char, and float: 1122 1123 1124 1125 1126 1127 1128 1129 1130 address 887.145 77 value b variable What is the correct value of the following items? (If the numerical value cannot be determined, type NA as your answer). z: *x: а: &c:arrow_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