From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f891f,14f3fa9fb2c63b2d X-Google-Attributes: gidf891f,public X-Google-Thread: fc89c,14f3fa9fb2c63b2d X-Google-Attributes: gidfc89c,public X-Google-Thread: 103376,14f3fa9fb2c63b2d X-Google-Attributes: gid103376,public X-Google-Thread: 102b75,14f3fa9fb2c63b2d X-Google-Attributes: gid102b75,public X-Google-Thread: 10cc59,14f3fa9fb2c63b2d X-Google-Attributes: gid10cc59,public X-Google-Thread: 109fba,14f3fa9fb2c63b2d X-Google-Attributes: gid109fba,public X-Google-Thread: fb4a0,14f3fa9fb2c63b2d X-Google-Attributes: gidfb4a0,public X-Google-Thread: f678f,14f3fa9fb2c63b2d X-Google-Attributes: gidf678f,public X-Google-ArrivalTime: 1993-12-10 04:16:15 PST Xref: gmd.de comp.lang.misc:5241 comp.lang.ada:8682 comp.lang.pascal:17360 comp.lang.c++:40179 comp.unix.programmer:10791 comp.arch:18003 comp.unix.osf.misc:794 comp.unix.unixware:612 comp.lang.dylan:1535 comp.lang.eiffel:2090 comp.lang.lisp:4995 Newsgroups: comp.lang.misc,comp.lang.ada,comp.lang.pascal,comp.lang.c++,comp.unix.programmer,comp.arch,comp.unix.osf.misc,comp.unix.unixware,comp.lang.dylan,comp.lang.eiffel,comp.lang.lisp Path: gmd.de!xlink.net!zib-berlin.de!netmbx.de!Germany.EU.net!EU.net!sunic!uts!diku!torbenm From: torbenm@diku.dk (Torben AEgidius Mogensen) Subject: Re: ANDF - some information Message-ID: <1993Dec9.122415.27002@odin.diku.dk> Sender: torbenm@embla.diku.dk Date: Thu, 9 Dec 1993 12:24:15 GMT References: <2e5ei2INNqa7@network.ucsd.edu> Organization: Department of Computer Science, U of Copenhagen mbk%anl433.uucp@Germany.EU.net (Matt Kennel) writes: >Is it true that there is *one* ANDF output generator per target machine--- >independent of source language? I believe this is the case. >I find this hard to believe because I can't imagine any single represenation >being good for all sorts of diverse languages---go beyond just C/C++ and >Fortran77. What about Ada? Fortran/Ada 9x? What about Eiffel? What about >Lisp? What about ML? What about Maple? Matlab? Can a single semantic model >really do all these justice? This is no worse than compiling all these languages to a single machine architecture. The difficult part of designing a system like ANDF is that it should be sufficiently far away from a specific machine model that the constaints of that model does not hurt performance on dissimilar machines, but also sufficiently low level that it doesn't rely too much on a specific source language. As I understand it (from my limited knowledge), ANDF is fairly low-level, but allows many annotations that e.g. tell that a particular pointer is not aliased, or limit the range of values etc. This way, some of the "high-level" information that is traditionally lost when compiling to a low-level language is retained. Ada, Fortran and C are actually very similar, so I can see no problem in providing a common base for these. Compiling technology for LISP and ML on stock hardware is quite good nowadays, so using the same base as the other languages should be no problem. I think it is intended that optimization occurs both at the high level, before generating ANDF, in ANDF itself, and when compiling ANDF to a specific machine. The latter is neccesary, as register allocation and instruction scheduling can't be done before you know the specific machine architecture. Torben Mogensen (torbenm@diku.dk)