From gpc-request@santra.hut.fi Wed Sep 13 15:20:13 1995 Received: from rt07.Theo-Phys.Uni-Essen.DE by rs1.Theo-Phys.Uni-Essen.DE (AIX 3.2/UCB 5.64/4.03) id AA13823; Wed, 13 Sep 1995 15:20:12 +0200 Received: by rt07.Theo-Phys.Uni-Essen.DE (AIX 2.1 2/4.04) id AA11541; Wed, 13 Sep 95 15:20:01 CEST Received: from rs1.Theo-Phys.Uni-Essen.DE (rs1.theo-phys.uni-essen.de [132.252.254.226]) by santra.hut.fi (8.6.11/8.6.7) with SMTP id PAA18619 for ; Wed, 13 Sep 1995 15:43:04 +0300 Received: by rs1.Theo-Phys.Uni-Essen.DE (AIX 3.2/UCB 5.64/4.03) id AA13628; Wed, 13 Sep 1995 14:42:54 +0200 From: Peter Gerwinski Message-Id: <9509131242.AA13628@rs1.Theo-Phys.Uni-Essen.DE> Subject: GPC for EMX, objects, gperf To: gpc@hut.fi Date: Wed, 13 Sep 1995 14:42:53 +0100 (MESZ) X-Mailer: ELM [version 2.4 PL13] Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 8bit Content-Length: 1271 Status: RO Hello everybody. I have three questions to the mailing list. 1) I am thinking about porting GPC to the DOS / OS/2 EMX environment. Does anybody already work on that task or has even finished it? 2) I would like to know more about when there will be Object Pascal extensions in GPC, and how they will look like. (E.g. "class" instead of Borland's "object"? Does "override" mean what I know as "virtual"?) 3) While trying to implement some Borland extensions into the GPC (i.e. shl/shr operators, OOP, ...) I stumbled about the utility program "gperf". I got the source - one as stand-alone C++ source, one as part of the C++ library - but could not compile it with gcc-2.6.3 running under Linux kernel 1.2.8. Does anybody know where to get Linux binaries for gperf? So far for the moment. Thank you, Peter -------------------------------------------------------------------------------- Dipl. Phys. Peter Gerwinski Fachbereich Physik Universitaet-GH Essen Phone: +49-201-183-2763 D-45117 Essen Fax: +49-201-183-2120 Germany e-mail: pege@mail.theo-phys.uni-essen.de -------------------------------------------------------------------------------- From gpc-request@santra.hut.fi Wed Sep 13 16:35:40 1995 Received: from rt07.Theo-Phys.Uni-Essen.DE by rs1.Theo-Phys.Uni-Essen.DE (AIX 3.2/UCB 5.64/4.03) id AA13608; Wed, 13 Sep 1995 16:35:39 +0200 Received: by rt07.Theo-Phys.Uni-Essen.DE (AIX 2.1 2/4.04) id AA11686; Wed, 13 Sep 95 16:30:47 CEST Received: from pg2-srv.wam.umd.edu ([128.8.73.9]) by santra.hut.fi (8.6.11/8.6.7) with ESMTP id QAA19978 for ; Wed, 13 Sep 1995 16:42:25 +0300 Received: from rac9.wam.umd.edu (lotu@rac9.wam.umd.edu [128.8.70.8]) by pg2-srv.wam.umd.edu (8.6.10/8.6.9) with ESMTP id JAA18077; Wed, 13 Sep 1995 09:40:29 -0400 Received: (lotu@localhost) by rac9.wam.umd.edu (8.6.10/8.6.10) id JAA08827; Wed, 13 Sep 1995 09:40:28 -0400 Date: Wed, 13 Sep 1995 09:40:26 -0400 (EDT) From: Arcadio Alivio Sincero To: Peter Gerwinski Cc: gpc@hut.fi Subject: Re: GPC for EMX, objects, gperf In-Reply-To: <9509131242.AA13628@rs1.Theo-Phys.Uni-Essen.DE> Message-Id: Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Status: RO On Wed, 13 Sep 1995, Peter Gerwinski wrote: > 1) I am thinking about porting GPC to the DOS / OS/2 EMX environment. Does > anybody already work on that task or has even finished it? I was thinking about downloading the source this weekend and try to recompile it under EMX/GCC myself. But since you want to do it, I might as well wait until you're done :-). It should be rather straight forward to recompile GPC under the EMX environment, shouldn't it? I had problems recompiling GPC under DOS and DJGPP (actually, I never did manage to recompile it under DOS but only because I switched to OS/2 and dumped DOS so I never really tried hard enough :-)), because of DOS's 8.3 filename limitation and some of the GPC source files have long filenames. Under OS/2 and HPFS this shouldn't be a problem. Isn't the makefile for GPC in "standard" UNIX make file format? You could just get GNU Make, I guess. (I use IBM's NMAKE myself, which is why I ask). So it sounds easy enough. Just recompile GCC under OS/2 so you get the object files, then recompile GPC. Hmm ... is that all there is to it? I remember somebody telling me they managed to compile GPC under EMX, but the way he described his experiences it wasn't as straight forward as I think. Is it? Am I missing something here? > 2) I would like to know more about when there will be Object Pascal extensions > in GPC, and how they will look like. (E.g. "class" instead of Borland's > "object"? Does "override" mean what I know as "virtual"?) I thought GPC is supposed to be an Extended Pascal and ISO Pascal compiler only .. i.e. it follows "official" standards. Is Object Pascal standardized? You *might* be able to consider Borland somewhat of a standard ... there are already two Pascal compilers for OS/2 that comply with the Borland "standard" .. Speed Pascal/2 and Virtual Pascal. (Also, the latest version of Speed/2, v. 1.5, is supposed to have the "Delphi extenstions", i.e. Object Pascal, in it ...). Anyhow, if you're gonna add the Object Pascal and Borland extensions yourself, that'd be pretty cool. Having a free Pascal compiler that follows 4 standards (ISO Pascal, Extended Pascal, Borland, and Object Pascal) and is portable across several platforms would be awesome. I wish I could help, but unfortunatly I don't know squat about writing compilers ... but I'd be happy to be a beta tester 'tho :-). Later ... Arcadio From jtv@kampi.hut.fi Wed Sep 13 16:51:35 1995 Received: from kampi.hut.fi by rs1.Theo-Phys.Uni-Essen.DE (AIX 3.2/UCB 5.64/4.03) id AA22327; Wed, 13 Sep 1995 16:42:10 +0200 Received: (from jtv@localhost) by kampi.hut.fi (8.6.11/8.6.7) id RAA09057; Wed, 13 Sep 1995 17:12:49 +0300 Date: Wed, 13 Sep 1995 17:12:49 +0300 (EET DST) From: Jukka Virtanen Reply-To: Jukka.Virtanen@hut.fi To: Arcadio Alivio Sincero Cc: Peter Gerwinski , gpc@hut.fi Subject: Re: GPC for EMX, objects, gperf In-Reply-To: Message-Id: Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Status: RO On Wed, 13 Sep 1995, Arcadio Alivio Sincero wrote: > On Wed, 13 Sep 1995, Peter Gerwinski wrote: > > > 1) I am thinking about porting GPC to the DOS / OS/2 EMX environment. Does > > anybody already work on that task or has even finished it? > > > I was thinking about downloading the source this weekend and try > to recompile it under EMX/GCC myself. But since you want to do it, I > might as well wait until you're done :-). It should be rather straight > forward to recompile GPC under the EMX environment, shouldn't it? I had > problems recompiling GPC under DOS and DJGPP (actually, I never did manage > to recompile it under DOS but only because I switched to OS/2 and dumped > DOS so I never really tried hard enough :-)), because of DOS's 8.3 > filename limitation and some of the GPC source files have long filenames. > Under OS/2 and HPFS this shouldn't be a problem. Isn't the makefile for > GPC in "standard" UNIX make file format? You could just get GNU Make, I > guess. (I use IBM's NMAKE myself, which is why I ask). Hi folks. I think gpc has been succesfully compiled and run in both the dos and os/2 environments (although I don't even know what emx is, and I am not sure I even want to know that :-) I think I am able to get the dos binaries and start distributing them if someone would like to avoid the problems in compiling gpc under dos. Are people interested in binaries? gpc makefiles are quite standard, they should not require any specific makefile features, except the VPATH variable, which tells where the make program should look for sources. Gnu make is fine. Most other new make programs are also fine. > > 2) I would like to know more about when there will be Object Pascal extensions > > in GPC, and how they will look like. (E.g. "class" instead of Borland's > > "object"? Does "override" mean what I know as "virtual"?) GPC parser only knows the object pascal reserved words, but there is no semantics to implement the language. However, given that the Gnu C++ compiler implements very similar features, I think it is quite possible to implement the object pascal compiler with gpc as starting point. I thought of doing that once, but unfortunately (for gpc) I don't have time for it now. I know I said I would try to merge gpc to the standard distribution during the summer, but I was not able to spend time with gpc during the summer at all. Sorry for that. What I am able to do sometime in the near future is to upgrade to 2.7 gcc code, that should not be a major problem (I hope). > I thought GPC is supposed to be an Extended Pascal and ISO Pascal > compiler only .. i.e. it follows "official" standards. Is Object Pascal > standardized? You *might* be able to consider Borland somewhat of a > standard ... there are already two Pascal compilers for OS/2 that comply with > the Borland "standard" .. Speed Pascal/2 and Virtual Pascal. (Also, the > latest version of Speed/2, v. 1.5, is supposed to have the "Delphi > extenstions", i.e. Object Pascal, in it ...). I think the object pascal draft is not going to change anymore, which means it is going to be standardized some point in the (near) future. I have a copy of the last draft, and it does look very interesting. Also, I am never going to do the Borland compatibility mode myself, but I have no objections to include those changes in gpc mainline *if* someone would write them first and not just talk about it. Please do, there are many programmers out there who really seem to like borland, and it would be very useful for the project to be compatible with borland. > Anyhow, if you're gonna add the Object Pascal and Borland > extensions yourself, that'd be pretty cool. Having a free Pascal compiler > that follows 4 standards (ISO Pascal, Extended Pascal, Borland, and Object > Pascal) and is portable across several platforms would be awesome. I wish > I could help, but unfortunatly I don't know squat about writing compilers > ... but I'd be happy to be a beta tester 'tho :-). Yes, it would be cool. But also remember that gpc is not quite finished yet, it still requires lots of hacking to implement the missing features... Juki jtv@hut.fi From lotu@wam.umd.edu Wed Sep 13 17:49:40 1995 Received: from pg2-srv.wam.umd.edu by rs1.Theo-Phys.Uni-Essen.DE (AIX 3.2/UCB 5.64/4.03) id AA22339; Wed, 13 Sep 1995 17:48:39 +0200 Received: from rac5.wam.umd.edu (lotu@rac5.wam.umd.edu [128.8.70.121]) by pg2-srv.wam.umd.edu (8.6.10/8.6.9) with ESMTP id LAA01432; Wed, 13 Sep 1995 11:44:54 -0400 Received: (lotu@localhost) by rac5.wam.umd.edu (8.6.10/8.6.10) id LAA24255; Wed, 13 Sep 1995 11:44:40 -0400 Date: Wed, 13 Sep 1995 11:44:39 -0400 (EDT) From: Arcadio Alivio Sincero To: Jukka.Virtanen@hut.fi Cc: Peter Gerwinski , gpc@hut.fi Subject: Re: GPC for EMX, objects, gperf In-Reply-To: Message-Id: Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Status: RO On Wed, 13 Sep 1995, Jukka Virtanen wrote: > Hi folks. > > I think gpc has been succesfully compiled and run in both the > dos and os/2 environments (although I don't even know what emx is, > and I am not sure I even want to know that :-) > I think I am able to get the dos binaries and start distributing > them if someone would like to avoid the problems in compiling > gpc under dos. Are people interested in binaries? > gpc makefiles are quite standard, they should not require any > specific makefile features, except the VPATH variable, which tells > where the make program should look for sources. Gnu make is fine. > Most other new make programs are also fine. Personally, I wouldn't mind a set of OS/2 binaries :-). Unless recompiling GPC for OS/2 is simply a matter of running the make file through GNU Make. EMX, BTW, is one of the OS/2 GCC ports. It can also run under 32-bit extended DOS (using the VCPI standard by default 'tho), so if you recompile it for OS/2 you are also making a version for DOS as well. Convienent, 'eh? > Also, I am never going to do the Borland compatibility mode > myself, but I have no objections to include those changes in gpc > mainline *if* someone would write them first and not just talk > about it. Please do, there are many programmers out there who > really seem to like borland, and it would be very useful for the > project to be compatible with borland. I'd probably move away from the Borland "standard" if a powerful Extended Pascal or Object Pascal compiler was readily available to me. Mainly because Borland is not a "real standard". 'Tho maybe it should be because a lot of people seem to use it. > Yes, it would be cool. But also remember that gpc is not > quite finished yet, it still requires lots of hacking to implement > the missing features... What's missing still? Arcadio From gpc-request@santra.hut.fi Thu Sep 14 07:49:18 1995 Received: from rt07.Theo-Phys.Uni-Essen.DE by rs1.Theo-Phys.Uni-Essen.DE (AIX 3.2/UCB 5.64/4.03) id AA21013; Thu, 14 Sep 1995 07:49:17 +0200 Received: by rt07.Theo-Phys.Uni-Essen.DE (AIX 2.1 2/4.04) id AA14019; Thu, 14 Sep 95 07:49:11 CEST Received: from sun4nl.NL.net (sun4nl.NL.net [193.78.240.1]) by santra.hut.fi (8.6.11/8.6.7) with SMTP id HAA29180 for ; Thu, 14 Sep 1995 07:49:37 +0300 Received: from hsb.nest.nl by sun4nl.NL.net with SMTP id AA02374 (5.65b/CWI-3.3); Thu, 14 Sep 1995 06:49:31 +0200 Received: from nestnl.nest.nl (root@localhost) by hsb.nest.nl (8.6.11/8.6.11) with UUCP id GAA07473 for hut.fi!gpc; Thu, 14 Sep 1995 06:46:26 +0100 Received: by nestnl.nest.nl (V1.17-beta/Amiga) id ; Thu, 14 Sep 95 05:37:17 +0100 Received: by beard.nest.nl (BeyondGating/0.88alpha) id BG2337; Thu, 14 Sep 1995 05:30:52 +0 Date: 13 Sep 95 19:37:18 +0 Message-Id: <60-60-0-0-0576b330@beard.nest.nl> From: berend@beard.nest.nl (Berend de Boer) To: gpc@hut.fi Subject: GPC for EMX, objects, gperf Status: RO Jukka Virtanen wrote in a message to Berend de Boer: JV> gpc makefiles are quite standard, they should not require JV> any specific makefile features, except the VPATH JV> variable, which tells where the make program should look JV> for sources. Gnu make is fine. Most other new make JV> programs are also fine. The problem is dos' command.com is no bourne shell... That's the hardest part. Groetjes, Berend (-: CIS: 100120,3121 email: berend@beard.nest.nl From gpc-request@santra.hut.fi Thu Sep 14 07:54:40 1995 Received: from rt07.Theo-Phys.Uni-Essen.DE by rs1.Theo-Phys.Uni-Essen.DE (AIX 3.2/UCB 5.64/4.03) id AA22056; Thu, 14 Sep 1995 07:54:39 +0200 Received: by rt07.Theo-Phys.Uni-Essen.DE (AIX 2.1 2/4.04) id AA14030; Thu, 14 Sep 95 07:54:34 CEST Received: from sun4nl.NL.net (sun4nl.NL.net [193.78.240.1]) by santra.hut.fi (8.6.11/8.6.7) with SMTP id HAA29183 for ; Thu, 14 Sep 1995 07:49:47 +0300 Received: from hsb.nest.nl by sun4nl.NL.net with SMTP id AA02380 (5.65b/CWI-3.3); Thu, 14 Sep 1995 06:49:42 +0200 Received: from nestnl.nest.nl (root@localhost) by hsb.nest.nl (8.6.11/8.6.11) with UUCP id GAA07472 for hut.fi!gpc; Thu, 14 Sep 1995 06:46:24 +0100 Received: by nestnl.nest.nl (V1.17-beta/Amiga) id ; Thu, 14 Sep 95 05:37:08 +0100 Received: by beard.nest.nl (BeyondGating/0.88alpha) id BG2336; Thu, 14 Sep 1995 05:30:51 +0 Date: 13 Sep 95 19:25:32 +0 Message-Id: <60-60-0-0-057678d2@beard.nest.nl> From: berend@beard.nest.nl (Berend de Boer) To: gpc@hut.fi Subject: GPC for EMX, objects, gperf Status: RO Peter Gerwinski wrote PG> 1) I am thinking about porting GPC to the DOS / OS/2 EMX PG> environment. Does anybody already work on that task or PG> has even finished it? Yes. There is a djgpp recompile and an emx. Both should be easy, just a recompile if you have a bourne shell, else you need to create your own makefile. PG> 2) I would like to know more about when there will be PG> Object Pascal extensions in GPC, and how they will look PG> like. (E.g. "class" instead of Borland's "object"? PG> Does "override" mean what I know as "virtual"?) See the Ansi OOP draft, probably online soon (follow comp.lang.pascal.ansi-iso). Groetjes, Berend (-: CIS: 100120,3121 email: berend@beard.nest.nl From pege Fri Sep 15 15:41:17 1995 Subject: GPC for EMX works! To: gpc@hut.fi Date: Fri, 15 Sep 1995 15:41:17 +0100 (MESZ) X-Mailer: ELM [version 2.4 PL13] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 8bit Content-Length: 634 Status: RO Hello, folks! I have done the patch of GPC for EMX. It was not straightforward but not more work than I had expected. I upload the binaries and the source patch to kampi.hut.fi. Have fun with it! Peter -------------------------------------------------------------------------------- Dipl. Phys. Peter Gerwinski Fachbereich Physik Universitaet-GH Essen Phone: +49-201-183-2763 D-45117 Essen Fax: +49-201-183-2120 Germany e-mail: pege@mail.theo-phys.uni-essen.de -------------------------------------------------------------------------------- From sad@utkux.utcc.utk.edu Fri Sep 15 19:17:19 1995 Received: from MARTHA.UTCC.UTK.EDU by rs1.Theo-Phys.Uni-Essen.DE (AIX 3.2/UCB 5.64/4.03) id AA20125; Fri, 15 Sep 1995 19:17:08 +0200 Received: by martha.utcc.utk.edu (5.x/2.7c-UTK) id AA13857; Fri, 15 Sep 1995 13:16:42 -0400 From: sad@utkux.utcc.utk.edu Message-Id: <9509151716.AA13857@martha.utcc.utk.edu> Subject: Re: GPC for EMX works! To: pege@rs1.Theo-Phys.Uni-Essen.DE (Peter Gerwinski) Date: Fri, 15 Sep 1995 13:16:41 -0400 (EDT) In-Reply-To: <9509151341.AA23044@rs1.Theo-Phys.Uni-Essen.DE> from "Peter Gerwinski" at Sep 15, 95 03:41:18 pm X-Mailer: ELM [version 2.4 PL23] Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Status: RO Hi, Peter, this is very good news. Thanks for the effort! I will d/l it tonight and play with it. BTW, can it peacefully coexist with g77 (the gnu fortran compiler, which changes the gcc.exe)? If not, would you care to have a chat with the porter of g77? (He also happens to be German.) Cheers again! Stefan > > Hello, folks! > > I have done the patch of GPC for EMX. It was not straightforward but not more > work than I had expected. I upload the binaries and the source patch to > kampi.hut.fi. > > Have fun with it! > > Peter From lotu@wam.umd.edu Sat Sep 16 02:48:57 1995 Received: from wor-srv.wam.umd.edu by rs1.Theo-Phys.Uni-Essen.DE (AIX 3.2/UCB 5.64/4.03) id AA22353; Sat, 16 Sep 1995 02:48:31 +0200 Received: from rac9.wam.umd.edu (lotu@rac9.wam.umd.edu [128.8.70.8]) by wor-srv.wam.umd.edu (8.6.10/8.6.9) with ESMTP id UAA16412; Fri, 15 Sep 1995 20:47:17 -0400 Received: (lotu@localhost) by rac9.wam.umd.edu (8.6.10/8.6.10) id UAA26772; Fri, 15 Sep 1995 20:47:15 -0400 Date: Fri, 15 Sep 1995 20:47:14 -0400 (EDT) From: Arcadio Alivio Sincero To: Peter Gerwinski Cc: gpc@hut.fi Subject: Re: GPC for EMX works! In-Reply-To: <9509151341.AA23044@rs1.Theo-Phys.Uni-Essen.DE> Message-Id: Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Status: RO On Fri, 15 Sep 1995, Peter Gerwinski wrote: > Hello, folks! > > I have done the patch of GPC for EMX. It was not straightforward but not more > work than I had expected. I upload the binaries and the source patch to > kampi.hut.fi. > Have fun with it! Where on kampi.hut.fi? Or you probably haven't done it yet when I read the message? Ok ... when you do you upload it, be sure to tell us where it is. kampi.hut.fi is in Europe and I'm in the U.S., so the connection is S-L-O-W. I'd hate having to hunt around on kampi.hut.fi ... thanks! Arcadio From jtv@kampi.hut.fi Mon Sep 18 09:06:45 1995 Received: from kampi.hut.fi by rs1.Theo-Phys.Uni-Essen.DE (AIX 3.2/UCB 5.64/4.03) id AA23964; Mon, 18 Sep 1995 09:06:29 +0200 Received: (from jtv@localhost) by kampi.hut.fi (8.6.11/8.6.7) id KAA13723; Mon, 18 Sep 1995 10:06:20 +0300 Date: Mon, 18 Sep 1995 10:06:19 +0300 (EET DST) From: Jukka Virtanen Reply-To: Jukka.Virtanen@hut.fi To: Peter Gerwinski Cc: gpc@hut.fi Subject: Re: GPC for EMX works! In-Reply-To: <9509151341.AA23044@rs1.Theo-Phys.Uni-Essen.DE> Message-Id: Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Status: RO On Fri, 15 Sep 1995, Peter Gerwinski wrote: > Hello, folks! > > I have done the patch of GPC for EMX. It was not straightforward but not more > work than I had expected. I upload the binaries and the source patch to > kampi.hut.fi. > > Have fun with it! > > Peter Folks, The EMX binaries made by Peter are now available in kampi.hut.fi directory jtv/gnu-pascal/EMX There is a README file, please read it. Contents of the EMX directory: -r--r--r-- 1 jtv 35231 Sep 15 16:57 tar.exe -r--r--r-- 1 jtv 167476 Sep 15 16:57 tar-os2.exe -r--r--r-- 1 jtv 5468 Sep 15 16:55 README -r--r--r-- 1 jtv 188138 Sep 15 16:54 make-gpc.zip -r--r--r-- 1 jtv 39910 Sep 15 16:53 gzip.exe -r--r--r-- 1 jtv 1005157 Sep 15 16:52 gpc-263b.zip If I understood correctly, the make-gpc.zip contains a couple of modified source files (compared to gpc-2.6.3 sources you can find from jtv/gnu-pascal/gpc-1.1-2.6.3.tar.gz) The file gpc-263b.zip contains binaries for gpc driver program, gpc1 compiler, the gpc-cccp preprocessor and the gpc library. Juki ps. I don't have any systems around with emx in it, so I am unable to verify if these programs work... From sad@utkux.utcc.utk.edu Tue Sep 19 20:18:57 1995 Received: from UTKUX4.UTCC.UTK.EDU by rs1.Theo-Phys.Uni-Essen.DE (AIX 3.2/UCB 5.64/4.03) id AA09888; Tue, 19 Sep 1995 20:18:52 +0200 Received: by utkux4.utcc.utk.edu (5.x/2.7c-UTK) id AA07727; Tue, 19 Sep 1995 14:18:09 -0400 From: sad@utkux.utcc.utk.edu Message-Id: <9509191818.AA07727@utkux4.utcc.utk.edu> Subject: Re: GPC for EMX works! Announcments? To: Jukka.Virtanen@hut.fi Date: Tue, 19 Sep 1995 14:18:08 -0400 (EDT) Cc: pege@rs1.Theo-Phys.Uni-Essen.DE In-Reply-To: from "Jukka Virtanen" at Sep 18, 95 10:06:19 am X-Mailer: ELM [version 2.4 PL23] Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Status: RO Hi Jukka and Peter, do you think (or mind) announcing this os/2 port of gpc in the appropriate news groups, like comp.os.os2.announce, comp.os.os2.programming, and comp.lang.pascal.ansi-iso? There are still rumors that there would be no os/2 port, you know, eventhough I have downloaded it already ... :-) Later. Stefan PS: I you give me the go-ahead I don't mind doing it. From lotu@wam.umd.edu Wed Sep 20 23:52:37 1995 Received: from pg2-srv.wam.umd.edu by rs1.Theo-Phys.Uni-Essen.DE (AIX 3.2/UCB 5.64/4.03) id AA14081; Wed, 20 Sep 1995 23:52:26 +0200 Received: from rac9.wam.umd.edu (lotu@rac9.wam.umd.edu [128.8.70.8]) by pg2-srv.wam.umd.edu (8.6.10/8.6.9) with ESMTP id RAA10293; Wed, 20 Sep 1995 17:52:05 -0400 Received: (lotu@localhost) by rac9.wam.umd.edu (8.6.10/8.6.10) id RAA10722; Wed, 20 Sep 1995 17:52:04 -0400 Date: Wed, 20 Sep 1995 17:51:52 -0400 (EDT) From: Arcadio Alivio Sincero To: Jukka.Virtanen@hut.fi Cc: Peter Gerwinski , gpc@hut.fi Subject: Re: GPC for EMX works! In-Reply-To: Message-Id: Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Status: RO On Mon, 18 Sep 1995, Jukka Virtanen wrote: > > The EMX binaries made by Peter are now available > in kampi.hut.fi directory jtv/gnu-pascal/EMX I just downloaded them and tried it out. Unfortunatly, I was a little disappointed with it. The resulting object files seemed to be highly unoptimized. I compiled a simple "Hello, world" program using GPC with the "-Zomf" option to produce OS/2 .OBJ files instead of UNIX a.out. The resulting executable was 68363 bytes. I compiled a similar "Hello, world" program using GCC (a direct translation) also with the "-Zomf" option and the resulting executable file was only 21809 bytes. Is there anything I can do to fix this? I know probably the EMX translation was a "rush job", but maybe y'all can give me some pointers as to how to optimize it a bit. (Or maybe I can get somebody else if Peter is too busy ...). Also, for some reason when I use the "-O3" switch, the resulting object file actually becomes bigger! Why is that? At first when I converted the GPC.A file to OMF format, I didn't strip any debugging info or anything. The resulting executable was pretty huge (90k) for such a small program. After stripping the debug info and what not, the exe was "only" 68k ... so that helped a bit. Is there anything else I can do? At least I can use this compiler for my CMSC112 class ... "Introduction to Computer Science with Pascal" ... oohh ... tough class :-). I found out that Virtual Pascal doesn't do ISO Pascal and probably Borland is the same, so this compiler will come in handy as then I don't have to work on projects at school .. I can do it in the privacy of my room. Later ... Arcadio From jtv@kampi.hut.fi Thu Sep 21 11:31:36 1995 Received: from kampi.hut.fi by rs1.Theo-Phys.Uni-Essen.DE (AIX 3.2/UCB 5.64/4.03) id AA20809; Thu, 21 Sep 1995 11:31:19 +0200 Received: (from jtv@localhost) by kampi.hut.fi (8.6.11/8.6.7) id MAA17807; Thu, 21 Sep 1995 12:30:42 +0300 Date: Thu, 21 Sep 1995 12:30:39 +0300 (EET DST) From: Jukka Virtanen Reply-To: Jukka.Virtanen@hut.fi To: sad@utkux.utcc.utk.edu Cc: Jukka.Virtanen@hut.fi, pege@rs1.Theo-Phys.Uni-Essen.DE Subject: Re: GPC for EMX works! Announcments? In-Reply-To: <9509191818.AA07727@utkux4.utcc.utk.edu> Message-Id: Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Status: RO On Tue, 19 Sep 1995 sad@utkux.utcc.utk.edu wrote: > Hi Jukka and Peter, > > do you think (or mind) announcing this os/2 port of gpc in the > appropriate news groups, like comp.os.os2.announce, > comp.os.os2.programming, and comp.lang.pascal.ansi-iso? > There are still rumors that there would be no os/2 port, you know, > eventhough I have downloaded it already ... :-) > > Later. Stefan > > PS: I you give me the go-ahead I don't mind doing it. I don't mind, I just hope it works :-) Juki From sad@utkux.utcc.utk.edu Thu Sep 21 15:04:18 1995 Received: from MARTHA.UTCC.UTK.EDU by rs1.Theo-Phys.Uni-Essen.DE (AIX 3.2/UCB 5.64/4.03) id AA26276; Thu, 21 Sep 1995 15:04:06 +0200 Received: by martha.utcc.utk.edu (5.x/2.7c-UTK) id AA27468; Thu, 21 Sep 1995 09:03:36 -0400 From: sad@utkux.utcc.utk.edu Message-Id: <9509211303.AA27468@martha.utcc.utk.edu> Subject: Re: GPC for EMX works! Announcments? To: pege@rs1.Theo-Phys.Uni-Essen.DE (Peter Gerwinski) Date: Thu, 21 Sep 1995 09:03:35 -0400 (EDT) Cc: jtv@kampi.hut.fi (Jukka Virtanen) In-Reply-To: <9509211243.AA25690@rs1.Theo-Phys.Uni-Essen.DE> from "Peter Gerwinski" at Sep 21, 95 02:43:01 pm X-Mailer: ELM [version 2.4 PL23] Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Status: RO > > According to sad@utkux.utcc.utk.edu: > > > > Hi Jukka and Peter, > > > > do you think (or mind) announcing this os/2 port of gpc in the > > appropriate news groups, like comp.os.os2.announce, > > comp.os.os2.programming, and comp.lang.pascal.ansi-iso? > > There are still rumors that there would be no os/2 port, you know, > > eventhough I have downloaded it already ... :-) > > > > Later. Stefan > > > > PS: I you give me the go-ahead I don't mind doing it. > > > I don't mind, I just hope it works :-) > Juki > > I don't mind either. I also only hope it works. :-> > > Peter Okay, so I take it one of you will take care of this, right? Or do you mean that neither of you does mind *me* doing it? Lemme know. Stefan :-] ---- now where is that .sig of mine?! From jtv@kampi.hut.fi Thu Sep 21 15:14:16 1995 Received: from kampi.hut.fi by rs1.Theo-Phys.Uni-Essen.DE (AIX 3.2/UCB 5.64/4.03) id AA25519; Thu, 21 Sep 1995 15:14:03 +0200 Received: (from jtv@localhost) by kampi.hut.fi (8.6.11/8.6.7) id QAA18242; Thu, 21 Sep 1995 16:13:10 +0300 Date: Thu, 21 Sep 1995 16:13:08 +0300 (EET DST) From: Jukka Virtanen Reply-To: Jukka.Virtanen@hut.fi To: sad@utkux.utcc.utk.edu Cc: Peter Gerwinski Subject: Re: GPC for EMX works! Announcments? In-Reply-To: <9509211303.AA27468@martha.utcc.utk.edu> Message-Id: Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Status: RO On Thu, 21 Sep 1995 sad@utkux.utcc.utk.edu wrote: > > According to sad@utkux.utcc.utk.edu: > > > > > > Hi Jukka and Peter, > > > > > > do you think (or mind) announcing this os/2 port of gpc in the > > > appropriate news groups, like comp.os.os2.announce, > > > comp.os.os2.programming, and comp.lang.pascal.ansi-iso? > > > There are still rumors that there would be no os/2 port, you know, > > > eventhough I have downloaded it already ... :-) > > > > > > Later. Stefan > > > > > > PS: I you give me the go-ahead I don't mind doing it. > > > > > > I don't mind, I just hope it works :-) > > > Juki > > > > I don't mind either. I also only hope it works. :-> > > > > Peter > > Okay, so I take it one of you will take care of this, right? Or do you mean > that neither of you does mind *me* doing it? Lemme know. Stefan :-] If you wish to announce the availability of the EMX binaries, just go ahead. But also note that you should consider the gnu general public license and distribution of binaries. It is rather a complicated process, you should be sure that you are able to provide sources to everyone who get a copy of the binary. As the 2.6.3 sources are now available, it seems ok. But how about a year from now? I trust you keep a copy around :-) Just to be sure, please read the gnu licenses, for both the programs and the libraries. This is the reason I would not like to distribute binaries at all; but I understand that it might be complicated for some people to get the things compiled and working, sigh. Juki jtv@hut.fi From gpc-request@santra.hut.fi Sat Sep 30 00:10:11 1995 Received: from rt07.Theo-Phys.Uni-Essen.DE by rs1.Theo-Phys.Uni-Essen.DE (AIX 3.2/UCB 5.64/4.03) id AA22474; Sat, 30 Sep 1995 00:10:10 +0100 Received: by rt07.Theo-Phys.Uni-Essen.DE (AIX 2.1 2/4.04) id AA12212; Sat, 30 Sep 95 01:10:07 CEST Received: from npd.ufsc.br (npd.ufsc.br [150.162.1.3]) by santra.hut.fi (8.6.11/8.6.7) with ESMTP id AAA19538 for ; Sat, 30 Sep 1995 00:55:16 +0200 Received: from venus (inf.ufsc.br [150.162.1.60]) by npd.ufsc.br (8.6.8.1/8.6.6) with SMTP id NAA53336 for ; Fri, 29 Sep 1995 13:45:41 -0500 Received: from mercurio.ufsc.br by venus (4.1/SMI-4.1) id AA11271; Fri, 29 Sep 95 13:46:10 EST Date: Fri, 29 Sep 95 13:46:10 EST From: merkle@inf.ufsc.br (Carla Merkle) Message-Id: <9509291646.AA11271@venus> To: gpc@hut.fi Status: RO subscribe gpc merkle@inf.ufsc.br From gpc-request@santra.hut.fi Fri Oct 6 13:31:53 1995 Received: from rt07.Theo-Phys.Uni-Essen.DE by rs1.Theo-Phys.Uni-Essen.DE (AIX 3.2/UCB 5.64/4.03) id AA27192; Fri, 6 Oct 1995 13:31:52 +0100 Received: by rt07.Theo-Phys.Uni-Essen.DE (AIX 2.1 2/4.04) id AA16363; Fri, 6 Oct 95 13:31:43 CET Received: from chx400.switch.ch (chx400.switch.ch [130.59.1.2]) by santra.hut.fi (8.6.11/8.6.7) with ESMTP id MAA12991; Fri, 6 Oct 1995 12:55:28 +0200 Received: from idiap.ch (actually maya.idiap.ch) by chx400.switch.ch with SMTP (PP); Fri, 6 Oct 1995 11:54:39 +0100 Received: from rose.idiap.ch by idiap.ch (4.1/SMI-4.1) id AA21030; Fri, 6 Oct 95 11:54:34 +0100 Date: Fri, 6 Oct 95 11:54:34 +0100 From: peter@idiap.ch (Peter Weber) Message-Id: <9510061054.AA21030@idiap.ch> To: jtv@hut.fi, peter@idiap.ch Subject: gpc Cc: gpc@hut.fi Status: RO Hi I translated a big pc-program (former Turbo-Pascal) into a gpc-program. I found some problems and have some questions! -gcc version 2.6.3 -can not make comments with included comments program test; begin { this is ok! } (* this also *) { (* you get a error*) } { { also get a error } } end. How dos it work >>EXPORT, IMPORT<gpc -c test.pas ==>test.o >gpc test.o testp.pas ==>No exported interface matching `Test' I found only one way to compile this: >gpc -include test.pas testp.pas How do you compile this? Have you implemented routines to handle the I/O Errors? (e.g. Turbo Pascal => IOResult ); ,~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~. | --------,\ | | Peter Weber / / / | | IDIAP Martigny Peter@IDIAP.CH / / _/ | | TU Ilmenau Peter.Weber@E-Technik.TU-ILMENAU.DE / / | | _/ _/ | |----------------------------------------------------------------------| | http://www.idiap.ch/html/idiap-networks.html | | http://www.rz.tu-ilmenau.de/~webmast/ | | http://www.rz.tu-ilmenau.de/~hsf/hsf.html | `~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~' From gpc-request@santra.hut.fi Mon Oct 23 21:39:11 1995 Received: from rt07.Theo-Phys.Uni-Essen.DE by rs1.Theo-Phys.Uni-Essen.DE (AIX 3.2/UCB 5.64/4.03) id AA26425; Mon, 23 Oct 1995 21:39:10 +0100 Received: by rt07.Theo-Phys.Uni-Essen.DE (AIX 2.1 2/4.04) id AA20958; Mon, 23 Oct 95 21:39:06 CET Received: from txcc.net.txcc.net (txcc.net [205.218.183.157]) by santra.hut.fi (8.6.11/8.6.7) with SMTP id WAA29484 for ; Mon, 23 Oct 1995 22:30:21 +0200 Received: by txcc.net.txcc.net (4.1/SMI-4.1) id AA14797; Mon, 23 Oct 95 15:29:01 PDT Date: Mon, 23 Oct 95 15:29:01 PDT From: root@txcc.net (Operator) Message-Id: <9510232229.AA14797@txcc.net.txcc.net> To: gpc@hut.fi Subject: test Status: RO hello.. From gpc-request@santra.hut.fi Wed Nov 1 01:45:46 1995 Received: from rt07.Theo-Phys.Uni-Essen.DE by rs1.Theo-Phys.Uni-Essen.DE (AIX 3.2/UCB 5.64/4.03) id AA29401; Wed, 1 Nov 1995 01:45:45 +0100 Received: by rt07.Theo-Phys.Uni-Essen.DE (AIX 2.1 2/4.04) id AA22149; Wed, 1 Nov 95 01:45:40 CET Received: from info-sparc1.info.ucl.ac.be (info-sparc1.info.ucl.ac.be [130.104.2.23]) by santra.hut.fi (8.6.11/8.6.7) with ESMTP id CAA06034 for ; Wed, 1 Nov 1995 02:30:05 +0200 Received: from info.ucl.ac.be (info-gtpp1.info.ucl.ac.be [130.104.21.67]) by info-sparc1.info.ucl.ac.be (8.6.12/fg.05.10.95) with ESMTP id BAA20539 for ; Wed, 1 Nov 1995 01:36:53 +0100 Received: from localhost by info.ucl.ac.be (8.6.12/SMI-4.1 (For sendmail 8.6 FG/041095)) id BAA05296; Wed, 1 Nov 1995 01:34:23 +0100 Message-Id: <199511010034.BAA05296@info.ucl.ac.be> X-Mailer: exmh version 1.6.4 10/10/95 To: gpc@hut.fi Subject: converter bp->ep Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Wed, 01 Nov 1995 01:34:21 +0100 From: Christophe Ponsard Status: RO I'd like to convert some of my borland pascal units in extended pascal modules (or in gpc modules). Does such a converter exist (and where) ? Otherwise I'll write one using flex & bison on a subset of the extended pascal grammar. It would be nice if I could get it (the .lex and .yacc files are not in the gpc snapshot) Is there a solution to the following constraint : the interface part of all the modules used by a program have to be included at his beginning. The solution of deducing the name of the module file from the import name (as borland do) was excluded (not portable ?) My converter would implement the solution using #include "unit.ph" directives in the main program. Each borland pascal unit would be splitted in a 'unit.pas' file (implementation) and a 'unit.ph' file (interface). --------------------------------------- PONSARD Christophe Universiti catholique de Louvain Dipartement d'inginierie informatique Bbtiment Riaumur, place Sainte Barbe 1348 Louvain-la-Neuve til. : 010/47 31 30 e-mail: chp@info.ucl.ac.be From gpc-request@santra.hut.fi Thu Nov 2 13:07:26 1995 Received: from rt07.Theo-Phys.Uni-Essen.DE by rs1.Theo-Phys.Uni-Essen.DE (AIX 3.2/UCB 5.64/4.03) id AA07457; Thu, 2 Nov 1995 13:07:25 +0100 Received: by rt07.Theo-Phys.Uni-Essen.DE (AIX 2.1 2/4.04) id AA27623; Thu, 2 Nov 95 13:07:21 CET Received: from spv10.ing.uniroma1.it (spv10.ing.uniroma1.it [151.100.39.10]) by santra.hut.fi (8.6.11/8.6.7) with SMTP id NAA06533 for ; Thu, 2 Nov 1995 13:52:53 +0200 Received: by spv10.ing.uniroma1.it (AIX 3.2/UCB 5.64/4.03) id AA16818; Thu, 2 Nov 1995 12:52:45 +0100 Date: Thu, 2 Nov 1995 12:52:45 +0100 From: i085741@spv10.ing.uniroma1.it (Mauro Ottaviani) Message-Id: <9511021152.AA16818@spv10.ing.uniroma1.it> To: gpc@hut.fi Subject: HELP ! Status: RO Hello, I have a problem using files with gpc: In Turbo Pascal I usually use the following: var f:text; begin assign(f,'filename'); reset(f); ... close(f); But this doesn't work with gpc !! I tryed: reset(f,'filename'); This time it also compiled OK, but gives a runtime error !! Please HELP me ! Best regards Mauro Ottaviani From gpc-request@santra.hut.fi Thu Nov 2 15:30:24 1995 Received: from rt07.Theo-Phys.Uni-Essen.DE by rs1.Theo-Phys.Uni-Essen.DE (AIX 3.2/UCB 5.64/4.03) id AA04997; Thu, 2 Nov 1995 15:30:23 +0100 Received: by rt07.Theo-Phys.Uni-Essen.DE (AIX 2.1 2/4.04) id AA27988; Thu, 2 Nov 95 15:30:19 CET Received: from wor-srv.wam.umd.edu (wor-srv.wam.umd.edu [128.8.76.2]) by santra.hut.fi (8.6.11/8.6.7) with ESMTP id QAA09725 for ; Thu, 2 Nov 1995 16:14:22 +0200 Received: from rac1.wam.umd.edu (lotu@rac1.wam.umd.edu [128.8.70.3]) by wor-srv.wam.umd.edu (8.6.10/8.6.9) with ESMTP id JAA15648; Thu, 2 Nov 1995 09:14:15 -0500 Received: (lotu@localhost) by rac1.wam.umd.edu (8.6.10/8.6.10) id JAA10656; Thu, 2 Nov 1995 09:14:14 -0500 Date: Thu, 2 Nov 1995 09:14:13 -0500 (EST) From: Arcadio Alivio Sincero To: Mauro Ottaviani Cc: gpc@hut.fi Subject: Re: HELP ! In-Reply-To: <9511021152.AA16818@spv10.ing.uniroma1.it> Message-Id: Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Status: RO On Thu, 2 Nov 1995, Mauro Ottaviani wrote: > Hello, > I have a problem using files with gpc: > In Turbo Pascal I usually use the following: > var > f:text; > begin > assign(f,'filename'); > reset(f); > ... > close(f); > But this doesn't work with gpc !! > I tryed: > reset(f,'filename'); > This time it also compiled OK, but gives a runtime error !! > Please HELP me ! In ISO Pascal, you have to specify any external files accessed by your program in the Program header. For example: Program Demo1 (InFile, OutFile); Var InFile, OutFile : Text; Begin Reset (InFile); Rewrite (OutFile); End {Demo1}. 'Tho ISO Pascal has no provisions for specifying a filename for the external files, most Pascal implementations allow you to do so via the Reset/Rewrite commands. GPC is one of these Pascal implementations. So, modifying the above program to open the files "INDATA" for input and "OUTDATA" for output: Program Demo2 (InFile, OutFile); Var InFile, OutFile : Text; Begin Reset (InFile, './INDATA'); Rewrite (OutFile, './OUTDATA'); End {Demo2}. In ISO Pascal, files are automatically closed when the program terminates, therefore there is no "Close" command. Some Pascal implementations, like Borland, do have a "Close" command. I don't know if GPC has one or not. Also, the files "Input" and "Output" are special files used for standard input and standard output respectivly. So to use Read/Readln and Write/Writeln to get input from the keyboard and to display something on the screen, you have to put a "Input, Output" in your program header. A little different from Borland, I know. But actually, if you think about it, it's a little better to specify what external files are used in the Program header. That way you know exactly what files are gonna be opened by just looking at the Program header. I didn't like it at first, but now I think it's not a bad idea. Arcadio From gpc-request@santra.hut.fi Thu Nov 2 18:20:35 1995 Received: from rt07.Theo-Phys.Uni-Essen.DE by rs1.Theo-Phys.Uni-Essen.DE (AIX 3.2/UCB 5.64/4.03) id AA04975; Thu, 2 Nov 1995 18:20:34 +0100 Received: by rt07.Theo-Phys.Uni-Essen.DE (AIX 2.1 2/4.04) id AA28438; Thu, 2 Nov 95 18:20:31 CET Received: from rs1.Theo-Phys.Uni-Essen.DE (rs1.theo-phys.uni-essen.de [132.252.254.226]) by santra.hut.fi (8.6.11/8.6.7) with SMTP id TAA12448 for ; Thu, 2 Nov 1995 19:02:21 +0200 Received: by rs1.Theo-Phys.Uni-Essen.DE (AIX 3.2/UCB 5.64/4.03) id AA04944; Thu, 2 Nov 1995 18:02:12 +0100 From: Peter Gerwinski Message-Id: <9511021702.AA04944@rs1.Theo-Phys.Uni-Essen.DE> Subject: Re: HELP (files) To: gpc@hut.fi Date: Thu, 2 Nov 1995 18:02:12 +0100 (MEZ) X-Mailer: ELM [version 2.4 PL13] Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 8bit Content-Length: 987 Status: RO > Hello, Hello as well! > I have a problem using files with gpc: > > In Turbo Pascal I usually use the following: > > var > f:text; > > begin > assign(f,'filename'); > reset(f); > ... > close(f); > > But this doesn't work with gpc !! Look into the file borland2ep.doc by Berend de Boer which comes with GPC. There is documented how to write `assign' by yourself using GPC's `bind' procedure. This has proven to work in some cases, but not in all ... perhaps it will work when we also take into account Arcadio's hint. Good luck, Peter -------------------------------------------------------------------------------- Dipl. Phys. Peter Gerwinski Fachbereich Physik Universitaet-GH Essen Phone: +49-201-183-2763 D-45117 Essen Fax: +49-201-183-2120 Germany e-mail: pege@mail.theo-phys.uni-essen.de -------------------------------------------------------------------------------- From gpc-request@santra.hut.fi Thu Nov 2 19:57:20 1995 Received: from rt07.Theo-Phys.Uni-Essen.DE by rs1.Theo-Phys.Uni-Essen.DE (AIX 3.2/UCB 5.64/4.03) id AA18132; Thu, 2 Nov 1995 19:57:19 +0100 Received: by rt07.Theo-Phys.Uni-Essen.DE (AIX 2.1 2/4.04) id AA28614; Thu, 2 Nov 95 19:57:16 CET Received: from mail.fonorola.net (mail.fonorola.net [198.53.64.8]) by santra.hut.fi (8.6.11/8.6.7) with SMTP id UAA14424 for ; Thu, 2 Nov 1995 20:38:03 +0200 Received: from liti.magi.com by mail.fonorola.net with SMTP (5.65/25-eef) id AA06934; Thu, 2 Nov 95 13:05:09 -0500 Received: from slavitch.loran.com (slavitch@slavitch.loran.com [204.191.52.2]) by loran.com (8.6.12/8.6.9) with ESMTP id NAA06256 for ; Thu, 2 Nov 1995 13:21:03 -0500 Received: (from slavitch@localhost) by slavitch.loran.com (8.6.12/8.6.9) id NAA02208; Thu, 2 Nov 1995 13:12:47 -0500 Date: Thu, 2 Nov 1995 13:12:47 -0500 Message-Id: <199511021812.NAA02208@slavitch.loran.com> From: Michael Slavitch To: gpc@hut.fi Subject: gpc and gcc 2.7 on Linux.... Status: RO Has anyone successfully used gpc with gcc 2.7.0? Michael From gpc-request@santra.hut.fi Mon Nov 6 18:34:56 1995 Received: from rt07.Theo-Phys.Uni-Essen.DE by rs1.Theo-Phys.Uni-Essen.DE (AIX 3.2/UCB 5.64/4.03) id AA25872; Mon, 6 Nov 1995 18:34:55 +0100 Received: by rt07.Theo-Phys.Uni-Essen.DE (AIX 2.1 2/4.04) id AA12986; Mon, 6 Nov 95 18:34:46 CET Received: from rs1.Theo-Phys.Uni-Essen.DE (rs1.theo-phys.uni-essen.de [132.252.254.226]) by santra.hut.fi (8.6.11/8.6.7) with SMTP id TAA17753 for ; Mon, 6 Nov 1995 19:13:42 +0200 Received: by rs1.Theo-Phys.Uni-Essen.DE (AIX 3.2/UCB 5.64/4.03) id AA20648; Mon, 6 Nov 1995 18:13:24 +0100 From: Peter Gerwinski Message-Id: <9511061713.AA20648@rs1.Theo-Phys.Uni-Essen.DE> Subject: Announcement: Borland extensions for GPC To: gpc@hut.fi Date: Mon, 6 Nov 1995 18:13:23 +0100 (MEZ) X-Mailer: ELM [version 2.4 PL13] Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 8bit Content-Length: 878 Status: RO Hello, folks! I have implemented most of the Borland extensions -- and some other stuff -- into GPC. My extensions include: - Units - Compiler directives - Bit manipulations: and, or, shl, shr - Increment, decrement, min, max - Absolute variables - Objects - User-definable operators The modified sources are available on kampi.hut.fi in the directory /gpc/turbo-alpha. I am looking forward to receive your comments. :-) Yours, Peter -------------------------------------------------------------------------------- Dipl. Phys. Peter Gerwinski Fachbereich Physik Universitaet-GH Essen Phone: +49-201-183-2763 D-45117 Essen Fax: +49-201-183-2120 Germany e-mail: pege@mail.theo-phys.uni-essen.de -------------------------------------------------------------------------------- From lotu@wam.umd.edu Tue Nov 7 16:16:55 1995 Received: from pg2-srv.wam.umd.edu by rs1.Theo-Phys.Uni-Essen.DE (AIX 3.2/UCB 5.64/4.03) id AA31344; Tue, 7 Nov 1995 16:16:39 +0100 Received: from rac1.wam.umd.edu (lotu@rac1.wam.umd.edu [128.8.70.3]) by pg2-srv.wam.umd.edu (8.6.10/8.6.9) with ESMTP id KAA21201; Tue, 7 Nov 1995 10:16:06 -0500 Received: (lotu@localhost) by rac1.wam.umd.edu (8.6.10/8.6.10) id KAA16273; Tue, 7 Nov 1995 10:16:05 -0500 Date: Tue, 7 Nov 1995 10:16:04 -0500 (EST) From: Arcadio Alivio Sincero To: Peter Gerwinski Cc: gpc@hut.fi Subject: Re: Announcement: Borland extensions for GPC In-Reply-To: <9511061713.AA20648@rs1.Theo-Phys.Uni-Essen.DE> Message-Id: Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Status: RO On Mon, 6 Nov 1995, Peter Gerwinski wrote: > I have implemented most of the Borland extensions > -- and some other stuff -- into GPC. > My extensions include: > - Units > - Compiler directives > - Bit manipulations: and, or, shl, shr > - Increment, decrement, min, max > - Absolute variables > - Objects > - User-definable operators > The modified sources are available on kampi.hut.fi > in the directory /gpc/turbo-alpha. > I am looking forward to receive your comments. :-) Awesome. Good job Peter! 'Tho I wish somebody would finish up the Extended Pascal portions of GPC. I'm trying to steer myself away for using the Borland "standard" (or non-standard ...). Well, at least now we got a "Borland" Pascal compiler for Linux (there is a Linux version, right? I've only recently switched from OS/2 to Linux ... but I'm pretty sure I saw a Linux version last time I was on kampi.hut.fi ...). Arcadio From gpc-request@santra.hut.fi Tue Nov 7 17:28:42 1995 Received: from rt07.Theo-Phys.Uni-Essen.DE by rs1.Theo-Phys.Uni-Essen.DE (AIX 3.2/UCB 5.64/4.03) id AA27870; Tue, 7 Nov 1995 17:28:41 +0100 Received: by rt07.Theo-Phys.Uni-Essen.DE (AIX 2.1 2/4.04) id AA16739; Tue, 7 Nov 95 17:28:17 CET Received: from rs1.Theo-Phys.Uni-Essen.DE (rs1.theo-phys.uni-essen.de [132.252.254.226]) by santra.hut.fi (8.6.11/8.6.7) with SMTP id SAA09140 for ; Tue, 7 Nov 1995 18:08:18 +0200 Received: by rs1.Theo-Phys.Uni-Essen.DE (AIX 3.2/UCB 5.64/4.03) id AA28752; Tue, 7 Nov 1995 17:07:06 +0100 From: Peter Gerwinski Message-Id: <9511071607.AA28752@rs1.Theo-Phys.Uni-Essen.DE> Subject: Re: Announcement: Borland extensions for GPC To: lotu@wam.umd.edu, gpc@hut.fi Date: Tue, 7 Nov 1995 17:07:05 +0100 (MEZ) In-Reply-To: from "Arcadio Alivio Sincero" at Nov 7, 95 10:16:04 am X-Mailer: ELM [version 2.4 PL13] Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 8bit Content-Length: 1645 Status: RO According to Arcadio Alivio Sincero: > > Awesome. Good job Peter! Thank you! :-) :-) :-) > 'Tho I wish somebody would finish up the Extended Pascal portions > of GPC. I'm trying to steer myself away for using the Borland "standard" > (or non-standard ...). I think that for many applications you actually *need* the Borland "non-standard". For example, for lo-level programming you need a bitwise "and" and a bit-shift operator for integers. Moreover, I feel Borland Pascal Units to be much more comfortable than Extended Pascal Modules due to the repetition of each exported identifier in an "export" clause. However, I am willing to contribute to this "finishing up" if somebody tells me what has to be done. > Well, at least now we got a "Borland" Pascal compiler for Linux > (there is a Linux version, right? I've only recently switched from OS/2 > to Linux ... but I'm pretty sure I saw a Linux version last time I was on > kampi.hut.fi ...). I don't know of an explicit Linux version at kampi.hut.fi, but GPC compiles straightforwardly under Linux. Nevertheless, I have archives with ready-to-run binaries for EMX (DOS and OS/2) as well as for Linux. Shall I upload them? Yours, Peter -------------------------------------------------------------------------------- Dipl. Phys. Peter Gerwinski Fachbereich Physik Universitaet-GH Essen Phone: +49-201-183-2763 D-45117 Essen Fax: +49-201-183-2120 Germany e-mail: pege@mail.theo-phys.uni-essen.de -------------------------------------------------------------------------------- From sad@utkux.utcc.utk.edu Tue Nov 7 18:56:18 1995 Received: from UTKUX4.UTCC.UTK.EDU by rs1.Theo-Phys.Uni-Essen.DE (AIX 3.2/UCB 5.64/4.03) id AA28719; Tue, 7 Nov 1995 18:56:01 +0100 Received: by utkux4.utcc.utk.edu (5.x/2.7c-UTK) id AA29885; Tue, 7 Nov 1995 12:54:36 -0500 From: sad@utkux.utcc.utk.edu Message-Id: <9511071754.AA29885@utkux4.utcc.utk.edu> Subject: Re: Announcement: Borland extensions for GPC To: pege@rs1.Theo-Phys.Uni-Essen.DE (Peter Gerwinski) Date: Tue, 7 Nov 1995 12:54:35 -0500 (EST) In-Reply-To: <9511071607.AA28752@rs1.Theo-Phys.Uni-Essen.DE> from "Peter Gerwinski" at Nov 7, 95 05:07:05 pm X-Mailer: ELM [version 2.4 PL23] Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Status: RO > > According to Arcadio Alivio Sincero: > > > > Awesome. Good job Peter! > > Thank you! :-) :-) :-) > > > 'Tho I wish somebody would finish up the Extended Pascal portions > > of GPC. I'm trying to steer myself away for using the Borland "standard" > > (or non-standard ...). > > I think that for many applications you actually *need* the Borland > "non-standard". For example, for lo-level programming you need a > bitwise "and" and a bit-shift operator for integers. Moreover, I feel > Borland Pascal Units to be much more comfortable than Extended Pascal > Modules due to the repetition of each exported identifier in an > "export" clause. However, I am willing to contribute to this > "finishing up" if somebody tells me what has to be done. > > > Well, at least now we got a "Borland" Pascal compiler for Linux > > (there is a Linux version, right? I've only recently switched from OS/2 > > to Linux ... but I'm pretty sure I saw a Linux version last time I was on > > kampi.hut.fi ...). > > I don't know of an explicit Linux version at kampi.hut.fi, but GPC > compiles straightforwardly under Linux. Nevertheless, I have > archives with ready-to-run binaries for EMX (DOS and OS/2) as well > as for Linux. Shall I upload them? Yes, please! Especially the OS/2 version I am eagerly awaiting! Stefan From laa12@cc.keele.ac.uk Tue Nov 7 20:48:13 1995 Received: from gabriel.keele.ac.uk by rs1.Theo-Phys.Uni-Essen.DE (AIX 3.2/UCB 5.64/4.03) id AA31613; Tue, 7 Nov 1995 20:47:52 +0100 Received: from potter.cc.keele.ac.uk by gabriel.keele.ac.uk with SMTP (PP); Tue, 7 Nov 1995 16:26:37 +0000 From: "A.A. Olowofoyeku" Message-Id: <27579.199511071626@potter.cc.keele.ac.uk> Subject: Re: Announcement: Borland extensions for GPC To: pege@rs1.Theo-Phys.Uni-Essen.DE (Peter Gerwinski) Date: Tue, 7 Nov 1995 16:25:59 +0000 (GMT) In-Reply-To: <9511071607.AA28752@rs1.Theo-Phys.Uni-Essen.DE> from "Peter Gerwinski" at Nov 7, 95 05:07:05 pm X-Mailer: ELM [version 2.4 PL23] Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Status: RO Hello, Peter Gerwinski! You wrote: > According to Arcadio Alivio Sincero: > > > > Awesome. Good job Peter! Same sentiments here. > I think that for many applications you actually *need* the Borland > "non-standard". For example, for lo-level programming you need a > bitwise "and" and a bit-shift operator for integers. Moreover, I feel > Borland Pascal Units to be much more comfortable than Extended Pascal > Modules due to the repetition of each exported identifier in an > "export" clause. I agree entirely. I also think that this "non-standard" has become a standard in its own right - as a matter of fact, even if not as a matter of law. The fact that everybody else is now trying to implement it (StonyBrook, Speed Pascal, Virtual Pascal, Cabot UCSD Pascal) means that it has come to stay, and should therefore be supported by Pascal compilers (even if only as an option available through compiler switches). > However, I am willing to contribute to this > "finishing up" if somebody tells me what has to be done. Personally, I would suggest that your efforts would better serve the Pascal community by implementing more of the Borland extensions, to achieve as much compatibility as is necessary - and somebody else can work on Extended Pascal. Specialisation in this way is very good. Eventually, GPC may become the best Pascal environment around, in the sense of supporting all the major "standards". If this were so, we could then begin to really compete with C on portability, and give C a run for its money. > I don't know of an explicit Linux version at kampi.hut.fi, but GPC > compiles straightforwardly under Linux. Nevertheless, I have > archives with ready-to-run binaries for EMX (DOS and OS/2) as well > as for Linux. Shall I upload them? Probably, yes. I would surely like to get my hands on ready-to-run binaries for DOS and OS/2 if Borland compatibility were there. Is there a Win32 version anywhere - or is there any plan for one? Warmest regards, The Chief --------- Dr. Abimbola A. Olowofoyeku (The African Chief) Keele University, England (and, The Great Elephant) Email: laa12@keele.ac.uk or, chief@mep.com From lotu@wam.umd.edu Thu Nov 9 12:31:30 1995 Received: from wor-srv.wam.umd.edu by rs1.Theo-Phys.Uni-Essen.DE (AIX 3.2/UCB 5.64/4.03) id AA25816; Thu, 9 Nov 1995 12:31:17 +0100 Received: from rac8.wam.umd.edu (lotu@rac8.wam.umd.edu [128.8.70.124]) by wor-srv.wam.umd.edu (8.6.10/8.6.9) with ESMTP id QAA23121; Wed, 8 Nov 1995 16:35:23 -0500 Received: (lotu@localhost) by rac8.wam.umd.edu (8.6.10/8.6.10) id QAA05043; Wed, 8 Nov 1995 16:35:18 -0500 Date: Wed, 8 Nov 1995 16:35:15 -0500 (EST) From: Arcadio Alivio Sincero To: Peter Gerwinski Cc: gpc@hut.fi Subject: Re: Announcement: Borland extensions for GPC In-Reply-To: <9511071607.AA28752@rs1.Theo-Phys.Uni-Essen.DE> Message-Id: Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Status: RO On Tue, 7 Nov 1995, Peter Gerwinski wrote: > > 'Tho I wish somebody would finish up the Extended Pascal portions > > of GPC. I'm trying to steer myself away for using the Borland "standard" > > (or non-standard ...). > I think that for many applications you actually *need* the Borland > "non-standard". For example, for lo-level programming you need a > bitwise "and" and a bit-shift operator for integers. Moreover, I feel Hmm ... Extended Pascal doesn't have this then? BTW - does anybody know if the Extended Pascal specs have been posted yet? Somebody up on comp.lang.pascal.ansi-iso said he was gonna do it .. I'm wondering if he did it yet. > I don't know of an explicit Linux version at kampi.hut.fi, but GPC > compiles straightforwardly under Linux. Nevertheless, I have > archives with ready-to-run binaries for EMX (DOS and OS/2) as well > as for Linux. Shall I upload them? I'm sure a bunch of OS/2 users would thank you for it if you did upload it. I know I would. Just be sure to drop a note in the OS/2 programmer newsgroups. Arcadio From gpc-request@santra.hut.fi Thu Nov 9 19:02:48 1995 Received: from rt07.Theo-Phys.Uni-Essen.DE by rs1.Theo-Phys.Uni-Essen.DE (AIX 3.2/UCB 5.64/4.03) id AA23143; Thu, 9 Nov 1995 19:02:47 +0100 Received: by rt07.Theo-Phys.Uni-Essen.DE (AIX 2.1 2/4.04) id AA24451; Thu, 9 Nov 95 19:02:44 CET Received: from rs1.Theo-Phys.Uni-Essen.DE (rs1.theo-phys.uni-essen.de [132.252.254.226]) by santra.hut.fi (8.6.11/8.6.7) with SMTP id TAA27243 for ; Thu, 9 Nov 1995 19:42:31 +0200 Received: by rs1.Theo-Phys.Uni-Essen.DE (AIX 3.2/UCB 5.64/4.03) id AA26767; Thu, 9 Nov 1995 18:42:12 +0100 From: Peter Gerwinski Message-Id: <9511091742.AA26767@rs1.Theo-Phys.Uni-Essen.DE> Subject: Binaries and IDE for Turbo-GPC To: gpc@hut.fi Date: Thu, 9 Nov 1995 18:42:11 +0100 (MEZ) X-Mailer: ELM [version 2.4 PL13] Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 8bit Content-Length: 1126 Status: RO Hello! I have uploaded binaries for the Turbo-GPC for EMX (i.e. DOS and OS/2) and for Linux to kampi.hut.fi and also to ftp.uni-augsburg.de. In Augsburg, they already can be downloaded immediately from /pub/incoming/gnu-pascal/turbo-alpha, but I asked them to move the tree to /pub/gnu and to set up some symbolic links. By the way: there is a Borland-style integrated development system named XWPE which is designed to run gcc, but can handle gpc, too (of course). It runs fine with X as well as with Linux in text mode. It can be downloaded (for example) from cranach.rz.tu-ilmenau.de from the directory /pub/unix/linux/distributions/DEBIAN/debian-0.93/source/devel. Have fun, Peter -------------------------------------------------------------------------------- Dipl. Phys. Peter Gerwinski Fachbereich Physik Universitaet-GH Essen Phone: +49-201-183-2763 D-45117 Essen Fax: +49-201-183-2120 Germany e-mail: pege@mail.theo-phys.uni-essen.de -------------------------------------------------------------------------------- From lotu@wam.umd.edu Fri Nov 10 04:40:00 1995 Received: from wor-srv.wam.umd.edu by rs1.Theo-Phys.Uni-Essen.DE (AIX 3.2/UCB 5.64/4.03) id AA18856; Fri, 10 Nov 1995 04:39:51 +0100 Received: from rac8.wam.umd.edu (lotu@rac8.wam.umd.edu [128.8.70.124]) by wor-srv.wam.umd.edu (8.6.10/8.6.9) with ESMTP id WAB23089; Thu, 9 Nov 1995 22:39:35 -0500 Received: (lotu@localhost) by rac8.wam.umd.edu (8.6.10/8.6.10) id WAA04213; Thu, 9 Nov 1995 22:39:34 -0500 Date: Thu, 9 Nov 1995 22:39:28 -0500 (EST) From: Arcadio Alivio Sincero To: Peter Gerwinski Cc: gpc@hut.fi Subject: Re: Binaries and IDE for Turbo-GPC In-Reply-To: <9511091742.AA26767@rs1.Theo-Phys.Uni-Essen.DE> Message-Id: Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Status: RO On Thu, 9 Nov 1995, Peter Gerwinski wrote: > I have uploaded binaries for the Turbo-GPC for EMX > (i.e. DOS and OS/2) and for Linux to kampi.hut.fi > and also to ftp.uni-augsburg.de. In Augsburg, they > already can be downloaded immediately from I was wondering, is the Linux verson you put up there compiled for ELF? I want to experience compiling GPC myself ... me being a new Linux user, it'd be a great learning experience. 'Tho I know the install notes for GPC specifically called for GCC v.2.6.3, I was wondering if it'll work with GCC v.2.7.0? If not, how can I set it up so it'll produce an ELF version of GPC? Thanks ... Arcadio From gpc-request@santra.hut.fi Fri Nov 10 12:01:44 1995 Received: from rt07.Theo-Phys.Uni-Essen.DE by rs1.Theo-Phys.Uni-Essen.DE (AIX 3.2/UCB 5.64/4.03) id AA27274; Fri, 10 Nov 1995 12:01:43 +0100 Received: by rt07.Theo-Phys.Uni-Essen.DE (AIX 2.1 2/4.04) id AA27052; Fri, 10 Nov 95 12:01:38 CET Received: from rs1.Theo-Phys.Uni-Essen.DE (rs1.theo-phys.uni-essen.de [132.252.254.226]) by santra.hut.fi (8.6.11/8.6.7) with SMTP id MAA12369 for ; Fri, 10 Nov 1995 12:49:14 +0200 Received: by rs1.Theo-Phys.Uni-Essen.DE (AIX 3.2/UCB 5.64/4.03) id AA24281; Fri, 10 Nov 1995 11:48:42 +0100 From: Peter Gerwinski Message-Id: <9511101048.AA24281@rs1.Theo-Phys.Uni-Essen.DE> Subject: Re: Binaries and IDE for Turbo-GPC To: lotu@wam.umd.edu, gpc@hut.fi Date: Fri, 10 Nov 1995 11:48:41 +0100 (MEZ) In-Reply-To: from "Arcadio Alivio Sincero" at Nov 9, 95 10:39:28 pm X-Mailer: ELM [version 2.4 PL13] Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 8bit Content-Length: 1127 Status: RO According to Arcadio Alivio Sincero: > > I was wondering, is the Linux verson you put up there compiled > for ELF? No. I'm sorry, but GPC version 2.6.3 is still a.out, not ELF. > I want to experience compiling GPC myself ... me being a new > Linux user, it'd be a great learning experience. 'Tho I know the install > notes for GPC specifically called for GCC v.2.6.3, I was wondering if > it'll work with GCC v.2.7.0? If not, how can I set it up so it'll produce > an ELF version of GPC? I don't know about GPC 2.6.3 with GCC 2.7.0, but Juki recently wrote that he would upgrade GPC to 2.7.1. So just wait, and you'll get an ELF version of GPC which will produce ELF code. Yours, Peter -------------------------------------------------------------------------------- Dipl. Phys. Peter Gerwinski Fachbereich Physik Universitaet-GH Essen Phone: +49-201-183-2763 D-45117 Essen Fax: +49-201-183-2120 Germany e-mail: pege@mail.theo-phys.uni-essen.de -------------------------------------------------------------------------------- From lotu@wam.umd.edu Sat Nov 11 21:34:25 1995 Received: from wor-srv.wam.umd.edu by rs1.Theo-Phys.Uni-Essen.DE (AIX 3.2/UCB 5.64/4.03) id AA25918; Sat, 11 Nov 1995 21:34:16 +0100 Received: from rac5.wam.umd.edu (lotu@rac5.wam.umd.edu [128.8.70.121]) by wor-srv.wam.umd.edu (8.6.10/8.6.9) with ESMTP id PAA03878 for ; Sat, 11 Nov 1995 15:34:19 -0500 Received: (lotu@localhost) by rac5.wam.umd.edu (8.6.10/8.6.10) id PAA22438; Sat, 11 Nov 1995 15:34:18 -0500 Date: Sat, 11 Nov 1995 15:34:17 -0500 (EST) From: Arcadio Alivio Sincero To: Peter Gerwinski Subject: Re: Binaries and IDE for Turbo-GPC In-Reply-To: <9511091742.AA26767@rs1.Theo-Phys.Uni-Essen.DE> Message-Id: Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Status: RO On Thu, 9 Nov 1995, Peter Gerwinski wrote: > Hello! > > I have uploaded binaries for the Turbo-GPC for EMX > (i.e. DOS and OS/2) and for Linux to kampi.hut.fi > and also to ftp.uni-augsburg.de. In Augsburg, they > already can be downloaded immediately from > /pub/incoming/gnu-pascal/turbo-alpha, > but I asked them to move the tree to /pub/gnu and > to set up some symbolic links. I downloaded your version GPC-Linux instead of recompiling it myself. I got a project for my CMSC112 class due soon and I don't have time to mess around trying to figure out how to recompile GPC. 'Tho, I seem to be having some trouble. When I try to compile a test program, I get the error: ld: cannot open crt0.o: No such file or directory Here's where I have the files installed. The binary gpc is installed in /usr/bin. The binaries gpc-cpp and gpc1 are installed in the directory /usr/lib/gcc-lib/i486-linuxaout/2.6.3, however I have symbolic links in the directory /usr/local/bin named "gpc-cpp" and "gpc1" pointing to those binaries. The ar libraries libgpc.a and libgcc.a are also installed in /usr/lib/gcc-lib/i486-linuxaout/2.6.3. My system is SlackWare Linux v.3.0. The version of GCC I have installed is v.2.7.0. The source code is not installed. I do not have GCC v.2.6.3 installed in either source or compiled form. Please help. Thanks. Arcadio From gpc-request@santra.hut.fi Sun Nov 12 00:37:39 1995 Received: from rt07.Theo-Phys.Uni-Essen.DE by rs1.Theo-Phys.Uni-Essen.DE (AIX 3.2/UCB 5.64/4.03) id AA19918; Sun, 12 Nov 1995 00:37:38 +0100 Received: by rt07.Theo-Phys.Uni-Essen.DE (AIX 2.1 2/4.04) id AA02494; Sun, 12 Nov 95 00:37:43 CET Received: from wor-srv.wam.umd.edu (wor-srv.wam.umd.edu [128.8.76.2]) by santra.hut.fi (8.6.11/8.6.7) with ESMTP id BAA05277 for ; Sun, 12 Nov 1995 01:23:49 +0200 Received: from rac4.wam.umd.edu (lotu@rac4.wam.umd.edu [128.8.70.120]) by wor-srv.wam.umd.edu (8.6.10/8.6.9) with ESMTP id SAA16514 for ; Sat, 11 Nov 1995 18:23:31 -0500 Received: (lotu@localhost) by rac4.wam.umd.edu (8.6.10/8.6.10) id SAA05245; Sat, 11 Nov 1995 18:23:30 -0500 Date: Sat, 11 Nov 1995 18:23:29 -0500 (EST) From: Arcadio Alivio Sincero To: gpc@hut.fi Subject: NEED LINUX/ELF VERSION OF GPC!! Message-Id: Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Status: RO Can somebody PLEASE make an ELF version of GPC for Linux that works with GCC v.2.7.0???? Or give me some pointers on how to do it myself???? I downloaded the Linux version of GPC that Peter Gerwinski made, but it doesn't work on my system. I'm thinking maybe because I have SlackWare 3.0/ELF installed. When I first installed GPC, the compilation process would break when it came to the linking phase. ld, the GNU Linker, would say that it's unable to find file "crt0.o". I remembered seeing that file way back in my SlackWare 2.2 days, so kicked out the old SlackWare 2.2 CD-ROM and copied a "crt0.o" into my /usr/lib directory. Now, when I try to compile and link, I just get a whole bunch of unresolved reference errors. However, GPC itself appears to compile alright (except it produces a.out object files instead of ELF). It's just when it comes time to link that it goes haywire. Please help somebody! I need this compiler soon for a school project ... Arcadio From gpc-request@santra.hut.fi Mon Nov 13 19:36:23 1995 Received: from rt07.Theo-Phys.Uni-Essen.DE by rs1.Theo-Phys.Uni-Essen.DE (AIX 3.2/UCB 5.64/4.03) id AA25646; Mon, 13 Nov 1995 19:36:20 +0100 Received: by rt07.Theo-Phys.Uni-Essen.DE (AIX 2.1 2/4.04) id AA08788; Mon, 13 Nov 95 19:36:07 CET Received: from rs1.Theo-Phys.Uni-Essen.DE (rs1.theo-phys.uni-essen.de [132.252.254.226]) by santra.hut.fi (8.6.11/8.6.7) with SMTP id RAA27633 for ; Mon, 13 Nov 1995 17:04:48 +0200 Received: by rs1.Theo-Phys.Uni-Essen.DE (AIX 3.2/UCB 5.64/4.03) id AA24863; Mon, 13 Nov 1995 16:00:06 +0100 From: Peter Gerwinski Message-Id: <9511131500.AA24863@rs1.Theo-Phys.Uni-Essen.DE> Subject: Re: NEED LINUX/ELF GPC (only a TRY to help you ...) To: lotu@wam.umd.edu (Arcadio Alivio Sincero) Date: Mon, 13 Nov 1995 16:00:05 +0100 (MEZ) Cc: gpc@hut.fi In-Reply-To: from "Arcadio Alivio Sincero" at Nov 11, 95 06:23:29 pm X-Mailer: ELM [version 2.4 PL13] Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 8bit Content-Length: 2609 Status: RO According to Arcadio Alivio Sincero: > > > Can somebody PLEASE make an ELF version of GPC for Linux that works with > GCC v.2.7.0???? Or give me some pointers on how to do it myself???? If you really want to try to implement this yourself, I suggest the following strategy: - get GCC 2.6.3 and GCC 2.7.0 source, - look, which files of the GPC 2.6.3 source are replacing GCC 2.6.3 files, and make diffs between GCC 2.6.3 and GPC 2.6.3 for them, - do the GPC changes to the GCC 2.7.0 files, - compile GCC 2.7.0 (one stage is enough), - compile GPC, now version 2.7.0, and hope the best, - send your files to Juki, because he will be interested, - send your files to me, because I am interested, too. Since I expect trouble when doing this, let us first try it in another way ... > I downloaded the Linux version of GPC that Peter Gerwinski made, but it > doesn't work on my system. I'm thinking maybe because I have SlackWare > 3.0/ELF installed. > > When I first installed GPC, the compilation process would break when it > came to the linking phase. ld, the GNU Linker, would say that it's > unable to find file "crt0.o". I remembered seeing that file way back in > my SlackWare 2.2 days, so kicked out the old SlackWare 2.2 CD-ROM and > copied a "crt0.o" into my /usr/lib directory. Now, when I try to compile > and link, I just get a whole bunch of unresolved reference errors. Which gcclib do you use? Perhaps it is already the 2.7.0 version while crt0.o and gpc expect the 2.6.3 version. I suggest to install the com- plete gcc 2.6.3 in /usr/bin and /usr/lib. (It should work with SlackWare 3.0, as I hope.) Then also install gpc 2.6.3, and they should work to- gether. > However, GPC itself appears to compile alright (except it produces a.out > object files instead of ELF). It's just when it comes time to link that > it goes haywire. This gives hope to me, that the above idea could work. > Please help somebody! I need this compiler soon for a school project ... For case of emergency I will figure out how to run GPC under EMX in the DOS emulator of Linux. This is somehow stupid, but should work. Till later, Peter -------------------------------------------------------------------------------- Dipl. Phys. Peter Gerwinski Fachbereich Physik Universitaet-GH Essen Phone: +49-201-183-2763 D-45117 Essen Fax: +49-201-183-2120 Germany e-mail: pege@mail.theo-phys.uni-essen.de -------------------------------------------------------------------------------- From lotu@wam.umd.edu Tue Nov 14 00:06:01 1995 Received: from wor-srv.wam.umd.edu by rs1.Theo-Phys.Uni-Essen.DE (AIX 3.2/UCB 5.64/4.03) id AA24546; Tue, 14 Nov 1995 00:05:52 +0100 Received: from rac9.wam.umd.edu (lotu@rac9.wam.umd.edu [128.8.70.8]) by wor-srv.wam.umd.edu (8.6.10/8.6.10) with ESMTP id SAA10443; Mon, 13 Nov 1995 18:05:34 -0500 Received: (lotu@localhost) by rac9.wam.umd.edu (8.6.10/8.6.10) id SAA17365; Mon, 13 Nov 1995 18:05:28 -0500 Date: Mon, 13 Nov 1995 18:05:23 -0500 (EST) From: Arcadio Alivio Sincero To: Peter Gerwinski Cc: gpc@hut.fi Subject: Re: NEED LINUX/ELF GPC (only a TRY to help you ...) In-Reply-To: <9511131500.AA24863@rs1.Theo-Phys.Uni-Essen.DE> Message-Id: Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Status: RO On Mon, 13 Nov 1995, Peter Gerwinski wrote: > - get GCC 2.6.3 and GCC 2.7.0 source, > - look, which files of the GPC 2.6.3 source are replacing GCC 2.6.3 > files, and make diffs between GCC 2.6.3 and GPC 2.6.3 for them, > - do the GPC changes to the GCC 2.7.0 files, > - compile GCC 2.7.0 (one stage is enough), > - compile GPC, now version 2.7.0, and hope the best, > - send your files to Juki, because he will be interested, > - send your files to me, because I am interested, too. > > Since I expect trouble when doing this, let us first try it in another way ... Thanks for the play by play. This does look involved 'tho. I'll work on it next weekend. I'll just use Turbo Pascal on my DOS partition and hope when I translate it to conform to the ISO Standard, I don't make any mistakes (for my project thats due ... uhh .. man, tomorrow! Sheesh, I better get cracking ...). > Which gcclib do you use? Perhaps it is already the 2.7.0 version while > crt0.o and gpc expect the 2.6.3 version. I suggest to install the com- > plete gcc 2.6.3 in /usr/bin and /usr/lib. (It should work with SlackWare > 3.0, as I hope.) Then also install gpc 2.6.3, and they should work to- > gether. Well, I do have GCC v.2.7.0 installed, so I'm assuming the gcclib I have is 2.7.0. I have no idea because the SlackWare setup script just installed everything. Hmm ... if I install gcc 2.6.3, won't it over write 2.7.0? Can I install GCC 2.6.3 in it's own directory, say in /usr/local/bin/gcc263? That way I won't have to worry about gcc263 clashing with gcc270. > For case of emergency I will figure out how to run GPC under EMX in the > DOS emulator of Linux. This is somehow stupid, but should work. Hmm ... I was told that DOSEMU operates in a similar fashion to OS/2 VDMs. In that case, EMX won't work in DOSEMU because it uses the VPCI (or is it VCPI? I always get it confused) protected mode standard. 'Tho you can get the RSX package which will make EMX use the DPMI standard instead. I know that works in an OS/2 VDM ... Arcadio From pege Tue Nov 14 13:21:51 1995 Subject: GPC for EMX runs in Linux DOSemu :-) To: lotu@wam.umd.edu (Arcadio Alivio Sincero) Date: Tue, 14 Nov 1995 13:21:51 +0100 (MEZ) In-Reply-To: from "Arcadio Alivio Sincero" at Nov 13, 95 06:05:23 pm X-Mailer: ELM [version 2.4 PL13] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 8bit Content-Length: 2044 Status: RO Hello Arcadio, hello GPC-list! I have checked that the EMX (i.e. DOS and OS/2) version of GPC 2.6.3 runs fine in the DOSemu (version 0.60.3 with WinDoze hack---but probably also without it) of Linux. It is somehow stupid to emulate DOS under Linux in order to run there a program which has been ported from UNIX to DOS, but this may serve as a last resort when you have problems with Linux SlackWare 3 (ELF binary format) until GPC 2.7.x will exist. The steps to get a compiling GPC in Linux DOSemu are straightforward, nevertheless here is a short description what to do: - Install DOSemu, - get the following packets of EMX: emxrt, emxdev, gnudev, dpmigcc5, - get GPC binaries for EMX, - create a directory for EMX, install everything in that directory from Linux with unzip (this is more stable than installing it under DOSemu for example with pkunzip -d). Note that DOS is not case- sensitive, so you will have to move GPC files from EMX/BIN and EMX/LIB to emx/bin and emx/lib. - Start DOSemu and edit your AUTOEXEC.BAT: - set up a PATH to the emx/bin directory, - set up the LIBRARY_PATH environment variable to point to your emx/lib directory. - ExitEmu and restart it---now it should work. Run some tests. This sounds complicated, but if you are experienced with DOS and already have installed DOSemu and know where to get EMX (e.g. on the server ftp.uni-stuttgart.de in /pub/systems/os2/emx-0.9a or similar), the whole procedure can be done in half an hour or less. If not, it may be easier to do the port from GPC 2.6.3 to GPC 2.7.0 on your own. Good luck, Peter -------------------------------------------------------------------------------- Dipl. Phys. Peter Gerwinski Fachbereich Physik Universitaet-GH Essen Phone: +49-201-183-2763 D-45117 Essen Fax: +49-201-183-2120 Germany e-mail: pege@mail.theo-phys.uni-essen.de -------------------------------------------------------------------------------- From gpc-request@santra.hut.fi Wed Nov 22 12:49:18 1995 Received: from rt07.Theo-Phys.Uni-Essen.DE by rs1.Theo-Phys.Uni-Essen.DE (AIX 3.2/UCB 5.64/4.03) id AA22450; Wed, 22 Nov 1995 12:49:17 +0100 Received: by rt07.Theo-Phys.Uni-Essen.DE (AIX 2.1 2/4.04) id AA12089; Wed, 22 Nov 95 12:49:05 CET Received: from dxmint.cern.ch (dxmint.cern.ch [128.141.1.113]) by santra.hut.fi (8.7.1/8.7.1) with SMTP id MAA28504 for ; Wed, 22 Nov 1995 12:44:33 +0200 Received: from gnuisance.cern.ch.cern.ch by dxmint.cern.ch id AA15518; Wed, 22 Nov 1995 11:44:18 +0100 Received: by gnuisance.cern.ch.cern.ch (4.1/SMI-4.0) id AA12295; Wed, 22 Nov 95 11:44:13 +0100 Date: Wed, 22 Nov 95 11:44:13 +0100 Message-Id: <9511221044.AA12295@gnuisance.cern.ch.cern.ch> From: Philippe.Defert@cern.ch To: gpc@hut.fi Subject: gcc 2.7.1 Status: RO What about gpc for gcc 2.7.1 ? Thanks for your help. -- ************************************************************************ * Philippe Defert: Computing and Networks Division * * CERN, European Laboratory for Particle Physics * ************************************************************************ * Earth mail: CERN / CN / CO | E*mail: defert@cern.ch * * CH-1211 Geneve 23. Switzerland. | defert@cernvm.bitnet * * Voice: + 41 22 7673923 | * ************************************************************************ * __ * * Un monde nouveau, tu comprends ////\ * * Rien ne sera plus jamais comme avant \\\// * * C'est la fin de l'histoire, le rouge apres le noir | | * * J.J. Goldman | | * ************************************************************************ From gpc-request@santra.hut.fi Wed Nov 22 14:21:34 1995 Received: from rt07.Theo-Phys.Uni-Essen.DE by rs1.Theo-Phys.Uni-Essen.DE (AIX 3.2/UCB 5.64/4.03) id AA09161; Wed, 22 Nov 1995 14:21:33 +0100 Received: by rt07.Theo-Phys.Uni-Essen.DE (AIX 2.1 2/4.04) id AA12368; Wed, 22 Nov 95 14:21:07 CET Received: from hpug.kaist.ac.kr (hpug.kaist.ac.kr [143.248.1.162]) by santra.hut.fi (8.7.1/8.7.1) with SMTP id OAA01003 for ; Wed, 22 Nov 1995 14:31:27 +0200 Received: (from crisp@localhost) by hpug.kaist.ac.kr (8.6.12H1/8.6.12) id VAA03727; Wed, 22 Nov 1995 21:30:10 +0900 Date: Wed, 22 Nov 1995 21:30:10 +0900 Message-Id: <199511221230.VAA03727@hpug.kaist.ac.kr> From: Chung Jae-youn To: Philippe.Defert@cern.ch Cc: gpc@hut.fi In-Reply-To: <9511221044.AA12295@gnuisance.cern.ch.cern.ch> (Philippe.Defert@cern.ch) Subject: Re: gcc 2.7.1 Status: RO >>>>> "Philippe" == Philippe Defert writes: Philippe> What about gpc for gcc 2.7.1 ? Philippe> Thanks for your help. -- It would be a great pleasure if there is gpc for gcc 2.7.1 of course.. :) regards.. -- ---- Crisp From gpc-request@santra.hut.fi Wed Nov 22 15:24:50 1995 Received: from rt07.Theo-Phys.Uni-Essen.DE by rs1.Theo-Phys.Uni-Essen.DE (AIX 3.2/UCB 5.64/4.03) id AA23187; Wed, 22 Nov 1995 15:24:49 +0100 Received: by rt07.Theo-Phys.Uni-Essen.DE (AIX 2.1 2/4.04) id AA12513; Wed, 22 Nov 95 15:24:44 CET Received: from gabriel.keele.ac.uk (gabriel.keele.ac.uk [160.5.1.248]) by santra.hut.fi (8.7.1/8.7.1) with ESMTP id PAA02227 for ; Wed, 22 Nov 1995 15:23:35 +0200 Received: from potter.cc.keele.ac.uk by gabriel.keele.ac.uk with SMTP (PP); Wed, 22 Nov 1995 12:57:42 +0000 From: "A.A. Olowofoyeku" Message-Id: <21137.199511221257@potter.cc.keele.ac.uk> Subject: GPC for Win32 To: gpc@hut.fi Date: Wed, 22 Nov 1995 12:57:28 +0000 (GMT) X-Mailer: ELM [version 2.4 PL23] Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Status: RO Hello, I have been reading somewhere about GCC for Win32 - has anyone done a port of GPC for the Win32 platforms? Thanks. Warmest regards, The Chief --------- Dr. Abimbola A. Olowofoyeku (The African Chief) Keele University, England (and, The Great Elephant) Email: laa12@keele.ac.uk or, chief@mep.com From gpc-request@santra.hut.fi Wed Nov 22 20:20:34 1995 Received: from rt07.Theo-Phys.Uni-Essen.DE by rs1.Theo-Phys.Uni-Essen.DE (AIX 3.2/UCB 5.64/4.03) id AA23932; Wed, 22 Nov 1995 20:20:33 +0100 Received: by rt07.Theo-Phys.Uni-Essen.DE (AIX 2.1 2/4.04) id AA13347; Wed, 22 Nov 95 20:20:24 CET Received: from wor-srv.wam.umd.edu (wor-srv.wam.umd.edu [128.8.76.2]) by santra.hut.fi (8.7.1/8.7.1) with SMTP id UAA09132 for ; Wed, 22 Nov 1995 20:54:45 +0200 Received: from rac6.wam.umd.edu (lotu@rac6.wam.umd.edu [128.8.70.122]) by wor-srv.wam.umd.edu (8.6.10/8.6.10) with ESMTP id NAA24335; Wed, 22 Nov 1995 13:54:35 -0500 Received: (lotu@localhost) by rac6.wam.umd.edu (8.6.10/8.6.10) id NAA09018; Wed, 22 Nov 1995 13:54:32 -0500 Date: Wed, 22 Nov 1995 13:54:31 -0500 (EST) From: Arcadio Alivio Sincero To: Chung Jae-youn Cc: Philippe.Defert@cern.ch, gpc@hut.fi Subject: Re: gcc 2.7.1 In-Reply-To: <199511221230.VAA03727@hpug.kaist.ac.kr> Message-Id: Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Status: RO On Wed, 22 Nov 1995, Chung Jae-youn wrote: > Philippe> What about gpc for gcc 2.7.1 ? > Philippe> Thanks for your help. -- > It would be a great pleasure if there is gpc for gcc 2.7.1 of course.. Juki said he was gonna work on a GPC for GCC v.2.7.0. Dunno if he started yet or not. Arcadio From gpc-request@santra.hut.fi Wed Nov 22 21:04:59 1995 Received: from rt07.Theo-Phys.Uni-Essen.DE by rs1.Theo-Phys.Uni-Essen.DE (AIX 3.2/UCB 5.64/4.03) id AA19706; Wed, 22 Nov 1995 21:04:58 +0100 Received: by rt07.Theo-Phys.Uni-Essen.DE (AIX 2.1 2/4.04) id AA13377; Wed, 22 Nov 95 21:04:55 CET Received: from kampi.hut.fi (kampi.hut.fi [130.233.224.2]) by santra.hut.fi (8.7.1/8.7.1) with SMTP id VAA09745 for ; Wed, 22 Nov 1995 21:40:26 +0200 Received: (from jtv@localhost) by kampi.hut.fi (8.6.11/8.6.7) id VAA05955; Wed, 22 Nov 1995 21:38:48 +0200 Date: Wed, 22 Nov 1995 21:38:47 +0200 (EET) From: Jukka Virtanen Reply-To: Jukka.Virtanen@hut.fi To: Arcadio Alivio Sincero Cc: Chung Jae-youn , Philippe.Defert@cern.ch, gpc@hut.fi Subject: Re: gcc 2.7.1 In-Reply-To: Message-Id: Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Status: RO On Wed, 22 Nov 1995, Arcadio Alivio Sincero wrote: > On Wed, 22 Nov 1995, Chung Jae-youn wrote: > > > Philippe> What about gpc for gcc 2.7.1 ? > > Philippe> Thanks for your help. -- > > It would be a great pleasure if there is gpc for gcc 2.7.1 of course.. > > > Juki said he was gonna work on a GPC for GCC v.2.7.0. Dunno if > he started yet or not. Hi folks... I did start to merge the borland mods to my gpc tree, but found out that I have to talk with Peter about some problems I encountered (my test programs broke; might be a problem with my upgrade, though). So it is probable that I will do the 2.6.3-> 2.7.1 upgrade first and fix the problems later with Peters help. I did not upgrade to 2.7.0 because 2.7.1 was coming out, and now that it has, I heard that there are still more problems with than what we knew the 2.6.3 had (at least in the rs-6000), but I guess the upgrade would be useful anyway (ELF, etc) so I try to implement it soon. Juki jtv@hut.fi From gpc-request@santra.hut.fi Wed Nov 22 21:12:56 1995 Received: from rt07.Theo-Phys.Uni-Essen.DE by rs1.Theo-Phys.Uni-Essen.DE (AIX 3.2/UCB 5.64/4.03) id AA29702; Wed, 22 Nov 1995 21:12:55 +0100 Received: by rt07.Theo-Phys.Uni-Essen.DE (AIX 2.1 2/4.04) id AA13393; Wed, 22 Nov 95 21:12:54 CET Received: from dogwood1.utcc.utk.edu (DOGWOOD1.UTCC.UTK.EDU [198.78.204.31]) by santra.hut.fi (8.7.1/8.7.1) with SMTP id VAA09907; Wed, 22 Nov 1995 21:53:31 +0200 From: sad@utkux.utcc.utk.edu Received: by dogwood1.utcc.utk.edu (5.x/2.7c-UTK) id AA16449; Wed, 22 Nov 1995 14:52:54 -0500 Message-Id: <9511221952.AA16449@dogwood1.utcc.utk.edu> Subject: Re: gcc 2.7.1 To: Jukka.Virtanen@hut.fi Date: Wed, 22 Nov 1995 14:52:53 -0500 (EST) Cc: gpc@hut.fi In-Reply-To: from "Jukka Virtanen" at Nov 22, 95 09:38:47 pm X-Mailer: ELM [version 2.4 PL23] Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Status: RO Hi Juki, will the Borland stuff be implemented such that one can turn it *off* with a compiler switch? (Much like the -ansi option for gcc?) I'd love to have a way to write either very clean, portable Extended Pascal code or very borlandy code ... Thanks! Stefan > > > On Wed, 22 Nov 1995, Arcadio Alivio Sincero wrote: > > > On Wed, 22 Nov 1995, Chung Jae-youn wrote: > > > > > Philippe> What about gpc for gcc 2.7.1 ? > > > Philippe> Thanks for your help. -- > > > It would be a great pleasure if there is gpc for gcc 2.7.1 of course.. > > > > > > Juki said he was gonna work on a GPC for GCC v.2.7.0. Dunno if > > he started yet or not. > > Hi folks... I did start to merge the borland mods to my gpc > tree, but found out that I have to talk with Peter about some > problems I encountered (my test programs broke; might be a problem > with my upgrade, though). So it is probable that I will do the 2.6.3-> > 2.7.1 upgrade first and fix the problems later with Peters help. > > I did not upgrade to 2.7.0 because 2.7.1 was coming out, > and now that it has, I heard that there are still more > problems with than what we knew the 2.6.3 had (at least in > the rs-6000), but I guess the upgrade would be useful > anyway (ELF, etc) so I try to implement it soon. > > Juki > jtv@hut.fi > From gpc-request@santra.hut.fi Wed Nov 22 23:30:16 1995 Received: from rt07.Theo-Phys.Uni-Essen.DE by rs1.Theo-Phys.Uni-Essen.DE (AIX 3.2/UCB 5.64/4.03) id AA27870; Wed, 22 Nov 1995 23:30:15 +0100 Received: by rt07.Theo-Phys.Uni-Essen.DE (AIX 2.1 2/4.04) id AA13764; Wed, 22 Nov 95 23:30:28 CET Received: from kampi.hut.fi (kampi.hut.fi [130.233.224.2]) by santra.hut.fi (8.7.1/8.7.1) with SMTP id WAA10229 for ; Wed, 22 Nov 1995 22:19:17 +0200 Received: (from jtv@localhost) by kampi.hut.fi (8.6.11/8.6.7) id WAA06016; Wed, 22 Nov 1995 22:19:13 +0200 Date: Wed, 22 Nov 1995 22:19:12 +0200 (EET) From: Jukka Virtanen Reply-To: Jukka.Virtanen@hut.fi To: gpc@hut.fi Subject: borland extensions In-Reply-To: <9511221952.AA16449@dogwood1.utcc.utk.edu> Message-Id: Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Status: RO On Wed, 22 Nov 1995 sad@utkux.utcc.utk.edu wrote: > Hi Juki, > > will the Borland stuff be implemented such that one can turn it *off* > with a compiler switch? (Much like the -ansi option for gcc?) > I'd love to have a way to write either very clean, portable Extended Pascal > code or very borlandy code ... > > Thanks! Stefan I think it should (and partly must) be done so. Implementing another "hybdir" language is not what I would like to see. I find that the extended pascal is a good language in itself, but I agree that there are far too many borland programs around to ignore them. (Also, the object pascal language looks nice and would be fun to support. Any volunteers? :-) Juki jtv@hut.fi From graywolf@earthlight.co.nz Thu Nov 23 02:45:14 1995 Received: from rt07.Theo-Phys.Uni-Essen.DE by rs1.Theo-Phys.Uni-Essen.DE (AIX 3.2/UCB 5.64/4.03) id AA27772; Thu, 23 Nov 1995 02:45:13 +0100 Received: by rt07.Theo-Phys.Uni-Essen.DE (AIX 2.1 2/4.04) id AA14249; Thu, 23 Nov 95 02:45:16 CET Received: (from graywolf@localhost) by sol.earthlight.co.nz (8.6.9/8.6.9) id OAA23387 for pege@mail.theo-phys.uni-essen.de; Thu, 23 Nov 1995 14:42:16 +1300 From: Dave Smith Message-Id: <199511230142.OAA23387@sol.earthlight.co.nz> Subject: GPC To: pege@rt07.Theo-Phys.Uni-Essen.DE Date: Thu, 23 Nov 1995 14:42:15 +1300 (NZDT) X-Mailer: ELM [version 2.4 PL21] Content-Type: text Content-Length: 290 Status: RO Hi, I've downloaded the GPC binaries for Ms-dos, but I don't have an emx driver. Could you please point me in the direction to obtain these drivers for dos. I've searched the web, but can only find OS2 ones :(, so your help here would be much appreciated. Cheers Dave Smith From gpc-request@santra.hut.fi Thu Nov 23 09:38:20 1995 Received: from rt07.Theo-Phys.Uni-Essen.DE by rs1.Theo-Phys.Uni-Essen.DE (AIX 3.2/UCB 5.64/4.03) id AA27867; Thu, 23 Nov 1995 09:38:19 +0100 Received: by rt07.Theo-Phys.Uni-Essen.DE (AIX 2.1 2/4.04) id AA15498; Thu, 23 Nov 95 09:37:59 CET Received: from sun4nl.NL.net (sun4nl.NL.net [193.78.240.1]) by santra.hut.fi (8.7.1/8.7.1) with SMTP id JAA16194 for ; Thu, 23 Nov 1995 09:55:58 +0200 Received: from hsb.nest.nl by sun4nl.NL.net with SMTP id AB08497 (5.65b/CWI-3.3); Thu, 23 Nov 1995 08:55:41 +0100 Received: from nestnl.nest.nl (root@localhost) by hsb.nest.nl (8.6.11/8.6.11) with UUCP id IAA04441 for hut.fi!gpc; Thu, 23 Nov 1995 08:46:53 GMT Received: by nestnl.nest.nl (V1.17-beta/Amiga) id ; Thu, 23 Nov 95 08:42:45 +0100 Received: by beard.nest.nl (BeyondGating/0.88alpha) id BG2426; Thu, 23 Nov 1995 05:03:04 +0100 Date: 22 Nov 95 19:37:57 +0100 Message-Id: <60-60-0-0-b36da71@beard.nest.nl> From: berend@beard.nest.nl (Berend de Boer) To: gpc@hut.fi Subject: GPC for Win32 Status: RO A.A. Olowofoyeku wrote in a message to Berend de Boer: AAO> I have been reading somewhere about GCC for Win32 - has AAO> anyone done a port of GPC for the Win32 platforms? I probably try it soon. But I think I need 2.7.x, but let's see if gpc2.6.3 works on top of gcc 2.7 Groetjes, Berend (-: CIS: 100120,3121 email: berend@beard.nest.nl From gpc-request@santra.hut.fi Thu Nov 23 16:51:07 1995 Received: from rt07.Theo-Phys.Uni-Essen.DE by rs1.Theo-Phys.Uni-Essen.DE (AIX 3.2/UCB 5.64/4.03) id AA22476; Thu, 23 Nov 1995 16:51:06 +0100 Received: by rt07.Theo-Phys.Uni-Essen.DE (AIX 2.1 2/4.04) id AA16577; Thu, 23 Nov 95 16:51:02 CET Received: from whidbey (whidbey.whidbey.com [204.94.52.2]) by santra.hut.fi (8.7.2/8.7.2) with SMTP id RAA04139 for ; Thu, 23 Nov 1995 17:08:02 +0200 (EET) Received: by whidbey (5.0/SMI-SVR4) id AA15912; Thu, 23 Nov 1995 07:07:01 +0800 Message-Id: <9511231507.AA15912@whidbey> From: alland@whidbey.com (Allan Derickson) Date: Thu, 23 Nov 95 08:01:44 To: gpc@hut.fi Subject: GPC and OS/2 X-Mailer: MR/2 Internet Cruiser Edition v0.99b Status: RO Hello, I installed the version of GPC patched for emx running in OS/2. Has anyone made an OS/2 header file that works for API calls? Can someone show me a snippet of code showing how to incorporate an assembler procedure into a program? WriteStr doesn't work - "unresolved external". Writeln is sometimes called multiple times. TIA Allan D. Derickson -- Derickson Forestry Services -- Freeland, WA USA ----------------------------------------------------------- alland@whidbey.com ----------------------------------------------------------- From gpc-request@santra.hut.fi Thu Nov 23 19:25:19 1995 Received: from rt07.Theo-Phys.Uni-Essen.DE by rs1.Theo-Phys.Uni-Essen.DE (AIX 3.2/UCB 5.64/4.03) id AA31955; Thu, 23 Nov 1995 19:25:18 +0100 Received: by rt07.Theo-Phys.Uni-Essen.DE (AIX 2.1 2/4.04) id AA16985; Thu, 23 Nov 95 19:25:14 CET Received: from rs1.Theo-Phys.Uni-Essen.DE (rs1.theo-phys.uni-essen.de [132.252.254.226]) by santra.hut.fi (8.7.2/8.7.2) with SMTP id UAA06526 for ; Thu, 23 Nov 1995 20:13:42 +0200 (EET) Received: by rs1.Theo-Phys.Uni-Essen.DE (AIX 3.2/UCB 5.64/4.03) id AA25174; Thu, 23 Nov 1995 19:12:54 +0100 From: Peter Gerwinski Message-Id: <9511231812.AA25174@rs1.Theo-Phys.Uni-Essen.DE> Subject: Re: GPC To: graywolf@earthlight.co.nz (Dave Smith), gpc@hut.fi Date: Thu, 23 Nov 1995 19:12:53 +0100 (MEZ) In-Reply-To: <199511230142.OAA23387@sol.earthlight.co.nz> from "Dave Smith" at Nov 23, 95 02:42:15 pm X-Mailer: ELM [version 2.4 PL13] Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 8bit Status: RO Hello! EMX can be downloaded for example from ftp.uni-stuttgart.de in the directory /pub/systems/os2/emx-0.9a. Independently of the directory's name, it works well with DOS. :-) Peter According to Dave Smith: > > Hi, > > I've downloaded the GPC binaries for Ms-dos, but I don't have an emx > driver. Could you please point me in the direction to obtain these > drivers for dos. I've searched the web, but can only find OS2 ones :(, > so your help here would be much appreciated. > > Cheers > Dave Smith > > -------------------------------------------------------------------------------- Dipl. Phys. Peter Gerwinski Fachbereich Physik Universitaet-GH Essen Phone: +49-201-183-2763 D-45117 Essen Fax: +49-201-183-2120 Germany e-mail: pege@mail.theo-phys.uni-essen.de -------------------------------------------------------------------------------- From gpc-request@santra.hut.fi Thu Nov 23 19:28:09 1995 Received: from rt07.Theo-Phys.Uni-Essen.DE by rs1.Theo-Phys.Uni-Essen.DE (AIX 3.2/UCB 5.64/4.03) id AA02363; Thu, 23 Nov 1995 19:28:08 +0100 Received: by rt07.Theo-Phys.Uni-Essen.DE (AIX 2.1 2/4.04) id AA16997; Thu, 23 Nov 95 19:28:06 CET Received: from rs1.Theo-Phys.Uni-Essen.DE (rs1.theo-phys.uni-essen.de [132.252.254.226]) by santra.hut.fi (8.7.2/8.7.2) with SMTP id UAA06505 for ; Thu, 23 Nov 1995 20:10:29 +0200 (EET) Received: by rs1.Theo-Phys.Uni-Essen.DE (AIX 3.2/UCB 5.64/4.03) id AA19531; Thu, 23 Nov 1995 19:10:17 +0100 From: Peter Gerwinski Message-Id: <9511231810.AA19531@rs1.Theo-Phys.Uni-Essen.DE> Subject: Re: borland extensions To: gpc@hut.fi Date: Thu, 23 Nov 1995 19:10:16 +0100 (MEZ) In-Reply-To: from "Jukka Virtanen" at Nov 22, 95 10:19:12 pm X-Mailer: ELM [version 2.4 PL13] Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 8bit Status: RO Hi! An option to turn the Borland extensions off exists in some sense: Just use --pedantic, and you will get warnings for everything which is not ISO. Peter According to Jukka Virtanen: > > > On Wed, 22 Nov 1995 sad@utkux.utcc.utk.edu wrote: > > > Hi Juki, > > > > will the Borland stuff be implemented such that one can turn it *off* > > with a compiler switch? (Much like the -ansi option for gcc?) > > I'd love to have a way to write either very clean, portable Extended Pascal > > code or very borlandy code ... > > > > Thanks! Stefan > > I think it should (and partly must) be done so. > Implementing another "hybdir" language is not what I would > like to see. > > I find that the extended pascal is a good language in itself, > but I agree that there are far too many borland programs > around to ignore them. (Also, the object pascal language > looks nice and would be fun to support. Any volunteers? :-) > > Juki > jtv@hut.fi > -------------------------------------------------------------------------------- Dipl. Phys. Peter Gerwinski Fachbereich Physik Universitaet-GH Essen Phone: +49-201-183-2763 D-45117 Essen Fax: +49-201-183-2120 Germany e-mail: pege@mail.theo-phys.uni-essen.de -------------------------------------------------------------------------------- From gpc-request@santra.hut.fi Thu Nov 23 19:32:18 1995 Received: from rt07.Theo-Phys.Uni-Essen.DE by rs1.Theo-Phys.Uni-Essen.DE (AIX 3.2/UCB 5.64/4.03) id AA19031; Thu, 23 Nov 1995 19:32:18 +0100 Received: by rt07.Theo-Phys.Uni-Essen.DE (AIX 2.1 2/4.04) id AA17000; Thu, 23 Nov 95 19:32:14 CET Received: from rs1.Theo-Phys.Uni-Essen.DE (rs1.theo-phys.uni-essen.de [132.252.254.226]) by santra.hut.fi (8.7.2/8.7.2) with SMTP id UAA06607 for ; Thu, 23 Nov 1995 20:21:56 +0200 (EET) Received: by rs1.Theo-Phys.Uni-Essen.DE (AIX 3.2/UCB 5.64/4.03) id AA24198; Thu, 23 Nov 1995 19:21:48 +0100 From: Peter Gerwinski Message-Id: <9511231821.AA24198@rs1.Theo-Phys.Uni-Essen.DE> Subject: Re: borland extensions ("PS") To: gpc@hut.fi Date: Thu, 23 Nov 1995 19:21:47 +0100 (MEZ) X-Mailer: ELM [version 2.4 PL13] Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 8bit Status: RO According to pege: >From pege Thu Nov 23 19:21:21 1995 Subject: Re: borland extensions ("PS") To: Jukka.Virtanen@hut.fi Date: Thu, 23 Nov 1995 19:21:21 +0100 (MEZ) In-Reply-To: from "Jukka Virtanen" at Nov 22, 95 10:19:12 pm X-Mailer: ELM [version 2.4 PL13] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 8bit Content-Length: 1297 Hello again! > I find that the extended pascal is a good language in itself, > but I agree that there are far too many borland programs > around to ignore them. I think there is yet another reason: When you want to do lo-level programming in Pascal, you *need* the Borland extensions. (Or, you must write large parts in assembler, which is also non-ISO.) And there are more examples where things can easily be done with Borland Pascal but are very uncomfortable or even impossible with Extended Pascal. > (Also, the object pascal language > looks nice and would be fun to support. Any volunteers? :-) The Borland "nonstandard" supports objects, so the object pascal language already *is* implemented in some sense -- I expect that only a few names must be changed. If a volunteer wants to imple- ment Object Pascal: It won't be too much work! Yours, Peter -------------------------------------------------------------------------------- Dipl. Phys. Peter Gerwinski Fachbereich Physik Universitaet-GH Essen Phone: +49-201-183-2763 D-45117 Essen Fax: +49-201-183-2120 Germany e-mail: pege@mail.theo-phys.uni-essen.de -------------------------------------------------------------------------------- -------------------------------------------------------------------------------- Dipl. Phys. Peter Gerwinski Fachbereich Physik Universitaet-GH Essen Phone: +49-201-183-2763 D-45117 Essen Fax: +49-201-183-2120 Germany e-mail: pege@mail.theo-phys.uni-essen.de -------------------------------------------------------------------------------- From gpc-request@santra.hut.fi Fri Nov 24 17:38:01 1995 Received: from rt07.Theo-Phys.Uni-Essen.DE by rs1.Theo-Phys.Uni-Essen.DE (AIX 3.2/UCB 5.64/4.03) id AA27499; Fri, 24 Nov 1995 17:38:00 +0100 Received: by rt07.Theo-Phys.Uni-Essen.DE (AIX 2.1 2/4.04) id AA20574; Fri, 24 Nov 95 17:37:51 CET Received: from rs1.Theo-Phys.Uni-Essen.DE (rs1.theo-phys.uni-essen.de [132.252.254.226]) by santra.hut.fi (8.7.2/8.7.2) with SMTP id SAA21406 for ; Fri, 24 Nov 1995 18:25:12 +0200 (EET) Received: by rs1.Theo-Phys.Uni-Essen.DE (AIX 3.2/UCB 5.64/4.03) id AA17366; Fri, 24 Nov 1995 17:24:49 +0100 From: Peter Gerwinski Message-Id: <9511241624.AA17366@rs1.Theo-Phys.Uni-Essen.DE> Subject: f2p, c2p To: gpc@hut.fi Date: Fri, 24 Nov 1995 17:24:49 +0100 (MEZ) X-Mailer: ELM [version 2.4 PL13] Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 8bit Status: RO Hello, folks! Only one small question/suggestion: Does there exist a f2p or c2p translator program which translates Fortran resp. C source to Pascal source? If not, I suggest that somebody writes it because of the following reasons: - Practical reason: It would be nice to import libraries written in C, C++ or Fortran automatically. For most purposes, it would be sufficient to have a program which ports C header files to Pascal Unit (Module) interfaces. - Psychological reason: The existence of a c2p would demonstrate that Pascal is at least as powerful as C. The existence of a p2c (which does in fact *not* support everything which is possible in Borland Pascal -- I am thinking of the Object extensions) is ac- cepted by many people as a "proof" that C would be superior to Pascal, so we should "proove" the opposite direction. :-) I am almost sure that at least the c2p program does not exist because Standard Pascal has indeed less abilities than C. However, you can do everything which is possible in C with GNU Pascal (including e.g. pointer arithmetics -- just do a type cast to Integer), so the main difficulty will be to *understand* the C source, not to translate it. C++ could be more complicated as long as GNU Pascal does not (yet) have multiple inheritance. For Fortran, I don't see any problems, since there are complex numbers in GNU (Extended) Pascal, but one should translate goto statements to structured statements wherever possible.. One idea how to write it: Just use the front-ends of the GNU compi- lers and replace the assembler back-end by a Pascal back-end. Once you have understood how the front-end passes information to the back-end, the job will be straightforward. (One could even easily generalize it to a general x2y translator ...! :-) I have not the time to do it myself :-( so I ask *you* if you are willing to do this important contribution. Yours, Peter -------------------------------------------------------------------------------- Dipl. Phys. Peter Gerwinski Fachbereich Physik Universitaet-GH Essen Phone: +49-201-183-2763 D-45117 Essen Fax: +49-201-183-2120 Germany e-mail: pege@mail.theo-phys.uni-essen.de -------------------------------------------------------------------------------- From sad@utkux.utcc.utk.edu Fri Nov 24 21:57:18 1995 Received: from UTKUX4.UTCC.UTK.EDU by rs1.Theo-Phys.Uni-Essen.DE (AIX 3.2/UCB 5.64/4.03) id AA25588; Fri, 24 Nov 1995 21:57:02 +0100 Received: by utkux4.utcc.utk.edu (5.x/2.7c-UTK) id AA27429; Fri, 24 Nov 1995 15:52:06 -0500 From: sad@utkux.utcc.utk.edu Message-Id: <9511242052.AA27429@utkux4.utcc.utk.edu> Subject: Re: f2p, c2p To: pege@rs1.Theo-Phys.Uni-Essen.DE (Peter Gerwinski) Date: Fri, 24 Nov 1995 15:52:05 -0500 (EST) In-Reply-To: <9511241624.AA17366@rs1.Theo-Phys.Uni-Essen.DE> from "Peter Gerwinski" at Nov 24, 95 05:24:49 pm X-Mailer: ELM [version 2.4 PL23] Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Status: RO > > Hello, folks! > > Only one small question/suggestion: Does there exist a f2p or c2p > translator program which translates Fortran resp. C source to Pascal > source? If not, I suggest that somebody writes it because of the > following reasons: Hi there! I know there exist attempts to sovle that problem out there on the net but they all are bound to be rather incomplete due to the very different nature of the languages under consideration. In fact, this kind of thing is being discussed quite often in all the involved language news groups ( comp.lang.fortran, comp.lang.c). Most of the tools I have heared of are reported to ease the transition to pascal while leaving still much manual work behind. If you think of how much of the time that you actually spend porting a code goes into which parts you will see that already things like changing the comment and declaration parts and aligning them nicely (so that further maintainance of the pascal code by a human is easily possible) are a big step. In fact, the fortran to c translator does not produce c code meant for the human reader or for further maintainance of the code in C at all. It produces code which has only the purpose to compile on a C compiler, the code is, however, next to unreadable for a C programmer (and calls many library routines to, e.g., emulate the Fortran output statements). Ihave yet to run into a code that did not compile and run. The pascal to c translator, on the other hand, produces rather reasonably readable code, which doesn't always compile though. So, there are two different approaches. For the transaltino of header files seems to exist a solution since they are highly specific; as part of the Prospero Extended Pascal for OS/2 you get (supposedly, I don't have it yet) a bunch of translated header files and a translation utility that leaves only a bit manual work to be done. > > - Practical reason: It would be nice to import libraries written > in C, C++ or Fortran automatically. For most purposes, it would > be sufficient to have a program which ports C header files to > Pascal Unit (Module) interfaces. > This one is a bit deceiving, since it in turn would lead to the conclusion that assembler or machine code is superior to C, since the translation from anything ends up in some such form. Of course, the way back is neither uniquely determined nor easily accomplished atomatically. The difference is more the high- and low-level access to a language. You always could explain Shakespeares M(a)cBeth to a five year old with rather limited vocabulary: ``Well, that guy on stage was to eager to get into power and in the end he got killed because he's the bad guy'' but try to turn that sentence into Shakespeare's language again ... See what I am saying? :-) > - Psychological reason: The existence of a c2p would demonstrate > that Pascal is at least as powerful as C. The existence of a p2c > (which does in fact *not* support everything which is possible in > Borland Pascal -- I am thinking of the Object extensions) is ac- > cepted by many people as a "proof" that C would be superior to > Pascal, so we should "proove" the opposite direction. :-) > > I am almost sure that at least the c2p program does not exist because > Standard Pascal has indeed less abilities than C. However, you can > do everything which is possible in C with GNU Pascal (including e.g. > pointer arithmetics -- just do a type cast to Integer), so the main > difficulty will be to *understand* the C source, not to translate it. > C++ could be more complicated as long as GNU Pascal does not (yet) have > multiple inheritance. For Fortran, I don't see any problems, since > there are complex numbers in GNU (Extended) Pascal, but one should > translate goto statements to structured statements wherever possible.. I really am not sure if it is so easy. Let's first look at C: All this malloc stuff, and access to the memory address that contains the pointer to a certain array element and such -- is that really easily accomplished in E.Pascal? Or, my pet grief: Command line access ... what do you do with int main(argc, *argv) { ...} or such? I think it won't be possible to achieve a completely automatic translation when you come from C code, even though it may be possible to code a solution to a give problem in both C and Pascal. (Very often you find also lots of crap coded in C just to say something the language Pascal would allow in one line, say, assignment of arrays: In c you'd have to assign array alement by array element since otherwise the pointers would be the same, while in Pascal you can do an A:=B; if they are just of compatible (or the same?) type. So, even mechanical translation may not produce very Pascalish code, as one could see from the first edition of the numerical recipes which had a very Fortanish Pascal version of each routine in the appendix ... Now Fortran: You would have to provide at leat a huge library (similar to the one that comes with f2c) for a load of intrinsic Fortran functions, input/output routines and the like, and you would have to find a way to deal with Fortran goodies like computed goto's, multiple entry points for subroutines or passing of arrays by passing the first element and the length of the array (which frequently causes trouble when the array length is different from the one passed). So, being an optimist with life experience (as some define a pessimist) I just want to be a bit cautious about too high expectatins of automated translation. I do agree, however, that it should be possible to write something that could do a significant fraction of the porting work. > > One idea how to write it: Just use the front-ends of the GNU compi- > lers and replace the assembler back-end by a Pascal back-end. Once > you have understood how the front-end passes information to the > back-end, the job will be straightforward. (One could even easily > generalize it to a general x2y translator ...! :-) Hm. So Shakespeare with the vocabulary of a five year old? Again, even if you would be able to get something in E.P. out of such a back end it would be very different from what an experienced Pascal Programmer would have written and so it would probably end up being manually converted to a more efficient, more readable, more Pascally code afterwards anyway ... I think that a good, portable compiler and a good, portable conversion aid utility are as much as we could have hoped for. BTW, one way to push E.P. would be to convince the authors of the Numerical Recipes to treat us to a new issue of their book for extended Pascal. They gave up on Pascal a while back because there was no market, as they claimed, and there are only Fortran and C versions left. An E.P. version would be really a big step, I believe. Later, gotta eat turkey now! Stefan > > I have not the time to do it myself :-( so I ask *you* if you are > willing to do this important contribution. > > Yours, > > Peter > > -------------------------------------------------------------------------------- > Dipl. Phys. Peter Gerwinski > Fachbereich Physik > Universitaet-GH Essen Phone: +49-201-183-2763 > D-45117 Essen Fax: +49-201-183-2120 > Germany e-mail: pege@mail.theo-phys.uni-essen.de > -------------------------------------------------------------------------------- > From gpc-request@santra.hut.fi Mon Nov 27 17:15:48 1995 Received: from rt07.Theo-Phys.Uni-Essen.DE by rs1.Theo-Phys.Uni-Essen.DE (AIX 3.2/UCB 5.64/4.03) id AA35389; Mon, 27 Nov 1995 17:15:47 +0100 Received: by rt07.Theo-Phys.Uni-Essen.DE (AIX 2.1 2/4.04) id AA01660; Mon, 27 Nov 95 17:15:32 CET Received: from rs1.Theo-Phys.Uni-Essen.DE (rs1.theo-phys.uni-essen.de [132.252.254.226]) by santra.hut.fi (8.7.2/8.7.2) with SMTP id RAA27021 for ; Mon, 27 Nov 1995 17:55:12 +0200 (EET) Received: by rs1.Theo-Phys.Uni-Essen.DE (AIX 3.2/UCB 5.64/4.03) id AA26209; Mon, 27 Nov 1995 16:54:56 +0100 From: Peter Gerwinski Message-Id: <9511271554.AA26209@rs1.Theo-Phys.Uni-Essen.DE> Subject: GCC 2.7.x and GPC 2.6.3 To: gpc@hut.fi Date: Mon, 27 Nov 1995 16:54:55 +0100 (MEZ) X-Mailer: ELM [version 2.4 PL13] Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 8bit Status: RO Hello, everybody! Somehow good news: GCC 2.7.x and GPC 2.6.3 *can* peacefully coexist on the same system. You just have to make the linuxaout-libraries visible for GPC (for example with the SlackWare 3.0 directory tree, use "gpc -L /usr/i486-linuxaout/lib myfile.pas") and to replace temporarily the new library libgcc.a by the old one. Only this one -- not the elf versions, and not libc.a, etc.. The linker will complain about some entry point, but the executable will work. I suggest to use an alias or a shell script for all that. Yours, Peter -------------------------------------------------------------------------------- Dipl. Phys. Peter Gerwinski Fachbereich Physik Universitaet-GH Essen Phone: +49-201-183-2763 D-45117 Essen Fax: +49-201-183-2120 Germany e-mail: pege@mail.theo-phys.uni-essen.de -------------------------------------------------------------------------------- From gpc-request@santra.hut.fi Mon Nov 27 17:51:05 1995 Received: from rt07.Theo-Phys.Uni-Essen.DE by rs1.Theo-Phys.Uni-Essen.DE (AIX 3.2/UCB 5.64/4.03) id AA19803; Mon, 27 Nov 1995 17:51:04 +0100 Received: by rt07.Theo-Phys.Uni-Essen.DE (AIX 2.1 2/4.04) id AA01790; Mon, 27 Nov 95 17:51:00 CET Received: from rs1.Theo-Phys.Uni-Essen.DE (rs1.theo-phys.uni-essen.de [132.252.254.226]) by santra.hut.fi (8.7.2/8.7.2) with SMTP id SAA27692 for ; Mon, 27 Nov 1995 18:23:45 +0200 (EET) Received: by rs1.Theo-Phys.Uni-Essen.DE (AIX 3.2/UCB 5.64/4.03) id AA35515; Mon, 27 Nov 1995 17:23:41 +0100 From: Peter Gerwinski Message-Id: <9511271623.AA35515@rs1.Theo-Phys.Uni-Essen.DE> Subject: Files To: gpc@hut.fi Date: Mon, 27 Nov 1995 17:23:41 +0100 (MEZ) X-Mailer: ELM [version 2.4 PL13] Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 8bit Status: RO Hello! Now I also have problems with the binding of external files to Pascal file variables ... I tried to use Extended Pascal "binding" to assign a file variable to an external -- existing -- file. I just copied the "Assign" pro- cedure by Berend as published in borland2ep.doc. It does not always work: I often get a runtime error saying that the file did not exist. (But it exists -- I can edit it, etc..) The only solution I could figure out: Mention each file in the program's header, forget about an "Assign" procedure, just reset it. Then you are asked for the external file name. Type it in -- voila. I defined a semi-dummy "Assign" procedure which prompts "please type in )-: myfile135.dat". It could not be done with "myexecutable To: pege@rs1.Theo-Phys.Uni-Essen.DE Message-Id: <0099A079.81AB3B20.9@ST.MFFUK> Subject: Re: Files X-Charset: ASCII X-Char-Esc: 29 Status: RO Hello, > Now I also have problems with the binding of external files to > Pascal file variables ... > > I tried to use Extended Pascal "binding" to assign a file variable > Type it in -- voila. I defined a semi-dummy > "Assign" procedure which prompts "please type in )-: myfile135.dat". > It could not be done with "myexecutable must type in each filename by hand. > > What shall I do ??? I used -Grts -a file_variable:filename switch to my program, which used file file_variable (it was mentioned in program header). This worked like static assign. Try to look somewhere in docs (use grep), I found it there. I am not sure, whether some special switch should be given to the compiler. If you find any better solution, I am interested in it. Sincerely, Pavel Petrovic http://pascal.fmph.uniba.sk/~3petrovice From gpc-request@santra.hut.fi Mon Nov 27 22:04:21 1995 Received: from rt07.Theo-Phys.Uni-Essen.DE by rs1.Theo-Phys.Uni-Essen.DE (AIX 3.2/UCB 5.64/4.03) id AA21898; Mon, 27 Nov 1995 22:04:20 +0100 Received: by rt07.Theo-Phys.Uni-Essen.DE (AIX 2.1 2/4.04) id AA02349; Mon, 27 Nov 95 22:04:11 CET Received: from quackerjack.cc.vt.edu (quackerjack.cc.vt.edu [198.82.160.250]) by santra.hut.fi (8.7.2/8.7.2) with ESMTP id WAA31116 for ; Mon, 27 Nov 1995 22:51:30 +0200 (EET) Received: from holodeck.cc.vt.edu (holodeck.cc.vt.edu [128.173.16.28]) by quackerjack.cc.vt.edu (8.7.1/8.7.1) with SMTP id PAA07557 for ; Mon, 27 Nov 1995 15:51:18 -0500 (EST) Received: from gserver.grads.vt.edu by holodeck.cc.vt.edu with SMTP (8.6.12/16.2) id PAA11076; Mon, 27 Nov 1995 15:51:12 -0500 Received: from gserver.grads.vt.edu by gserver.grads.vt.edu (5.x/SMI-SVR4) id AA02207; Mon, 27 Nov 1995 15:46:41 -0500 Sender: tdunbar@gserver.grads.vt.edu Message-Id: <30BA23B1.174D@gserver.grads.vt.edu> Date: Mon, 27 Nov 1995 15:46:41 -0500 From: Thomas Dunbar Organization: Virginia Tech X-Mailer: Mozilla 2.0b3 (X11; I; SunOS 5.4 sun4m) Mime-Version: 1.0 To: gpc@hut.fi Subject: bug with strings in EMX port of gpc Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Status: RO the EMX port of gpc that i've been using for my students seems to have problems with strings .. it's like the bcmp routine didnt get included in libs works fine on linux and solaris i dont even remember where i downloaded the emx version. where can i find it, or better, an update? -- Thomas Dunbar 540 231-3938 (fax 3714) http://gserver.grads.vt.edu/ From gpc-request@santra.hut.fi Mon Nov 27 23:21:37 1995 Received: from rt07.Theo-Phys.Uni-Essen.DE by rs1.Theo-Phys.Uni-Essen.DE (AIX 3.2/UCB 5.64/4.03) id AA19649; Mon, 27 Nov 1995 23:21:37 +0100 Received: by rt07.Theo-Phys.Uni-Essen.DE (AIX 2.1 2/4.04) id AA02602; Mon, 27 Nov 95 23:21:31 CET Received: from quackerjack.cc.vt.edu (quackerjack.cc.vt.edu [198.82.160.250]) by santra.hut.fi (8.7.2/8.7.2) with ESMTP id AAA31817 for ; Tue, 28 Nov 1995 00:02:32 +0200 (EET) Received: from holodeck.cc.vt.edu (holodeck.cc.vt.edu [128.173.16.28]) by quackerjack.cc.vt.edu (8.7.1/8.7.1) with SMTP id RAA12643 for ; Mon, 27 Nov 1995 17:02:30 -0500 (EST) Received: from gserver.grads.vt.edu by holodeck.cc.vt.edu with SMTP (8.6.12/16.2) id RAA22237; Mon, 27 Nov 1995 17:02:29 -0500 Received: by gserver.grads.vt.edu (5.x/SMI-SVR4) id AA05578; Mon, 27 Nov 1995 16:58:06 -0500 From: tdunbar@gserver.grads.vt.edu (Thomas Dunbar) Message-Id: <9511272158.AA05578@gserver.grads.vt.edu> Subject: emx libs To: gpc@hut.fi Date: Mon, 27 Nov 1995 16:58:05 -0500 (EST) X-Mailer: ELM [version 2.4 PL23] Content-Type: text Status: RO when i compile: program t(input,output); type s1=string(10); var s:s1; begin readln(s); writeln(substr(s,2,3)); end. with gpc on solaris or linux, it compiles fine. when i compile with emxgpc, i get: ... ld -o t.exe /emx/lib/crt0.o -L/emx/lib/st -L/emx/lib C:\DOS\cce00002 -lgpc -lgcc -lc -lc_app -lc -lgcc -lemx -los2 -lemx2 rts-string.c:144 (/emx/lib/gpc.a(rts-string.o)): Undefined symbol ___gcc_bcmp referenced from text segment rts-string.c:188 (/emx/lib/gpc.a(rts-string.o)): Undefined symbol ___gcc_bcmp referenced from text segment rts-string.c:190 (/emx/lib/gpc.a(rts-string.o)): Undefined symbol ___gcc_bcmp referenced from text segment am i using the wrong emx package? (other things compile fine..just problems working with strings) where can i get libs compatible with the latest emxgpc? -- Thomas Dunbar 540 231-3938 (fax 3714) http://gserver.grads.vt.edu/ From gpc-request@santra.hut.fi Tue Nov 28 12:44:52 1995 Received: from rt07.Theo-Phys.Uni-Essen.DE by rs1.Theo-Phys.Uni-Essen.DE (AIX 3.2/UCB 5.64/4.03) id AA27327; Tue, 28 Nov 1995 12:44:51 +0100 Received: by rt07.Theo-Phys.Uni-Essen.DE (AIX 2.1 2/4.04) id AA04731; Tue, 28 Nov 95 12:44:44 CET Received: from snake.hut.fi (snake.hut.fi [193.167.6.99]) by santra.hut.fi (8.7.2/8.7.2) with ESMTP id NAA07265 for ; Tue, 28 Nov 1995 13:29:15 +0200 (EET) Received: from sun4nl.NL.net (sun4nl.NL.net [193.78.240.1]) by snake.hut.fi (8.7.1/8.7.1) with SMTP id GAA13064 for ; Tue, 28 Nov 1995 06:50:14 +0200 (EET) Received: from hsb.nest.nl by sun4nl.NL.net with SMTP id AA20492 (5.65b/CWI-3.3); Tue, 28 Nov 1995 05:50:11 +0100 Received: from nestnl.nest.nl (root@localhost) by hsb.nest.nl (8.6.11/8.6.11) with UUCP id FAA02679 for hut.fi!gpc; Tue, 28 Nov 1995 05:47:47 GMT Received: by nestnl.nest.nl (V1.17-beta/Amiga) id ; Tue, 28 Nov 95 05:23:07 +0100 Received: by beard.nest.nl (BeyondGating/0.88alpha) id BG2430; Tue, 28 Nov 1995 05:03:11 +0100 Date: 27 Nov 95 19:03:24 +0100 Message-Id: <2-281-527-23-b9fd551@beard.nest.nl> From: berend@beard.nest.nl (Berend de Boer) To: gpc@hut.fi Subject: Files Status: RO * Moved (from: gpc) by Berend de Boer using timEd 1.10.b3+. Peter Gerwinski wrote in a message to Berend de Boer: PG> I tried to use Extended Pascal "binding" to assign a file PG> variable to an external -- existing -- file. I just copied PG> the "Assign" pro- cedure by Berend as published in PG> borland2ep.doc. It does not always work: I often get a PG> runtime error saying that the file did not exist. If you can repeat it, compile with another Extended Pascal compiler, for example Prospero's one. If that fails too, there is really something wrong with the code. But I suspect gpc. You're using which OS? Groetjes, Berend (-: fido: 2:281/527.23 email: berend@beard.nest.nl From gpc-request@santra.hut.fi Tue Nov 28 13:59:20 1995 Received: from rt07.Theo-Phys.Uni-Essen.DE by rs1.Theo-Phys.Uni-Essen.DE (AIX 3.2/UCB 5.64/4.03) id AA33887; Tue, 28 Nov 1995 13:59:19 +0100 Received: by rt07.Theo-Phys.Uni-Essen.DE (AIX 2.1 2/4.04) id AA04898; Tue, 28 Nov 95 13:59:13 CET Received: from gabriel.keele.ac.uk (gabriel.keele.ac.uk [160.5.1.248]) by santra.hut.fi (8.7.2/8.7.2) with ESMTP id OAA09275 for ; Tue, 28 Nov 1995 14:47:51 +0200 (EET) Received: from potter.cc.keele.ac.uk by gabriel.keele.ac.uk with SMTP (PP); Mon, 27 Nov 1995 11:54:20 +0000 From: "A.A. Olowofoyeku" Message-Id: <27981.199511271154@potter.cc.keele.ac.uk> Subject: Binaries for OS/2 and DOS To: gpc@hut.fi Date: Mon, 27 Nov 1995 11:54:08 +0000 (GMT) X-Mailer: ELM [version 2.4 PL23] Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Status: RO Hi Can you please point me to the location of the OS/2 and DOS binaries (with the Borland compatibility stuff)? I presume that there is a ready-to-run package somewhere (lost most of my saved mail recently, and so I can't trace earlier posts). Do I have to download GCC as well? Thanks. Warmest regards, The Chief --------- Dr. Abimbola A. Olowofoyeku (The African Chief) Keele University, England (and, The Great Elephant) Email: laa12@keele.ac.uk or, chief@mep.com From gpc-request@santra.hut.fi Tue Nov 28 14:57:05 1995 Received: from rt07.Theo-Phys.Uni-Essen.DE by rs1.Theo-Phys.Uni-Essen.DE (AIX 3.2/UCB 5.64/4.03) id AA34046; Tue, 28 Nov 1995 14:57:04 +0100 Received: by rt07.Theo-Phys.Uni-Essen.DE (AIX 2.1 2/4.04) id AA05051; Tue, 28 Nov 95 14:56:50 CET Received: from rs1.Theo-Phys.Uni-Essen.DE (rs1.theo-phys.uni-essen.de [132.252.254.226]) by santra.hut.fi (8.7.2/8.7.2) with SMTP id PAA10742 for ; Tue, 28 Nov 1995 15:40:27 +0200 (EET) Received: by rs1.Theo-Phys.Uni-Essen.DE (AIX 3.2/UCB 5.64/4.03) id AA14402; Tue, 28 Nov 1995 14:38:07 +0100 From: Peter Gerwinski Message-Id: <9511281338.AA14402@rs1.Theo-Phys.Uni-Essen.DE> Subject: Files: the solution To: berend@beard.nest.nl (Berend de Boer) Date: Tue, 28 Nov 1995 14:38:06 +0100 (MEZ) Cc: gpc@hut.fi In-Reply-To: <2-281-527-23-b9fd551@beard.nest.nl> from "Berend de Boer" at Nov 27, 95 07:03:24 pm X-Mailer: ELM [version 2.4 PL13] Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 8bit Status: RO Hello! I have solved the file problem. It is in fact a bug in GPC 2.6.3: The bind procedure does not add a null character to the filename string when passing it to C. But no problem: we can correct it manually. (Since often there is a null character in RAM following the string by random, the error was not always reproducible.) The following modified Assign procedure does work around the bug and has been proven to work with GPC: Procedure Assign ( Var T: Text; protected Name: String ); Var B: BindingType; begin (* Assign *) unbind ( T ); B:= binding ( T ); B.Name:= Name + chr ( 0 ); (* add the null character manually *) bind ( T, B ); B:= binding ( T ); end (* Assign *); According to Berend de Boer: > > Peter Gerwinski wrote in a message to Berend de Boer: > > PG> I tried to use Extended Pascal "binding" to assign a file > PG> variable to an external -- existing -- file. I just copied > PG> the "Assign" pro- cedure by Berend as published in > PG> borland2ep.doc. It does not always work: I often get a > PG> runtime error saying that the file did not exist. > > If you can repeat it, compile with another Extended Pascal compiler, for example Prospero's one. If that fails too, there is really something wrong with the code. But I suspect gpc. You're using which OS? I am using Linux, OS/2 and (Novell) DOS. I have never seen a compiler for Extended Pascal ... is Prospero's one FreeWare? Where can I find it? Greetings, Peter -------------------------------------------------------------------------------- Dipl. Phys. Peter Gerwinski Fachbereich Physik Universitaet-GH Essen Phone: +49-201-183-2763 D-45117 Essen Fax: +49-201-183-2120 Germany e-mail: pege@mail.theo-phys.uni-essen.de ------------------------------------------------