Show all work please Submit on D2L Submit only one file with

Show all work please.
Submit on D2L. Submit only one file with one of these extension: .pdf, .doc, .docx. or rtf You may scan or take a picture of your handwritten answers. Make sure they are fully legible (bright enough and your text has horizontal direction) You may discuss the homework with your colleagues, but you must only submit your own work. ONLY Problem 1 needs to be turned In. Problem 2 It for your personal practice and will NOT be graded, even if you turn it in. Given the provided C code segment Perform the following tasks: d1 = (x0 + x1). c0 d2 = d1 + 5; e = (x1 + x2). (x3 + c0) f = e * y0 g = x0 - 10 h = f + g Create a control-dataflow graph (CDFG) Create an unscheduled sequencing graph Given a latency constraint of 7 cycles, assuming multiplier! have a Latency of 2 cycles, ALIK hat a latency of 1 cycle, use the UST_R scheduling algorithm to determine a minimum resource schedule represented as a scheduled sequencing graph. Create interval graphs for multipliers, ALUs, and registers. Use the LeftEdge algorithm to determine the resource sharing and binding. Create a datapath. Create a controller for the datapath to execute the operations using the schedule from step (e).

Solution

The size(1) command reports the sizes (in bytes) of the text, data, and bss segments.

1. Check the following simple C program

#include <stdio.h>

int main(void)

{

    return 0;

}

2. Let us add one global variable in program, now check the size of bss (highlighted in red color).

#include <stdio.h>

int global; /* Uninitialized variable stored in bss*/

int main(void)

{

    return 0;

}

3. Let us add one static variable which is also stored in bss.

#include <stdio.h>

int global; /* Uninitialized variable stored in bss*/

int main(void)

{

    static int i; /* Uninitialized static variable stored in bss */

    return 0;

}

4. Let us initialize the static variable which will then be stored in Data Segment (DS)

#include <stdio.h>

int global; /* Uninitialized variable stored in bss*/

int main(void)

{

    static int i = 100; /* Initialized static variable stored in DS*/

    return 0;

}

5. Let us initialize the global variable which will then be stored in Data Segment (DS)

#include <stdio.h>

int global = 10; /* initialized global variable stored in DS*/

int main(void)

{

    static int i = 100; /* Initialized static variable stored in DS*/

    return 0;

}

#include <stdio.h>

int main(void)

{

    return 0;

}

Show all work please. Submit on D2L. Submit only one file with one of these extension: .pdf, .doc, .docx. or rtf You may scan or take a picture of your handwrit
Show all work please. Submit on D2L. Submit only one file with one of these extension: .pdf, .doc, .docx. or rtf You may scan or take a picture of your handwrit

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site