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: 109fba,14f3fa9fb2c63b2d X-Google-Attributes: gid109fba,public X-Google-Thread: 102b75,14f3fa9fb2c63b2d X-Google-Attributes: gid102b75,public X-Google-Thread: fb4a0,14f3fa9fb2c63b2d X-Google-Attributes: gidfb4a0,public X-Google-Thread: f678f,14f3fa9fb2c63b2d X-Google-Attributes: gidf678f,public X-Google-Thread: 10cc59,14f3fa9fb2c63b2d X-Google-Attributes: gid10cc59,public X-Google-Thread: 103376,14f3fa9fb2c63b2d X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 1993-12-10 18:03:09 PST Xref: gmd.de comp.lang.misc:5252 comp.lang.ada:8717 comp.lang.pascal:17433 comp.lang.c++:40249 comp.unix.programmer:10824 comp.arch:18060 comp.unix.osf.misc:806 comp.unix.unixware:633 comp.lang.dylan:1545 comp.lang.eiffel:2098 comp.lang.lisp:5012 Path: gmd.de!newsserver.jvnc.net!howland.reston.ans.net!spool.mu.edu!caen!batcomputer!ghost.dsi.unimi.it!univ-lyon1.fr!swidir.switch.ch!epflnews!disuns2.epfl.ch!disuns2.epfl.ch!not-for-mail From: monnier@di.epfl.ch (Stefan Monnier) 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 Subject: Re: ANDF - some information Date: 10 Dec 1993 14:09:41 +0100 Organization: Ecole Polytechnique Federale de Lausanne Message-ID: <2e9sel$2in@disun41.epfl.ch> References: <1993Dec2.134838.8047@webo.dg.com> NNTP-Posting-Host: disun41.epfl.ch In article , Rick Richardson wrote: > AT&T leveled the field when C++ first came out by generating C > code as its intermediate language. Once the langauge became > popular, native compilers became available. I don't see the > need for ANDF to perform this function when the C language > already can do it. Well, sure, C can play the same kind of role. But it hasn't been designed for it and hence poses some serious problems as soon as your language doesn't fit the C way of living. Ex: any language with garbage collection has to have a pretty good control of what is where (it has to know what is a pointer and what isn't, basically, but it generally means much more than that). This is a BIG problem with C, because C doesn't push any information along with spilled registers on the stack: the stack is totally typeless and it's pretty hard to get back the type of its componenents ! And anyway, even if you could do it easily, it is compiler dependent and access to the registers (which are part of the roots) poses the same kind of problems. If you want your C code to be portable...good luck. sml2c avoids the problem by using a fixed set of variables ("registers") declared globally and pushes frames on its own explicitely handled "stack" (it's a heap). It is highly portable, but twice as slow as assembly (and as hard as assembly to generate) I don't know how easy it gets with ANDF, tho. I'm afraid it would be just as trivial ! Stefan -- ----------------------------------------------------- -- On the average, people seem to be acting normal -- -----------------------------------------------------