From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,bcdd81f11a99e024 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!postnews.google.com!i3g2000cwc.googlegroups.com!not-for-mail From: napi@axiomsol.com Newsgroups: comp.lang.ada Subject: Re: C to JVM, time to revive JGNAT? Date: 9 Aug 2006 19:53:32 -0700 Organization: http://groups.google.com Message-ID: <1155178411.944408.186560@i3g2000cwc.googlegroups.com> References: <20060809124902.O84175@docenti.ing.unipi.it> NNTP-Posting-Host: 202.157.192.162 Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" X-Trace: posting.google.com 1155178417 6040 127.0.0.1 (10 Aug 2006 02:53:37 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Thu, 10 Aug 2006 02:53:37 +0000 (UTC) User-Agent: G2/0.2 X-HTTP-UserAgent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.10) Gecko/20050715 Firefox/1.0.6 SUSE/1.0.6-16,gzip(gfe),gzip(gfe) X-HTTP-Via: 1.1 NetCache (NetCache NetApp/6.0.2) Complaints-To: groups-abuse@google.com Injection-Info: i3g2000cwc.googlegroups.com; posting-host=202.157.192.162; posting-account=12W02QwAAAA9Iq7QM7U4liKZMpIjAAjs Xref: g2news2.google.com comp.lang.ada:6137 Date: 2006-08-09T19:53:32-07:00 List-Id: Hi: Colin Paul Gloster wrote: > On Wed, 9 Aug 2006, Dmitry A. Kazakov wrote: > > "AMPC (Axiomatic Multi-Platform C): > > http://www.axiomsol.com/ > " > > From the homepage of Axiomatic Solutions: > > "If you write Java code, you can write once and run anywhere!" > > and > > "I write C code, and with AMPC I can write once and run anywhere!" > > and > > "The best and easiest way to convert C programs to standard Java > bytecodes (classes) is AMPC from Axiomatic Solutions" > > yet AMPC is released only as versions depending on a specific platform, so > will not even run on all Java platforms. If platform independence is not > good enough to distribute AMPC, why is it good enough for AMPC's users? The compiler/IDE itself comes in three versions (Linux, Mac OSX, and MS Windows), but the generated code (.class files) should be able to run on any properly installed JVM/JRE. In other words, AMPC is a cross-compiler suite whose development platforms are Linux, Mac OSX, and MS Windows, all targeting the platform-independent JVM. > Also, from WWW.AxiomSol.com/pro_serv/compiler.php : > > "[..] > > AMPC allows users to develop software using the standard C programming > language [..] > > [..] > > AMPC covers a very large subset of ANSI C (1989). A notable difference is > that "double" in AMPC is 32 bits long. In order to utilize 64-bit > floating point you can use "DOUBLE". > > [..]" > > So though AMPC is described as standard in one part of the documentation, > it is not standard and someone's interpretation of what the C standard > even is seems to be amiss. The ANSI C standard does not specify the size of scalar variables since there are various CPU architectures out there from 8 bits to 64 bits, etc. So, making "double" to be 32 bits or even 16 bits is still conformant to the ANSI C standard, although abnormal. AMPC actually supports 64 bit floating point by means of the type DOUBLE. Regards. Napi