Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.programmer > #38450
| From | Arne Vajhøj <arne@vajhoej.dk> |
|---|---|
| Newsgroups | comp.lang.java.programmer |
| Subject | Re: No more free JRE - Java is dead? |
| Date | 2018-06-28 18:32 -0400 |
| Organization | Aioe.org NNTP Server |
| Message-ID | <ph3nla$12e1$1@gioia.aioe.org> (permalink) |
| References | (1 earlier) <ph0jpu$18e$1@gwaiyur.mb-net.net> <696cfc2e-c998-4cc7-99fa-f680f2c5baef@googlegroups.com> <ph0skl$igr$1@news.albasani.net> <ph199p$11kn$1@gioia.aioe.org> <ph3dil$tu6$1@news.albasani.net> |
On 6/28/2018 3:40 PM, Martin Gregorie wrote: > On Wed, 27 Jun 2018 20:14:50 -0400, Arne Vajhøj wrote: > >> On 6/27/2018 4:38 PM, Martin Gregorie wrote: >>> On Wed, 27 Jun 2018 12:24:29 -0700, Eric Douglas wrote: >>>> Is C++ platform independent? >>>> >>> It is to the extent that the GNU C compiler is portable because GNU C++ >>> is essentially just a preprocessor: it generates C, which is then fed >>> to the GNU G compiler to produce an executable. >> >> That was how the original C++ compiler cfront worked. >> >> I don't think GNU C++ (g++) works that way. >> > It seems to have changed again recently: currently it looks as though > there is one frontend for each language. All frontends produce the same > output (an intermediate language called GIMPLE) which is passed to the > optimiser and backend. The latter generates target-specific assembler, That is all within same executable. > However, its also possible I've misunderstood the setup because I found > the GNU documentation quite opaque and have basically ended up > summarising the Wikipedia "GNU Compiler Collection" page, so all > corrections greatfully received. Just use gcc -v and g++ -v and they reveal what they run. > The bottom line: to compile another language such as Java or COBOL yo > have to write a new front end, but are expected to reuse the optimiser > and backend as well as the target-specific assembler and linker. That is how compilers are done today and has been for many years. The distinct backend for each compiler is too expensive. Arne
Back to comp.lang.java.programmer | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
No more free JRE - Java is dead? slawek <x.y@org.org> - 2018-06-27 09:29 +0200
Re: No more free JRE - Java is dead? Martin Gregorie <martin@mydomain.invalid> - 2018-06-27 12:00 +0000
Re: No more free JRE - Java is dead? Eric Douglas <e.d.programmer@gmail.com> - 2018-06-27 08:24 -0700
Re: No more free JRE - Java is dead? Marcel Mueller <news.5.maazl@spamgourmet.org> - 2018-06-27 20:07 +0200
Re: No more free JRE - Java is dead? Eric Douglas <e.d.programmer@gmail.com> - 2018-06-27 12:24 -0700
Re: No more free JRE - Java is dead? Marcel Mueller <news.5.maazl@spamgourmet.org> - 2018-06-27 21:50 +0200
Re: No more free JRE - Java is dead? Eric Douglas <e.d.programmer@gmail.com> - 2018-06-27 13:35 -0700
Re: No more free JRE - Java is dead? Martin Gregorie <martin@mydomain.invalid> - 2018-06-27 20:38 +0000
Re: No more free JRE - Java is dead? Arne Vajhøj <arne@vajhoej.dk> - 2018-06-27 20:14 -0400
Re: No more free JRE - Java is dead? Martin Gregorie <martin@mydomain.invalid> - 2018-06-28 19:40 +0000
Re: No more free JRE - Java is dead? Arne Vajhøj <arne@vajhoej.dk> - 2018-06-28 18:32 -0400
Re: No more free JRE - Java is dead? Martin Gregorie <martin@mydomain.invalid> - 2018-06-28 23:15 +0000
Re: No more free JRE - Java is dead? Arne Vajhøj <arne@vajhoej.dk> - 2018-06-27 20:09 -0400
Re: No more free JRE - Java is dead? Arne Vajhøj <arne@vajhoej.dk> - 2018-06-27 21:07 -0400
Re: No more free JRE - Java is dead? Haddock <ffm2002@web.de> - 2018-07-11 23:31 -0700
Re: No more free JRE - Java is dead? Arne Vajhøj <arne@vajhoej.dk> - 2018-07-14 14:01 -0400
Re: No more free JRE - Java is dead? Eric Douglas <e.d.programmer@gmail.com> - 2018-07-20 05:51 -0700
Re: No more free JRE - Java is dead? Arne Vajhøj <arne@vajhoej.dk> - 2018-07-20 21:43 -0400
Re: No more free JRE - Java is dead? Jukka Lahtinen <jtfjdehf@hotmail.com.invalid> - 2018-07-15 14:04 +0300
csiph-web