TPC16 Compiler Source Code 1.0

軟體性質: 免費試用 ‎檔案大小: 530.39 KB
‎使用者評分: 4.6/5 - ‎5 ‎評分

渦輪帕斯卡編譯器寫在渦輪帕斯卡。這不是 Turbo Pascal 的 「原始 " Borland」原始程式碼,因為它不是用 Pascal 編寫的。這是 TPC16,一個從零開始編寫的 Turbo Pascal 相容編譯器。它是與博蘭渦輪帕斯卡 7.0 命令行編譯器 TPC 完全相容的原始程式碼。Exe。這意味著它使用相同的語法,併為 x86 生成完全相同的編譯單位和 16 位元碼。 此原始碼顯示 Pascal 程式設計語言的所有美感,並揭示了為任何語言(而不僅僅是 Pascal)構建快速緊湊的編譯器所需的所有技巧。有了這個 Turbo Pascal 單通編譯器原始碼,你會得到: 符號表的體系結構, 瞭解 Turbo Pascal 單元結構, 超快掃描器, 用於快速關鍵字搜索的哈希表示例, 任何編譯器需要的資料結構的 Plethora, 處理識別子的演演算法, 範圍與單元,Parser 分析一系列權杖並檢查 Pascal 語法、編譯器錯誤報告範例、運算碼、任意表示式處理和代碼產生範例、用於生成具有有限寄存器集的複雜代碼的演算法、行內彙編編譯器範例、中間代碼結構示例、優化代碼生成器、瞭解導入物件檔、優化連結器以及解決引用的出色方法、與 Borland Turbo Pascal 7 相容的工作編譯器,深入瞭解 Turbo Pascal 編譯器內部等。 此包最重要的功能是實際實現各種演算法以及經過驗證的數據結構。成功的編譯器實現主要取決於使用的數據結構和演算法。因此,TPC16 源可以用作如何為編譯器實現複雜演算法的靈感。關於編譯器設計的最佳電子書。

版本歷史記錄

  • 版本 1.0 發佈於 2009-10-22

軟體細節

終端使用者許可協定

Source Code License Agreement Except where otherwise noted, all of the documentation, source code and software included in the TPC16 package is copyrighted by Igor Funa. This License Agreement is a legal agreement between you (either an individual or a single entity) and Igor Funa for the TPC16 software product identified above, which may include associated software components, source code, media, printed materials, and online or electronic documentation (Software). By installing, copying, or otherwise using the Software, you agree to be bound by the terms of this Agreement. If you do not agree to the terms of this Agreement, do not install or use the Software. DEFINITIONS For purposes of this Agreement, the following definitions shall apply: * "Software" shall mean the particular Software product purchased by Licensee from Igor Funa. * "Source Code" shall include computer programming code or any computer instructions necessary to compile the Software. * "Derivative Works" means any software programs which are developed by Licensee and which incorporate or contain modifications of any part of Source Code, and including any revision, modification, translation (including compilation or recapitulation by computer), abridgment, condensation, expansion or any other form in which Source Code, may be recast, transformed or adapted. * "Purpose" means the creation of bug-fixes, corrections, enhancements, revisions, modifications and adaptations of Source Code and addition of new user interfaces, features and functionality to the Software. LICENSEE RIGHTS AND RESTRICTIONS 1. By accepting this Agreement and subject to the restrictions and consideration stated below, Igor Funa grants Licensee a nonexclusive, nontransferable, perpetual, worldwide right to: 1.1 use and reproduce as many copies of the Source Code as are reasonably necessary only for the purpose of exercising the rights granted under this Agreement; 1.2 modify and create Derivative Works of the Source Code for the Purpose; 1.3 use, reproduce, have reproduced, sell (via sublicense), distribute (via sublicense), perform or otherwise transfer (via sublicense), directly or through distributors or resellers, Derivative Works, only in object code format, that are consistent with the Purpose and subject to the reporting and audit provisions of the Agreement. 2. No right is granted to Licensee hereunder to permit, authorize, license or sublicense any third party to view or use the Source Code. 3. No right is granted to Licensee hereunder to sell, distribute, make available, publish or otherwise transfer the Source Code except as provided in section 1. above. 4. Licensee shall not use the Source Code for anything other than its intended, legitimate, and legal purpose. 5. Licensee shall not use the Source Code in any manner not specifically permitted under this Agreement. 6. The terms of this Agreement do not entitle Licensee to receive any support or maintenance services from Igor Funa with respect to the Source Code. CONFIDENTIALITY AND PROPRIETARY Licensee agrees and acknowledges that the Source Code is proprietary, valuable, and not generally known to the public. Licensee agrees that it will maintain, through reasonable means, the confidentiality of the Source Code, and will not disseminate or allow unrestricted access. Licensee shall not distribute the Source Code to anyone other than employees and software developers of Licensee's organization or third party contractors working on behalf of Licensees organization with a need to know. Licensee may be held legally responsible for any infringement of intellectual property rights that is caused or encouraged by Licensees failure to abide by this Agreement. DISCLAIMER This Software, Source Code and any support from Igor Funa are provided AS IS and without warranty, express or implied. Igor Funa specifically disclaims any implied warranties of merchantability and fitness for a particular purpose. In no event will Igor Funa be liable for any damages, including but not limited to any lost profits, lost savings or any incidental or consequential damages, whether resulting from impaired or lost data, software or computer failure or any other cause, or for any other claim by the user or for any third party claim.