Skip to Content
深入理解運算原理|從簡單的機器到無所不能的程式
book

深入理解運算原理|從簡單的機器到無所不能的程式

by Tom Stuart
November 2017
Beginner to intermediate
344 pages
7h 2m
Chinese
GoTop Information, Inc.
Content preview from 深入理解運算原理|從簡單的機器到無所不能的程式
60
|
2
形式的指稱語意使用抽象的數學物件(通常是函數)來指稱像是運算式和陳述式的程式
語言結構,而且因為數學的習慣,規定了如何估算函數之類的事物,這在指稱的操作意
識提供了直接的思考方式。我們採用了比較不正式的指稱語意思維,作為從某種語言到
另一種語言的編譯器,而這也是實際上大多數程式語言最後獲得執行的原因:
javac
Java 程式編譯成 bytecodeJava 虛擬機器會及時的將 bytecode 編譯成 x86 指令,接著
為了要在核心執行,CPU 會將每個 x86 指令解譯成類似 RISC 的微指令 ... 它在哪裡結
束?編譯器、虛擬機器還是一路往下?
程式最終當然會執行,因為語意之塔最終會將實際的機器觸底:半導體裡的電子,順從
物理定律
18
。計算機是維護這種不穩定結構的裝置,諸多複雜的轉釋層在另一轉譯層的
頂端平衡,允許諸如多點觸控手勢和
while
迴圈之類的人類想法逐漸轉化成矽元素和電
子的物理宇宙。
備擇
本章所見的諸多語意風格有許多不同的名稱。小步驟語意就是所謂的
結構化操作語意
structural operational semantic
)和
轉換語意
transition semantic
);大步驟語意更常稱
自然語意
natural semantic
)或
關連語意
relational semantic
);而指稱語意也稱為
定點語意
fixed-point semantic
)或
數學語意
mathematical semantic
)。
此外也還有其他的形式語意的風格,其中一種就是 ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

JSON實務手冊

JSON實務手冊

Tom Marrs

Publisher Resources

ISBN: 9789864766000