FreeBASIC マニュアルのトップに戻る

FreeBASIC DevFbcModules

目次→FreeBASIC のハッキング→FreeBASIC でのハッキングのための情報Quick overview of all modules←オリジナル・サイト

全てのモジュールの概観

(少し分類しただけ)

fbc
フロントエンド: main module, entry point, command-line handling, assembling/linking/etc.

objinfo
Object/library information section reader/writer, used by fbc. Includes tiny ELF/COFF object file format readers.

fb
FBパーサー・インターフェースで、input/include ファイル毎に parser を始めます。

parser
再帰的なパーサーで、トークンのための lexast を構築するように求めます。

lex, pp
レクサー/トークナイザおよびプリプロセッサー指令解析。

error
Error reporting functions, used by many parts of fbc, mostly the parser though.

rtl
rtlib/gfxlib 関数呼び出しのための ast ノードを構築するためのヘルパー関数。 宣言は、rtlib/gfxlib2 ソース・コード中で、実際の関数と一致しなければなりません。

symb
Symbols lookup and storage (information on variables/functions), scope/namespace handling, name mangling; used by parser/ast/emitters.

ast
Abstract syntax tree: per-function code-flow + expressions.
astNew*(): Node creation/tree building, used by the parser.
astLoad*(): First step in emitting, calls ir, called after each function is parsed.

ir, ir-hlc, ir-llvm, ir-tac
Intermediate representation interface (using virtual registers) used to emit the ast.
hlc: High level C emitter (high level in comparison to the ASM backend anyways)
llvm: LLVM IR emitter
tac: Three-address-codes module (asm backend), calls emit. Reponsible for register allocation, reusing, spilling.

reg
Register allocator for ir-tac.

emit, emit_SSE, emit_x86
Assembler emitter abstraction and SSE/x86 emitters.

edbg_stab
Stabs debug format emitting for emit_x86.

dstr
Dynamic z/wstrings, used mostly by lex.

hash
Generic hash table, used by symb/fbc.

hlp, hlp-str
Helper functions for all parts of the compiler, plus another implementation of dynamic z/wstrings.

list
内蔵記憶装置プールを備えた、一般的なリンク・リストで、よく使われます。 これは、純粋なプールされれたアロケーターとして、しばしば、使われます。例えば ASTノードあるいはシンボルです。

flist
list-based without deletions.

pool
list ベースのアロケーター(配分者)で、小さなものから大きなものまで変動するノード・サイズで、複数のリストを使います。そして、できるだけ浪費する記憶が少なくなるように、次の最も良くぴったりする塊に、文字列を保管させるようにします。 シンボル識別子を保管するために用いられます。

stack
Generic list-based stack.

FreeBASIC の開発者用情報 に戻る
目次に戻る
ページ歴史:2018-01-27 17:51:05
日本語翻訳:WATANABE Makoto、原文著作者:DkLwikki

ホームページのトップに戻る

表示-非営利-継承