Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 6 Oct 1998 11:55:29 +0930
From:      Greg Lehey <grog@lemis.com>
To:        Brett Glass <brett@lariat.org>, Eivind Eklund <eivind@yes.no>, chat@FreeBSD.ORG
Subject:   Re: Pascal for Linux won't work on FreeBSD.... Why?
Message-ID:  <19981006115529.K27781@freebie.lemis.com>
In-Reply-To: <4.1.19981005180601.041b4e00@mail.lariat.org>; from Brett Glass on Mon, Oct 05, 1998 at 06:13:51PM -0600
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>

next in thread | previous in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19981006115529.K27781>