logo

Crowdly

Browser

Add to Chrome

CA & OS (Computer Architecture) - EFREI - Fall 2026

Looking for CA & OS (Computer Architecture) - EFREI - Fall 2026 test answers and solutions? Browse our comprehensive collection of verified answers for CA & OS (Computer Architecture) - EFREI - Fall 2026 at moodle.lab.ii.agh.edu.pl.

Get instant access to accurate answers and detailed explanations for your course questions. Our community-driven platform helps students succeed!

Before you start doing this exercise, some configuration of SASM environment is required. After starting the SASM environment go to the Settings menu and find the Build tab. On that tab check if x86 is checked in Mode section and GAS is checked in Assembler section. DO NOT touch rest of the settings ! Correct settings are shown on figure below.

Please open SASM, make sure your settings are correct (x86 & GAS), copy & paste the simple program provided separately in this section (Lab 1) of the course, build it and run it. Was the program build correctly without errors?

Here's an example on how it could look like after building and running the program with the  button (under Linux, so no "_" here, but you'll probably need the underscores):

100%
0%
View this question

This exercise focuses on how different types of data are arranged in memory.

The x86 memory organization is called little endian. It means that the least significant byte (LSB) of a multi-byte variable will be placed at a lower memory address. For a review, a slide from the lecture:

So, let's start with some basics. Which byte sequence would you rather find in a memory dump if the machine you're working with is little-endian and the memory contains a 32-bit variable which has the value of 0x01020304 in hexadecimal?

❌
❌
❌
✅
❌
❌
View this question
short int type variables in memory

Now, still in the debug session, you should see a small strip at the bottom of the SASM window with GDB command. In the text box there, enter the command x /32bx and the address you have in the eax register (replace _____ with the address) and press enter.

x /32bx ____

Please, do not type mindlessly what you see below - the command is specific to one of the operating systems. Instead, replace the address number with what you had read from eax before:

Copy & paste the command you typed to the report text box in the correct section, using the provided template.

You will receive the output - the memory dump of the interesting section, for example:

Again, copy&paste the memory dump to the appropriate section in the report as many times as needed and highlight the values according to the instructions in the template.

View this question

Want instant access to all verified answers on moodle.lab.ii.agh.edu.pl?

Get Unlimited Answers To Exam Questions - Install Crowdly Extension Now!

Browser

Add to Chrome