(This is not documented yet. Please add details about pass1 here.)
The frontend. This file is really intuitive.
Reading through, you will find block, buildtree, branch, plabel, ecomp, tempnode and so on. These functions are defined in trees.c.
You can learn much from buildtree(). Write a simple C program and "ccom -Xb" it.
Also see node structure.