Path: csiph.com!eternal-september.org!feeder.eternal-september.org!aioe.org!.POSTED!not-for-mail From: =?UTF-8?Q?Arne_Vajh=c3=b8j?= Newsgroups: comp.lang.java.programmer Subject: Re: is the java compiler written in c Date: Sun, 30 Aug 2015 22:06:07 -0400 Organization: Aioe.org NNTP Server Lines: 35 Message-ID: References: <893a1a37-881c-4e59-a069-38386dd1b0fd@googlegroups.com> <7b5d28de-2f30-4db7-aec7-03bd9ce81d00@googlegroups.com> NNTP-Posting-Host: NIM2IeSPVd0kE3mU1mieXw.user.speranza.aioe.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit X-Complaints-To: abuse@aioe.org User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.2.0 X-Notice: Filtered by postfilter v. 0.8.2 Xref: csiph.com comp.lang.java.programmer:32442 On 8/22/2015 7:37 AM, Martin Gregorie wrote: > 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? If what you need is defined by POSIX and you are in a POSIX compliant env then you are OK. But there are a lot of things POSIX does not and non-*nix systems are not always POSIX compliant. Arne