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.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,fd3a34b7b22cdadb X-Google-Attributes: gid103376,public From: griest-tom@cs.yale.edu (Tom Griest) Subject: Re: Will GNAT work with WIN32s for Windows 3.1? Date: 1996/03/27 Message-ID: <4jc499INN3l5@RA.DEPT.CS.YALE.EDU>#1/1 X-Deja-AN: 144488671 references: <4iuf8j$ioi@lfsserv1.fsc.ibm.com> <4j73ptINNko8@RA.DEPT.CS.YALE.EDU> <4j78gt$81t@news.nyu.edu> organization: Yale University Computer Science Dept., New Haven, CT 06520-2158 newsgroups: comp.lang.ada Date: 1996-03-27T00:00:00+00:00 List-Id: >griest-tom@cs.yale.edu (Tom Griest) writes: >>The GNAT compiler is not designed to run on Win32s, but the >>programs generated by GNAT will run under Win32s (ie. on Win3.1) providing >>you don't use any tasking constructs. kenner@lab.ultra.nyu.edu (Richard Kenner) writes: >I'm a little confused here since the GNAT compiler is a "program >generated by GNAT". I'm not sure what you consider "GNAT", but I don't consider GNAT a "C" compiler or the C library, which is what is used to produce a considerable amount of what I consider "GNAT". That is, even gnat1.exe has quite a bit of legacy "C" code which makes a variety of C library calls [of course you know this]. What does run under Win32s is the GNAT RTS and any calls implicitly generated by GNAT, with the exception of the tasking services. So writing a program in Ada, and not using imported routines or tasking, you should be able to run on Win32s [NO GUARANTEE OF COURSE!]. >What do you mean by "not designed to run on >Win32s"? Does it, in fact, run? Is the issue the calls made by >the driver program? Certainly the driver programs like gcc, gnatbl, gnatmake, and the like are part of the complexity. These programs have low level interface utilities to the operating system that are not part "Ada". For example, calls are made directly (or indirectly) to "spawnvp" which has no direct implementation under Win32s. In addition you also have to get "as" and "ld" running to make "GNAT" work in my mind. There are many other examples, but frankly, I don't know how many there are. As I said, I suspect it is possible to port "GNAT" to Win32s, but see no real benefit in doing so. Any machine that has enough memory to run GNAT on Win32s would do far better running Win95 (IMHO). -Tom PS. for those who may not know, "Win32s" is a subset of the 32-bit Win32 API that can run on Windows 3.1. It was designed as a transition tool to migrate from 3.1 to Win95/WinNT. My current understanding is that it is not being actively maintained by Microsoft now that Win95 is out and gaining popularity. (That is, it is "fixed" and new APIs will not be added to Win32s).