From: Bob Harris <harris@zk3.dec.com>
Subject: Re: executables
Date: Mon, 04 Feb 2002 10:50:59 -0500 [thread overview]
Message-ID: <040220021050591212%harris@zk3.dec.com> (raw)
In-Reply-To: 3C5BCF7F.30C717A9@web.de
[[ This message was both posted and mailed: see
the "To," "Cc," and "Newsgroups" headers for details. ]]
In article <3C5BCF7F.30C717A9@web.de>, Bernhard Mueck
<Bernhard.Mueck@web.de> wrote:
X Hi all,
X i have two dec alpha boxes,
X one is running on "OSF1 V4.0 1229 alpha" and the other on
X "OSF1 V5.1 732 alpha" .
X
X On the V5.1 machine i have a compiler
X f90 -version
X Compaq Fortran V5.4-1283
X Compaq Fortran Compiler V5.4-1283-46ABA
X
X Is it possible to produce executables for the older V4.0 machines with
X this compiler.
X I tried the -non_shared option, but this did not work.
X The error message was "Bad system call" .
Highly unlikely, as v5.* added new system calls and the v5.1 compiled
code is mostly calling them, so when you take the code back to v4.*,
where the new calls do not exist, the program fails.
Even if your program does not use any of the new calls, the libraries
you are including in your code vai -non_shared may be calling them.
And you may not even know that you are calling new calls, since some of
them (like stat()) are really standard POSIX functions that have been
given a face lift and vai some complex renaming tricks it looks like
you are calling the same old function, but in reality, you are calling
a new API in the kernel. The renaming tricks allows existing programs
to continue to call the old syscall API and still work, while newly
compiled programs learn to call the new (and improved) API. We
maintain forward compatibility, while improving our APIs for newly
compile code.
But that will not allow you to compile code on v5.1 and take it back to
v4.*
Bob Harris
prev parent reply other threads:[~2002-02-04 15:50 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-02-02 11:37 executables Bernhard Mueck
2002-02-04 15:50 ` Bob Harris [this message]
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox