Path: csiph.com!eternal-september.org!feeder.eternal-september.org!mx02.eternal-september.org!.POSTED!not-for-mail From: Martin Gregorie Newsgroups: comp.lang.java.programmer Subject: Re: is the java compiler written in c Date: Sat, 22 Aug 2015 11:37:01 +0000 (UTC) Organization: A noiseless patient Spider Lines: 31 Message-ID: References: <893a1a37-881c-4e59-a069-38386dd1b0fd@googlegroups.com> <7b5d28de-2f30-4db7-aec7-03bd9ce81d00@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Injection-Date: Sat, 22 Aug 2015 11:37:01 +0000 (UTC) Injection-Info: mx02.eternal-september.org; posting-host="e5160e2be48f1ea550cf61512446f525"; logging-data="22829"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19KyQ2tHtnsAuDib+14L5o1ibPb6A7JWIQ=" User-Agent: Pan/0.139 (Sexual Chocolate; GIT bf56508 git://git.gnome.org/pan2) Cancel-Lock: sha1:RYoRcFKeVGfs5X+9MnOBxuBwavs= Xref: csiph.com comp.lang.java.programmer:32402 On Fri, 21 Aug 2015 22:39:18 -0400, Arne Vajhøj wrote: > On 8/21/2015 5:51 PM, BGB wrote: >> 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. > The other issue has been the one of non-standard standard libraries that contained added compiler-specific or OS-specific functions while omitting many of the functions you'd expect to see. The examples that spring to mind were MicroWare's OS-9, Borland C and NCR UNIX (which used very non- standard network interfacing). I've never used MS C compilers but have always wondered whether the Borland standard library was the way it was to match the MS libraries. In practise, the nonstandard functions were pretty easy to fix by writing a compatibility library that, e.g. provided a version of Borlands strmfe() function for use when porting code from the Borland compiler to one of the unices. You needed a library for each target, so I had/have three for moving code between Borland, OS-9 and Linux systems. On the bright side, these were small libraries and quite easy to write. This issue should have been fixed by the POSIX standard, but is this the case? -- martin@ | Martin Gregorie gregorie. | Essex, UK org |