From owner-freebsd-chat Mon Oct 5 19:25:58 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id TAA05204 for freebsd-chat-outgoing; Mon, 5 Oct 1998 19:25:58 -0700 (PDT) (envelope-from owner-freebsd-chat@FreeBSD.ORG) Received: from allegro.lemis.com (allegro.lemis.com [192.109.197.134]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id TAA05199 for ; Mon, 5 Oct 1998 19:25:54 -0700 (PDT) (envelope-from grog@freebie.lemis.com) Received: from freebie.lemis.com (freebie.lemis.com [192.109.197.137]) by allegro.lemis.com (8.9.1/8.9.0) with ESMTP id LAA20757; Tue, 6 Oct 1998 11:55:31 +0930 (CST) Received: (from grog@localhost) by freebie.lemis.com (8.9.1/8.9.0) id LAA00194; Tue, 6 Oct 1998 11:55:30 +0930 (CST) Message-ID: <19981006115529.K27781@freebie.lemis.com> Date: Tue, 6 Oct 1998 11:55:29 +0930 From: Greg Lehey To: Brett Glass , Eivind Eklund , chat@FreeBSD.ORG Subject: Re: Pascal for Linux won't work on FreeBSD.... Why? References: <4.1.19981005170436.04226870@mail.lariat.org> <4.1.19981005170436.04226870@mail.lariat.org> <19981006014611.35325@follo.net> <4.1.19981005180601.041b4e00@mail.lariat.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.91.1i In-Reply-To: <4.1.19981005180601.041b4e00@mail.lariat.org>; from Brett Glass on Mon, Oct 05, 1998 at 06:13:51PM -0600 WWW-Home-Page: http://www.lemis.com/~grog Organization: LEMIS, PO Box 460, Echunga SA 5153, Australia Phone: +61-8-8388-8286 Fax: +61-8-8388-8725 Mobile: +61-41-739-7062 Sender: owner-freebsd-chat@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org On Monday, 5 October 1998 at 18:13:51 -0600, Brett Glass wrote: > At 01:46 AM 10/6/98 +0200, Eivind Eklund wrote: > >> First guesses: You've not loaded the Linux emulator, or it is trying >> to execute more ELF binaries after having run that one. > > Turns out it was a little more complex than that, but I managed to > get it to run. However, it generated code that the FreeBSD version of > as didn't like for some reason. For example, when I entered the program > > program Hello; > begin > Writeln('Hello, world!'); > end. > > it spewed a whole bunch of bogus output (see below) and then died. Is > there something wrong that's obvious from what's below? > ... > Free Pascal Compiler version 0.99.8 [1998/09/29] for i386 > Copyright (c) 1993-98 by Florian Klaempfl > Target OS: Linux-i386 > Compiling hello.pas > Assembling hello > pushl %ebp: template 1 operands opcode 55 > #1 type r16, r32, > modrm: mode 0 reg 0 reg/mem 0 base 0 index 0 scale 0 > #1: r32, > ebp > movl %esp,%ebp: template 2 operands opcode 89 DW > #1 type r8, r16, r32, > #2 type r8, r16, r32, Mem8, Mem16, Mem32, BaseIndex, d8, d16, d32, > modrm: mode 3 reg 4 reg/mem 5 base 0 index 0 scale 0 > #1: r32, > esp > #2: r32, > ebp > (etc) Yes. I'd guess that it's your mailer, which appears to be adding gratuitous line wraps. That makes it a pain to read. > It'd be really nice to compile some of my old Turbo Pascal to run on > FreeBSD. I thought we had a Pascal compiler somewhere. Hmmm. Maybe not. I've got one here for the PDP-11, and one from 3BSD, which may be the same one, but nothing modern. How about GNU: gpc is the GNU Pascal Compiler. It can be found in ftp://kampi.hut.fi/jtv/gnu-pascal/ Greg -- See complete headers for address, home page and phone numbers finger grog@lemis.com for PGP public key To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-chat" in the body of the message