Computer Systems A Programmer’s Perspective ----阅读翻译日志

借助google 翻译读一下这本书吧,作个记录程序员

Computer Systems A Programmer’s Perspective 简称 --CSAPP shell

译文: 从程序员的角度透视计算机系统编程

Randal E. Bryantpromise

Carnegie Mellon University 卡内基·梅隆大学安全

David R. O’Hallaron服务器

Carnegie Mellon University and Intel Labs卡内基梅隆大学和英特尔实验室网络

Chapter 1 A Tour of Computer Systems并发

第1章计算机系统之旅app

A computer system consists of hardware and systems software that work together to run application programs. Specific implementations of systems change over time, but the underlying concepts do not. All computer systems have similar hardware and software components that perform similar functions. This book is written for programmers who want to get better at their craft by understanding how these components work and how they affect the correctness and performance of their programs.ide

计算机系统由硬件和系统软件组成,它们一块儿工做来运行应用程序。 系统的具体实施随着时间而改变, 但底层的概念没有。全部的计算机系统都有类似的硬件和软件组件,执行相似的功能。本书是为但愿经过理解这些组件的工做方式以及它们如何影响其程序的正确性和性能而更好地掌握其技巧的程序员编写的。

You are poised for an exciting journey. If you dedicate yourself to learning the concepts in this book, then you will be on your way to becoming a rare “power programmer,” enlightened by an understanding of the underlying computer system and its impact on your application programs.

你准备好了一个使人兴奋的旅程。 若是你致力于学习本书中的概念,那么你将成为一名可贵的“大牛”经过了解计算机系统的底层及其对应用程序的影响,将对你有更多的启发。

You are going to learn practical skills such as how to avoid strange numerical errors caused by the way that computers represent numbers. You will learn how to optimize your C code by using clever tricks that exploit the designs of modern processors and memory systems. You will learn how the compiler implements procedure calls and how to use this knowledge to avoid the security holes from buffer overflow vulnerabilities that plague network and Internet software. You will learn how to recognize and avoid the nasty errors during linking that confound the average programmer. You will learn how to write your own Unix shell, your own dynamic storage allocation package, and even your own Web server. You will learn the promises and pitfalls of concurrency, a topic of increasing importance as multiple processor cores are integrated onto single chips

你将学习实用技能,例如如何避免由计算机表示数字的方式引发的奇怪数值错误。您将学习如何使用利用现代处理器和内存系统设计的巧妙技巧来优化您的C代码。您将了解编译器如何实现过程调用以及如何使用这些知识来避免困扰网络和Internet软件的内存溢出安全漏洞。您将学习如何识别和避免连接过程当中使人讨厌的错误,这会让普通程序员感到困惑, 你将学习如何编写你本身的Unix shell,你会有本身的动态存储分配包,甚至你本身的Web服务器。 您将了解并发的特性和缺陷, 随着多个处理器内核集成到单个芯片上,这个话题变得愈来愈重要

In their classic text on the C programming language [58], Kernighan and Ritchie introduce readers to C using the hello program shown in Figure 1.1. Although hello is a very simple program, every major part of the system must work in concert in order for it to run to completion. In a sense, the goal of this book is to help you understand what happens and why, when you run hello on your system.

在C语言编程的经典文本[58]中, Kernighan和Ritchie使用图1.1中显示的hello程序向读者介绍C语言。
虽然你好是一个很是简单的程序,  该系统的每一个主要部分都必须协同工做才能完成。
从某种意义上说, 本书的目标是帮助你理解当你在你的系统上运行hello时,发生了什么,为何。

We begin our study of systems by tracing the lifetime of the hello program, from the time it is created by a programmer, until it runs on a system, prints its simple message, and terminates. As we follow the lifetime of the program, we will briefly introduce the key concepts, terminology, and components that come into play. Later chapters will expand on these ideas.

咱们经过追踪hello程序的生命周期来开始咱们的系统研究, 从程序员建立时开始,直到它在系统上运行,
打印它的简单信息,并终止。 当咱们追随程序的生命周期时, 咱们将简要介绍一些关键概念,术语和组件。 后面的章节将会扩展这些想法。

#include 
 int main() 
 { 
 printf("hello, world\n"); 
 }
相关文章
相关标签/搜索