Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.programmer > #38448

Re: No more free JRE - Java is dead?

From Martin Gregorie <martin@mydomain.invalid>
Newsgroups comp.lang.java.programmer
Subject Re: No more free JRE - Java is dead?
Date 2018-06-28 19:40 +0000
Organization albasani.net
Message-ID <ph3dil$tu6$1@news.albasani.net> (permalink)
References <pgved1$5a4$1@news.icm.edu.pl> <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>

Show all headers | View raw


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, 
which is in turn passed to the target's assembler and linker.

So it seems that traditional C preprocessor and assembly language 
generator are now a single module called gcc that contains the modules 
responsible for optimisation and assembler generation and that g++ does 
the similar job for C++. In all cases looks as though the frontend also 
controls the assembler->linker chain.

...which is all quite interesting since its not long since I got told I 
was an idiot for thinking that the old cpre and frontend (cc1plus?) were 
now a single program. 

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.

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.


-- 
Martin    | martin at
Gregorie  | gregorie dot org

Back to comp.lang.java.programmer | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


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