Mercurial > hg-old > index.cgi
comparison lwlink/trunk/src/main.c @ 121:7bc853cb2ca9
Added simplistic output module for DECB target
author | lost |
---|---|
date | Thu, 22 Jan 2009 02:05:08 +0000 |
parents | 8bc00221ae89 |
children | f9bfc2986023 |
comparison
equal
deleted
inserted
replaced
120:36ce328df3c3 | 121:7bc853cb2ca9 |
---|---|
120 }; | 120 }; |
121 | 121 |
122 extern void read_files(void); | 122 extern void read_files(void); |
123 extern void setup_script(void); | 123 extern void setup_script(void); |
124 extern void resolve_sections(void); | 124 extern void resolve_sections(void); |
125 extern void resolve_references(void); | |
126 extern void do_output(void); | |
125 | 127 |
126 // main function; parse command line, set up assembler state, and run the | 128 // main function; parse command line, set up assembler state, and run the |
127 // assembler on the first file | 129 // assembler on the first file |
128 int main(int argc, char **argv) | 130 int main(int argc, char **argv) |
129 { | 131 { |
141 read_files(); | 143 read_files(); |
142 | 144 |
143 // resolve section bases and section order | 145 // resolve section bases and section order |
144 resolve_sections(); | 146 resolve_sections(); |
145 | 147 |
148 // resolve incomplete references | |
149 resolve_references(); | |
150 | |
151 // do the actual output | |
152 do_output(); | |
153 | |
146 exit(0); | 154 exit(0); |
147 } | 155 } |