LEFT | RIGHT |
(no file at all) | |
1 // Inferno utils/6l/obj.c | 1 // Inferno utils/6l/obj.c |
2 // http://code.google.com/p/inferno-os/source/browse/utils/6l/obj.c | 2 // http://code.google.com/p/inferno-os/source/browse/utils/6l/obj.c |
3 // | 3 // |
4 // Copyright © 1994-1999 Lucent Technologies Inc. All rights reserved. | 4 // Copyright © 1994-1999 Lucent Technologies Inc. All rights reserved. |
5 // Portions Copyright © 1995-1997 C H Forsyth (forsyth@terzarima.net) | 5 // Portions Copyright © 1995-1997 C H Forsyth (forsyth@terzarima.net) |
6 // Portions Copyright © 1997-1999 Vita Nuova Limited | 6 // Portions Copyright © 1997-1999 Vita Nuova Limited |
7 // Portions Copyright © 2000-2007 Vita Nuova Holdings Limited (www.vitanuov
a.com) | 7 // Portions Copyright © 2000-2007 Vita Nuova Holdings Limited (www.vitanuov
a.com) |
8 // Portions Copyright © 2004,2006 Bruce Ellis | 8 // Portions Copyright © 2004,2006 Bruce Ellis |
9 // Portions Copyright © 2005-2007 C H Forsyth (forsyth@terzarima.net) | 9 // Portions Copyright © 2005-2007 C H Forsyth (forsyth@terzarima.net) |
10 // Revisions Copyright © 2000-2007 Lucent Technologies Inc. and others | 10 // Revisions Copyright © 2000-2007 Lucent Technologies Inc. and others |
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
132 if(HEADTYPE == Hwindows) | 132 if(HEADTYPE == Hwindows) |
133 outfile = smprint("%c.out.exe", thechar); | 133 outfile = smprint("%c.out.exe", thechar); |
134 else | 134 else |
135 outfile = smprint("%c.out", thechar); | 135 outfile = smprint("%c.out", thechar); |
136 } | 136 } |
137 libinit(); // creates outfile | 137 libinit(); // creates outfile |
138 | 138 |
139 if(HEADTYPE == -1) | 139 if(HEADTYPE == -1) |
140 HEADTYPE = headtype(goos); | 140 HEADTYPE = headtype(goos); |
141 ctxt->headtype = HEADTYPE; | 141 ctxt->headtype = HEADTYPE; |
142 » if (headstring == nil) | 142 » if(headstring == nil) |
143 headstring = headstr(HEADTYPE); | 143 headstring = headstr(HEADTYPE); |
144 | 144 |
145 archinit(); | 145 archinit(); |
146 ctxt->debugfloat = debug['F']; | 146 ctxt->debugfloat = debug['F']; |
147 | 147 |
148 if(debug['v']) | 148 if(debug['v']) |
149 Bprint(&bso, "HEADER = -H%d -T0x%llux -D0x%llux -R0x%ux\n", | 149 Bprint(&bso, "HEADER = -H%d -T0x%llux -D0x%llux -R0x%ux\n", |
150 HEADTYPE, INITTEXT, INITDAT, INITRND); | 150 HEADTYPE, INITTEXT, INITDAT, INITRND); |
151 Bflush(&bso); | 151 Bflush(&bso); |
152 | 152 |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
188 Bprint(&bso, "%5.2f cpu time\n", cputime()); | 188 Bprint(&bso, "%5.2f cpu time\n", cputime()); |
189 Bprint(&bso, "%d symbols\n", ctxt->nsymbol); | 189 Bprint(&bso, "%d symbols\n", ctxt->nsymbol); |
190 Bprint(&bso, "%d sizeof adr\n", sizeof(Addr)); | 190 Bprint(&bso, "%d sizeof adr\n", sizeof(Addr)); |
191 Bprint(&bso, "%d sizeof prog\n", sizeof(Prog)); | 191 Bprint(&bso, "%d sizeof prog\n", sizeof(Prog)); |
192 Bprint(&bso, "%lld liveness data\n", liveness); | 192 Bprint(&bso, "%lld liveness data\n", liveness); |
193 } | 193 } |
194 Bflush(&bso); | 194 Bflush(&bso); |
195 | 195 |
196 errorexit(); | 196 errorexit(); |
197 } | 197 } |
LEFT | RIGHT |