Escrito por estudiantes que aprobaron Inmediatamente disponible después del pago Leer en línea o como PDF ¿Documento equivocado? Cámbialo gratis 4,6 TrustPilot
logo-home
Resumen

Summary Computer Systems: A Programmer's Perspective Chapter 3

Puntuación
5.0
(1)
Vendido
6
Páginas
28
Subido en
20-09-2020
Escrito en
2020/2021

This is a summary of Computer Systems: A Programmer's Perspective Chapter 3: Machine-Level Representation of Programs by Randal E. Bryant and David R. O’Hallaron.

Institución
Grado

Vista previa del contenido

Computer Systems: a Programmer’s
Perspective
Randal E. Bryant en David R. O’Hallaron


Chapter 3 – Machine-Level Representation of
Programs
Computers execute machine code, sequence of bytes encoding the low-level operations that
manipulate data, manage memory, read and write data on storage devices, and communicate over
networks. A compiler generates machine code through a series of stages, based on the rules of the
programming language, the instruction set of the target machine, and the conventions followed by
the operating system. The GCC C compiler generates its output in the form of assembly code, a
textual representation of the machine code giving the individual instructions of the program. GCC
then invokes both an assembler and a linker to generate the executable machine code from the
assembly code.

When programming in a high-level language such as C, we are shielded from the detailed machine-
level implementation of our program. In contrast, when writing programs in assembly code, a
programmer must specify the low-level instructions the program uses to carry out a computation.
Working on high is level is most of the time more productive and reliable. Type checking provided by
a compiler helps detect many program errors and makes sure we reference and manipulate data in
consistent ways. A program written in a high-level language can be compiled and executed on a
number of different machines, whereas assembly code is highly machine specific.

Still, it is important to know a bit of assembly code. By reading assembly code, we can understand
the optimization capabilities of the computer and analyze the underlying inefficiencies in the code.
Sometimes the high-level language hides information about the run-time behavior of a program. This
information can be seen on machine-code level and can be used to prevent attacks on programs.

To understand assembly language, we'll need to understand the transformations typical compilers
make in converting the constructs of C into machine code. Optimizing compilers can rearrange
execution order of C code, eliminate unneeded computations, replace slow operations with faster
ones, and even change recursive computations into iterative ones. It is a form of reverse engineering
– trying to understand the process by which a system was created by studying the system and
working backward. To understand assembly language, just the general principles will not suffice:
you'll need the details as well.

Assembly language is rather peculiar, because it was made by two rivals (Intel and AMD) and only
makes sense when viewed from a historical perspective.

3.1 - A Historical Perspective
The Intel processor line x86 started with one of the first single-chip 16-bit microprocessors. Since
then, it has been improved and improved again. To see a list of all Intel processors from the first to
now, read page 195 – 196.

Each successive processor has been designed to be backward compatible- able to run code compiled
for any other version. Due to this, there are many strange artifacts in the instruction set due to this
evolutionary heritage. The most recent processor from Intel is Intel64, the 64-bit extension to IA32

Libro relacionado

Escuela, estudio y materia

Institución
Estudio
Grado

Información del documento

¿Un libro?
No
¿Qué capítulos están resumidos?
Hoofdstuk 3
Subido en
20 de septiembre de 2020
Número de páginas
28
Escrito en
2020/2021
Tipo
RESUMEN

Temas

$4.15
Accede al documento completo:

¿Documento equivocado? Cámbialo gratis Dentro de los 14 días posteriores a la compra y antes de descargarlo, puedes elegir otro documento. Puedes gastar el importe de nuevo.
Escrito por estudiantes que aprobaron
Inmediatamente disponible después del pago
Leer en línea o como PDF

Reseñas de compradores verificados

Se muestran los comentarios
4 año hace

5.0

1 reseñas

5
1
4
0
3
0
2
0
1
0
Reseñas confiables sobre Stuvia

Todas las reseñas las realizan usuarios reales de Stuvia después de compras verificadas.

Conoce al vendedor

Seller avatar
Los indicadores de reputación están sujetos a la cantidad de artículos vendidos por una tarifa y las reseñas que ha recibido por esos documentos. Hay tres niveles: Bronce, Plata y Oro. Cuanto mayor reputación, más podrás confiar en la calidad del trabajo del vendedor.
cilevanmarken Universiteit van Amsterdam
Seguir Necesitas iniciar sesión para seguir a otros usuarios o asignaturas
Vendido
191
Miembro desde
7 año
Número de seguidores
166
Documentos
11
Última venta
3 semanas hace

3.9

44 reseñas

5
15
4
15
3
10
2
1
1
3

Documentos populares

Recientemente visto por ti

Por qué los estudiantes eligen Stuvia

Creado por compañeros estudiantes, verificado por reseñas

Calidad en la que puedes confiar: escrito por estudiantes que aprobaron y evaluado por otros que han usado estos resúmenes.

¿No estás satisfecho? Elige otro documento

¡No te preocupes! Puedes elegir directamente otro documento que se ajuste mejor a lo que buscas.

Paga como quieras, empieza a estudiar al instante

Sin suscripción, sin compromisos. Paga como estés acostumbrado con tarjeta de crédito y descarga tu documento PDF inmediatamente.

Student with book image

“Comprado, descargado y aprobado. Así de fácil puede ser.”

Alisha Student

Preguntas frecuentes