From: toby@smartgames.ca (Toby Thain)
Subject: [TUHS] [pups] gcc-3.4.6 and old unix
Date: Mon, 24 Apr 2006 12:06:13 -0400 [thread overview]
Message-ID: <BAYC1-PASMTP08717C48B565AEC0F9B8FFBFBE0@CEZ.ICE> (raw)
In-Reply-To: <1145883920.444ccd101dfd0@www.paradise.net.nz>
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 2746 bytes --]
On 24-Apr-06, at 9:05 AM, Wesley Parish wrote:
> Quoting Andrzej Popielewicz <vasco at icpnet.pl>:
>
>> Wesley Parish napisał(a):
>>
>>> djggp relies on a DOS extender to run its 32-bit programs in a 16-
>>> bit
>>> operating environment on a 32-bit machine. go32 is Delorie's own DOS
>> extender
>>> - OpenWatcom offers at least two other DOS extenders to pull the
>>> same
>> kind of
>>> trick.
>>>
>>>
>> I know that, because I have used djgpp for a quite lot of time.
>>
>> I thought , that Bill wanted to "scale down" gcc compiler to 16 bit
>> environment, and probably djgpp could be a good starting point.
>> I understand , that gcc is not "directly" portable.But because gcc
>> can
>> create pdp code in cross compile environment, perhaps it is not
>> impossible .
>
> In that case, all I can suggest is that the gcc source files are
> cross-compiled to pdp11, and error messages noted. Then the files get
> rewritten for the pdp11 ... I'm sorry I can't help - I'm neither a
> gcc guru
> nor a pdp11 guru.
It can't be done.
As others point out, the program is many times (100x or more?) too
big -- likely even gcc 1.x is far too big, but gcc {2,3,4}.x are all
meant for large 32-bit systems.
However, cross-compilation can certainly be easily done. I have made
a PDP-11 back-end for lcc[1] (not quite complete but shows that it
can be done), which is an ANSI (c89) compiler[2]. lcc is a much
smaller and simpler compiler than gcc, but its executables are still
massively outsize for PDP-11 systems.
--Toby
[1] http://www.telegraphics.com.au/sw/info/lcc-pdp11.html
[2] http://www.cs.princeton.edu/software/lcc/
>>
>> BTW I have just ported Bob Supnik pdp11 emulator to Coherent
>> 4.2.10 and
>> it seems to work(compile works etc). Coherent being 32 bit for 386
>> processors has nonetheless 286 support builtin in kernel, so it
>> seems to
>>
>> be good environment for this simulator (?).
>
> That's good news!
>> I have the same problem as Bill, I have to kill pdp11 process on
>> another
>>
>> console to exit.
>
> You're not the only one, either.
>
> Wesley Parish
>>
>>
>> Andrzej
>> _______________________________________________
>> PUPS mailing list
>> PUPS at minnie.tuhs.org
>> https://minnie.tuhs.org/mailman/listinfo/pups
>>
>
>
>
> "Sharpened hands are happy hands.
> "Brim the tinfall with mirthful bands"
> - A Deepness in the Sky, Vernor Vinge
>
> "I me. Shape middled me. I would come out into hot!"
> I from the spicy that day was overcasked mockingly - it's a symbol
> of the
> other horizon. - emacs : meta x dissociated-press
> _______________________________________________
> PUPS mailing list
> PUPS at minnie.tuhs.org
> https://minnie.tuhs.org/mailman/listinfo/pups
next prev parent reply other threads:[~2006-04-24 16:06 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-04-23 23:27 [TUHS] " Bill Cunningham
2006-04-24 0:00 ` Peter Jeremy
2006-04-24 0:33 ` Michael Davidson
2006-04-24 7:33 ` Andrzej Popielewicz
2006-04-24 7:47 ` Peter Jeremy
2006-04-24 8:44 ` Wesley Parish
2006-04-24 9:50 ` Andrzej Popielewicz
2006-04-24 13:05 ` [TUHS] [pups] " Wesley Parish
2006-04-24 16:06 ` Toby Thain [this message]
2006-04-25 6:28 ` Andrzej Popielewicz
2006-04-24 9:29 ` [TUHS] " Lars Brinkhoff
2006-04-24 12:53 ` John Cowan
2006-04-25 12:53 [TUHS] [pups] " patv
2006-05-02 16:52 ` Charlie ROOT
2006-05-03 1:17 ` Pat Villani
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=BAYC1-PASMTP08717C48B565AEC0F9B8FFBFBE0@CEZ.ICE \
--to=toby@smartgames.ca \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).