Article 7508 of comp.lang.perl: | |
Newsgroups: | comp.lang.perl |
Path: | icdoc!dds |
From: | dds@doc.ic.ac.uk (Diomidis Spinellis) |
Subject: | Re: Perl on MSDOS and translation from awk. |
Nntp-Posting-Host: | skid.doc.ic.ac.uk |
Message-ID: | <1991Dec6.124556.4810@doc.ic.ac.uk> |
Organization: | Dept. of Computing, Imperial College, London, England |
Date: | Fri, 6 Dec 1991 12:45:56 GMT |
References: | <1232@ltb.ltb.bso.nl> |
Lines: | 27 |
Content-Length: | 1437 |
In article <1232@ltb.ltb.bso.nl> wierda@ltb.ltb.bso.nl (Gerben Wierda) writes:
>What compiler should I use when compiling perl for MS-DOS?
Microsoft C 5.1 or better. The Borland C compiler refused to compile
eval.c and the grammar file last time I tried (two years ago, could
have been fixed by now.) GCC for 386 MS-DOS (as currently posted in
c.b.i) would be an interesting experiment, which I will attempt when I
find time. Expect problems with its C libraries.
>If I automatically translate awk programs to perl that were written for
>BSD Unix do they run on MS-DOS perl? (Apart from file names, pipes, processes
>etc).
They should.
>How much memory does the perl program take on DOS?
As much as you have and sometimes a bit more than that. The executable
is around 300K. You can write moderately complicated programs (up to
say 700 lines) without a memory problem if you do not use a lot of data
space. Furthermore many MS-DOS perl versions swap themselves out of
memory when doing pipes or system() and thus occupy only around 4K at
that time. The only time when I have found the DOS memory to be a
problem was, when I was using a big associative array to hold data.
Diomidis
--
Diomidis Spinellis Internet: dds@doc.ic.ac.uk
Department of Computing UUCP: ...!ukc!icdoc!dds
Imperial College, London SW7 #include "/dev/tty"
Newsgroup comp.lang.perl contents
Newsgroup list
Diomidis Spinellis home page
Unless otherwise expressly stated, all original material on this page created by Diomidis Spinellis is licensed under a Creative Commons Attribution-Share Alike 3.0 Greece License.