comparison doc/internals.txt @ 363:d96c30e60ddf

Added pass2 and various supporting logic including symbol lookups
author lost@starbug
date Tue, 06 Apr 2010 21:03:19 -0600
parents e7885b3ee266
children 6a98cc90c14f
comparison
equal deleted inserted replaced
362:4867f18c872f 363:d96c30e60ddf
7 Pass 1 7 Pass 1
8 ------ 8 ------
9 9
10 This pass reads the entire source code and parses each line into an internal 10 This pass reads the entire source code and parses each line into an internal
11 representation. Macros, file inclusions, and conditional assembly 11 representation. Macros, file inclusions, and conditional assembly
12 instructions are resolved at this point as well. 12 instructions are resolved at this point as well. Instructions with known
13 sizes will have their sizes resolved at this point.
13 14
14 Pass 2 15 Pass 2
15 ------ 16 ------
16 17
17 This pass assigns instruction sizes to all invariate instructions. Invariate 18 Check all exported symbols for validity and set them as imports if the
18 instructions are any instructions with a fixed size, including those with 19 assembler state says so. Also resolve all symbol references in all
19 forced addressing modes. 20 expressions to be direct references either to the symbol table or
21 to the import list.
20 22
21 Pass 3 23 Pass 3
22 ------ 24 ------
23 25
24 This pass resolves all instruction sizes that can be resolved without 26 This pass resolves all instruction sizes that can be resolved without