ECE4500_Homework1_solutions

ECE4500_Homework1_solutions - Virginia Tech ECE 4500 Spring...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
Virginia Tech ECE 4500 Spring 2009 Homework 1 Due at 11:59 p.m. (EST) on February 1 Name: _______ Solutions ____________________________ ID Number: ______________________ Instructions: Enter your answers into a single Word or PDF document. Show your work to a reasonable extent, and clearly indicate your answers . Instructions for submitting your work will be provided at Blackboard. Problem 1. Null and Lobur, chapter 1, exercise 10. a) Under the von Neumann architecture, a program and its data are both stored in memory. Is it therefore possible for program, thinking a memory location holds a piece of data when it actually holds a program instruction, to accidentally (or on purpose) modify itself? ANSWER: Yes, this is possible. If the instructions are placed in a standard read/write memory, then the CPU can overwrite any instruction with a new instruction. In effect, the program can modify itself. b) What implications does this present to you as a programmer.
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 09/24/2011 for the course ECE ECE4500 taught by Professor Kam during the Spring '10 term at Virginia Tech.

Ask a homework question - tutors are online