Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.programmer > #35693
| From | Arne Vajhøj <arne@vajhoej.dk> |
|---|---|
| Newsgroups | comp.lang.java.programmer |
| Subject | Re: Forward references |
| Date | 2016-10-02 19:54 -0400 |
| Organization | Aioe.org NNTP Server |
| Message-ID | <nss6of$bhc$1@gioia.aioe.org> (permalink) |
| References | <C-20161002162949@ram.dialup.fu-berlin.de> <nsrf3t$mti$1@dont-email.me> <nsrv41$io0$1@jstuckle.eternal-september.org> |
On 10/2/2016 5:44 PM, Jerry Stuckle wrote: > On 10/2/2016 1:11 PM, Martin Gregorie wrote: >> On Sun, 02 Oct 2016 15:45:19 +0000, Stefan Ram wrote: >>> An old C compiler from the 70s is a one-pass compiler IIRC, >>> so it does not do "forward references". >>> >> Whose C was that? >> >> Not K&R for sure: they've always had separate preprocessor, C->Assembler >> translation, assembler and linker phases. Thats a given, since from the >> outset they were designed to use the native assembler and linker >> of the target machine, since that's an easy way to make porting easier. > > Stefan is correct. The preprocessor is not a compiler; neither is the > linker. True. > And there was not a c->Assembler and assembler - every C > compiler I know of (at least since the mid 80's) generated machine code > directly, although most did have the option to output the assembler > code, also. There was not a separate assembler step. GCC It has 'gcc' call 'cc1' to generate '.s' and call 'as' to assemble to '.o'. But the assembler is not a compiler pass either. Arne
Back to comp.lang.java.programmer | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Re: Forward references Martin Gregorie <martin@address-in-sig.invalid> - 2016-10-02 17:11 +0000
Re: Forward references Jerry Stuckle <jstucklex@attglobal.net> - 2016-10-02 17:44 -0400
Re: Forward references Martin Gregorie <martin@address-in-sig.invalid> - 2016-10-02 22:37 +0000
Re: Forward references Jerry Stuckle <jstucklex@attglobal.net> - 2016-10-02 22:01 -0400
Re: Forward references Arne Vajhøj <arne@vajhoej.dk> - 2016-10-02 19:54 -0400
Re: Forward references Arne Vajhøj <arne@vajhoej.dk> - 2016-10-02 19:56 -0400
csiph-web