perlvos.html
来自「perl教程」· HTML 代码 · 共 386 行 · 第 1/2 页
HTML
386 行
<li>
<p>Either the alpha or generally-available version of the VOS
POSIX.1 environment.</p>
<p>The alpha version of POSIX.1 support is available on the
Stratus FTP site. Login anonymously to ftp.stratus.com and
get the file /pub/vos/posix/alpha/posix.save.evf.gz in
binary file-transfer mode. Or use the Uniform Resource
Locator (URL)
<a href="ftp://ftp.stratus.com/pub/vos/posix/alpha/posix.save.evf.gz">ftp://ftp.stratus.com/pub/vos/posix/alpha/posix.save.evf.gz</a> from
your web browser. Instructions for unbundling this file
are at <a href="ftp://ftp.stratus.com/pub/vos/utility/utility.html">ftp://ftp.stratus.com/pub/vos/utility/utility.html</a>
This is NOT a standard Stratus product.</p>
<p>In VOS Release 14.3.0, the generally-available version of
POSIX.1 support is bundled with the VOS Standard C compiler
(or Standard C Cross-Compiler). In VOS Release 14.4.0 or
higher, it is also bundled with the VOS C Runtime. These
are standard Stratus products.</p>
</li>
<li>
<p>You must compile this version of Perl 5 on VOS Release
14.1.0 or higher because some of the perl source files
contain more than 32,767 source lines. Due to VOS
release-compatibility rules, this port of perl may not
execute on VOS Release 12 or earlier.</p>
</li>
<li>
<p>If you are using the generally-available version of VOS POSIX
support, then you should also acquire the VOS GNU C/C++ Compiler
and GNU Tools product. When perl is built with this version of
POSIX support, it assumes that it can find "bash", "sed" and
other POSIX-compatible commands in the directory
/system/gnu_library/bin.</p>
</li>
</ol>
<p>To build perl using the supplied VOS command macros, change to
the "vos" subdirectory and type the command "compile_perl
-processor X", where X is the processor type (mc68020, i80860,
pa7100, pa8000) that you wish to use. Note that the
generally-available version of POSIX.1 support is not available
for the mc68020 or i80860 processors.</p>
<p>Use the "-version alpha" control argument to build perl with
the alpha version of POSIX support, and use the "-version
ga" control argument to build it with the
generally-available version of POSIX. The default is "ga".</p>
<p>Use the "-compiler cc" control argument to build perl with
the VOS Standard C compiler. Use the "-compiler gcc"
control argument to build it with the GNU GCC compiler. The
default is "cc".</p>
<p>You must have purchased the VOS Standard C Cross Compiler in
order to compile perl for a processor type that is different
from the processor type of the module.</p>
<p>Note that code compiled for the pa7100 processor type can
execute on the PA7100, PA8000, PA8500 and PA8600 processors, and
that code compiled for the pa8000 processor type can execute on
the PA8000, PA8500 and PA8600 processors.</p>
<p>To build full perl using the supplied Configure script and
makefiles, change to the "vos" subdirectory and type the command
"compile_full_perl" or "start_process compile_full_perl". This
will configure, build, and test perl.</p>
<p>
</p>
<h2><a name="installing_perl_5_on_vos">Installing Perl 5 on VOS</a></h2>
<ol>
<li>
<p>If you have built perl using the Configure script, ensure that
you have modify permission to <code>>system>ported</code> and type</p>
<pre>
gmake install</pre>
</li>
<li>
<p>If you have built perl using any of the other methods, type</p>
<pre>
install_perl -processor PROCESSOR -name NAME</pre>
<p>where PROCESSOR is mc68020, i80860, pa7100, or pa8000, as
appropriate, and NAME is perl or perl5, according to which name
you wish to use.</p>
<p>This command macro will install perl and all of its related
files in the proper directories.</p>
</li>
<li>
<p>While there are currently no architecture-specific
extensions or modules distributed with perl, the following
directories can be used to hold such files:</p>
<pre>
>system>ported>lib>perl5>5.8.0>68k
>system>ported>lib>perl5>5.8.0>860
>system>ported>lib>perl5>5.8.0>7100
>system>ported>lib>perl5>5.8.0>8000</pre>
</li>
<li>
<p>Site-specific perl extensions and modules can be installed in one of
two places. Put architecture-independent files into:</p>
<pre>
>system>ported>lib>perl5>site_perl>5.8.0</pre>
<p>Put site-specific architecture-dependent files into one of the
following directories:</p>
<pre>
>system>ported>lib>perl5>site_perl>5.8.0>68k
>system>ported>lib>perl5>site_perl>5.8.0>860
>system>ported>lib>perl5>site_perl>5.8.0>7100
>system>ported>lib>perl5>site_perl>5.8.0>8000</pre>
</li>
<li>
<p>You can examine the @INC variable from within a perl program
to see the order in which Perl searches these directories.</p>
</li>
</ol>
<p>
</p>
<hr />
<h1><a name="using_perl_in_vos">USING PERL IN VOS</a></h1>
<p>
</p>
<h2><a name="unimplemented_features_of_perl_on_vos">Unimplemented Features of Perl on VOS</a></h2>
<p>If perl is built with the alpha version of VOS POSIX.1 support
and if it attempts to call an unimplemented VOS POSIX.1
function, it will print a fatal error message and enter the VOS
debugger. This error is not recoverable. See vos_dummies.c for
a list of the unimplemented POSIX.1 functions. To see what
functions are unimplemented and what the error message looks
like, compile and execute "test_vos_dummies.c".</p>
<p>
</p>
<h2><a name="restrictions_of_perl_on_vos">Restrictions of Perl on VOS</a></h2>
<p>This port of Perl version 5 to VOS prefers Unix-style,
slash-separated pathnames over VOS-style greater-than-separated
pathnames. VOS-style pathnames should work in most contexts, but
if you have trouble, replace all greater-than characters by slash
characters. Because the slash character is used as a pathname
delimiter, Perl cannot process VOS pathnames containing a slash
character in a directory or file name; these must be renamed.</p>
<p>This port of Perl also uses Unix-epoch date values internally.
As long as you are dealing with ASCII character string
representations of dates, this should not be an issue. The
supported epoch is January 1, 1980 to January 17, 2038.</p>
<p>See the file pod/perlport.pod for more information about the VOS
port of Perl.</p>
<p>
</p>
<h2><a name="handling_of_underflow_and_overflow">Handling of underflow and overflow</a></h2>
<p>Prior to VOS Release 14.7.0, VOS does not support automatically
mapping overflowed floating-point values to +infinity, nor
automatically mapping underflowed floating-point values to zero,
unlike many other platforms. The Perl pack function has been
modified to perform such mapping in software on VOS. Performing
other floating-point computations that underflow or overflow
will probably result in SIGFPE. Don't push your luck.</p>
<p>As of VOS Release 14.7.0, the VOS POSIX runtime sets up the
PA-RISC hardware floating-point status register so that the
overflow and underflow exceptions do not trap, but instead
automatically convert the result to infinity or zero, as
appropriate. As of this writing, there are still floating-point
operations that can trap, for example, subtracting two infinite
values. This is recorded as suggestion posix-1022, which is not
yet fixed.</p>
<p>
</p>
<hr />
<h1><a name="test_status">TEST STATUS</a></h1>
<p>When Perl 5.8.3 is built using the native build process on VOS
Release 14.7.0 and GNU C++/GNU Tools 2.0.2a, all but three
attempted tests either pass or result in TODO (ignored)
failures. The tests that fail are:</p>
<p>t/io/tell.t, test 28
t/op/pack.t, test 39
lib/Net/ing/t/450_service.t, test 8</p>
<p>
</p>
<hr />
<h1><a name="support_status">SUPPORT STATUS</a></h1>
<p>I'm offering this port "as is". You can ask me questions, but I
can't guarantee I'll be able to answer them. There are some
excellent books available on the Perl language; consult a book
seller.</p>
<p>If you want a supported version of perl for VOS, purchase the
VOS GNU C++ and GNU Tools Release 2.0.1 (or later) product from
Stratus Technologies, along with a support contract (or from
anyone else who will sell you support).</p>
<p>
</p>
<hr />
<h1><a name="author">AUTHOR</a></h1>
<p>Paul Green (<a href="mailto:Paul.Green@stratus.com">Paul.Green@stratus.com</a>)</p>
<p>
</p>
<hr />
<h1><a name="last_update">LAST UPDATE</a></h1>
<p>January 15, 2004</p>
</body>
</html>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?