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=-0.8 required=5.0 tests=BAYES_00,INVALID_MSGID, SUBJ_ALL_CAPS autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,9e20292f693f1408 X-Google-Attributes: gid103376,public From: dewar@merv.cs.nyu.edu (Robert Dewar) Subject: Re: ADA CORE TECHNOLOGIES ANNOUNCES GNAT-TO-JAVA SYSTEM Date: 1997/09/16 Message-ID: #1/1 X-Deja-AN: 273070385 References: <34196E8E.1790@gsfc.nasa.gov> <341D47EE.3804@gsfc.nasa.gov> Organization: New York University Newsgroups: comp.lang.ada Date: 1997-09-16T00:00:00+00:00 List-Id: Stephe said <<<> Completely wrong, JVM is nothing like a conventional machine language <> It is obvious from this that you know very little about gcc, so while you are reading up on JVM, read up on GCC too. The GCC backend has nothing to do with C or K&R per se, it is a code generator that can take input from multiple front ends (one is the GNU C compiler, one is GNAT, there are several others), and generate output for a very large variety of architectures. Basically if you want GCC to generate code for a new target, you just write a formal definition of the instruction set for that architecture, called a machine configuration file, and everything else is automatic. Writing these configuration files is quite a straightforward task once you are familiar with the technical approach. <> That's of interest to interface to existing foreign front ends, especially if you want to keep them proprietary, but for generating code for a new machine there is no advantage unless you have a code generator in your pocket that for some reason you want to use instead of GCC. But it sounds like in fact GCC is exactly what you are looking for, a code generator that can generate code for a variety of machines using the GNAT front end. There is no point in trying to make the Java system do what you want, as you will see if you do your homework in both areas :-)