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


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

Re: is the java compiler written in c

From BGB <cr88192@hotmail.com>
Newsgroups comp.lang.java.programmer
Subject Re: is the java compiler written in c
Date 2015-08-21 22:42 -0500
Organization albasani.net
Message-ID <mr8rd0$d1p$1@news.albasani.net> (permalink)
References (1 earlier) <mr2ngt$i1a$1@dont-email.me> <7b5d28de-2f30-4db7-aec7-03bd9ce81d00@googlegroups.com> <mr6j27$4et$1@dont-email.me> <mr86ph$t22$1@news.albasani.net> <mr8ncn$ohc$1@speranza.aioe.org>

Show all headers | View raw


On 8/21/2015 9:39 PM, Arne Vajhøj wrote:
> On 8/21/2015 5:51 PM, BGB wrote:
>> On 8/21/2015 2:15 AM, Eternal Hope wrote:
>>>
>>> On the one hand, any suggestion that the official C specification is
>>> 'tightened up' so that the almost endless 'undefined behaviors' are more
>>> rigidly defined is met with howls of protest because of the
>>>
>>> 'C is so powerful because you can do anything you want with it and
>>> that's the way we like it'
>>
>> you can tighten it up in a way which works on most targets, say, making
>> 'int' always be 32 bits, ...
>
> With C99 that should really not be necessary.
>

possible, but this in-turn assumes you are using a compiler which 
supports C99.

C99 support is a little less widespread than targets which use a 32-bit int.


>>> On the other hand there is endless droning on about making everything
>>> you do as 'portable' as possible which requires an in depth
>>> understanding of undefined behavior, despite the fact that the
>>> definition of undefined actually equates to 'is unknowable in a
>>> particular implementation' etc etc'.
>>>
>>
>> or, narrowing it down to a range of platforms for which it will work,
>> say, 32 and 64 bit Windows and Linux.
>
> But that would be a complete no go for C given how many other platforms
> relies on C.
>

not narrowing C proper, rather, assuming "portable" to mean "portable to 
platforms with approximately these parameters".

while not universally true, most things are not absolutes, and one can 
limit things to the range of targets they care about, or which probably 
have the resources to run the code in question.

there are odd targets, but one can mostly ignore them and get along 
pretty good.


this doesn't mean one can't also write code for 8/16 bit 
microcontrollers, but these are different enough that one probably isn't 
going to be using the same code both on their MCU and on their PC.

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


Thread

is the java compiler written in c gdotone@gmail.com - 2015-08-19 12:41 -0700
  Re: is the java compiler written in c Eric Sosman <esosman@comcast-dot-net.invalid> - 2015-08-19 16:06 -0400
    Re: is the java compiler written in c gdotone@gmail.com - 2015-08-19 16:12 -0700
      Re: is the java compiler written in c Martin Gregorie <martin@address-in-sig.invalid> - 2015-08-20 11:08 +0000
        Re: is the java compiler written in c Arne Vajhøj <arne@vajhoej.dk> - 2015-08-20 20:34 -0400
      Re: is the java compiler written in c Eric Sosman <esosman@comcast-dot-net.invalid> - 2015-08-20 07:44 -0400
      Re: is the java compiler written in c e.d.programmer@gmail.com - 2015-08-20 06:36 -0700
        Re: is the java compiler written in c gdotone@gmail.com - 2015-08-20 18:58 -0700
          Re: is the java compiler written in c Arne Vajhøj <arne@vajhoej.dk> - 2015-08-20 22:13 -0400
            Re: is the java compiler written in c g g <gdotone@gmail.com> - 2015-08-20 19:57 -0700
              Re: is the java compiler written in c Arne Vajhøj <arne@vajhoej.dk> - 2015-08-21 21:25 -0400
      Re: is the java compiler written in c Eternal Hope <laughingspam99@gmail.com> - 2015-08-21 08:15 +0100
        Re: is the java compiler written in c e.d.programmer@gmail.com - 2015-08-21 06:56 -0700
          Re: is the java compiler written in c Eternal Hope <laughingspam99@gmail.com> - 2015-08-21 15:32 +0100
        Re: is the java compiler written in c BGB <cr88192@hotmail.com> - 2015-08-21 16:51 -0500
          Re: is the java compiler written in c Martin Gregorie <martin@address-in-sig.invalid> - 2015-08-21 23:32 +0000
            Re: is the java compiler written in c BGB <cr88192@hotmail.com> - 2015-08-21 23:35 -0500
          Re: is the java compiler written in c Arne Vajhøj <arne@vajhoej.dk> - 2015-08-21 22:39 -0400
            Re: is the java compiler written in c BGB <cr88192@hotmail.com> - 2015-08-21 22:42 -0500
              Re: is the java compiler written in c Martin Gregorie <martin@address-in-sig.invalid> - 2015-08-22 11:41 +0000
                Re: is the java compiler written in c BGB <cr88192@hotmail.com> - 2015-08-22 10:03 -0500
              Re: is the java compiler written in c Arne Vajhøj <arne@vajhoej.dk> - 2015-08-30 22:03 -0400
                Re: is the java compiler written in c BGB <cr88192@hotmail.com> - 2015-08-31 01:09 -0500
                Re: is the java compiler written in c Arne Vajhøj <arne@vajhoej.dk> - 2015-09-03 20:46 -0400
                Re: is the java compiler written in c BGB <cr88192@hotmail.com> - 2015-09-04 10:01 -0500
            Re: is the java compiler written in c Martin Gregorie <martin@address-in-sig.invalid> - 2015-08-22 11:37 +0000
              Re: is the java compiler written in c Eternal Hope <laughingspam99@gmail.com> - 2015-08-22 12:56 +0100
                Re: is the java compiler written in c Martin Gregorie <martin@address-in-sig.invalid> - 2015-08-22 18:04 +0000
                Re: is the java compiler written in c BGB <cr88192@hotmail.com> - 2015-08-22 14:27 -0500
              Re: is the java compiler written in c Arne Vajhøj <arne@vajhoej.dk> - 2015-08-30 22:06 -0400
          Re: is the java compiler written in c Eternal Hope <laughingspam99@gmail.com> - 2015-08-22 10:31 +0100
            Re: is the java compiler written in c BGB <cr88192@hotmail.com> - 2015-08-23 01:31 -0500
        Re: is the java compiler written in c Arne Vajhøj <arne@vajhoej.dk> - 2015-08-21 22:42 -0400
          Re: is the java compiler written in c Martin Gregorie <martin@address-in-sig.invalid> - 2015-08-22 11:53 +0000
            Re: is the java compiler written in c Eternal Hope <laughingspam99@gmail.com> - 2015-08-22 13:11 +0100
              Re: is the java compiler written in c Martin Gregorie <martin@address-in-sig.invalid> - 2015-08-22 17:55 +0000
                Re: is the java compiler written in c Eternal Hope <laughingspam99@gmail.com> - 2015-08-22 19:59 +0100
            Re: is the java compiler written in c Gene Wirchenko <genew@telus.net> - 2015-08-26 09:44 -0700
              Re: is the java compiler written in c Arne Vajhøj <arne@vajhoej.dk> - 2015-08-30 22:11 -0400
  Re: is the java compiler written in c Arne Vajhøj <arne@vajhoej.dk> - 2015-08-19 19:35 -0400

csiph-web