From: Craig Burley <burley@gnu.ai.mit.edu>
Subject: Re: DEC Unix binary compatibility for Linux
Date: Tue, 21 May 1996 11:13:11 -0400 [thread overview]
Message-ID: <199605211513.LAA26174@apple-gunkies.gnu.ai.mit.edu> (raw)
> I'm a newbie to Alpha programming, and I often feel lost in it... For sure it
>is part because I am french and Slackware-addicted :-), but the information
>seems to me more private than on Intel : you must *purchase* the technical
>documentation from Digital ! And the FAQ's seem slim to me : what is a PALcode
>? And why does Milo need to be rebuilt as often as the kernel ? And how is the
>limit between Milo and the kernel set ? And why must we wait for Digital to
>implement it's own version of ELF instead of working with them on that topic
>?...
I don't know the answers to many of those questions, but for what it's
worth, when someone at Digital found out I was doing g77 work on an Alpha,
he got me the "Alpha AXP Architecture Reference Manual (Second Edition)".
For free. Brought it to me at my house and handed it to me. Apparently it
can be bought at bookstores (though I think he said something about this
new edition being hot off the presses).
Doesn't sound like "private" development to me. FWIW, I've done internals
work (meaning OS, compiler, tools) on a variety of systems over the past
ten years or so (actually for twenty, but for only the past ten on machines
most of you would find at all interesting as machine consumers), including
Intel x86, Motorola 68k, SPARCv8 and v9, HP-PA RISC 1.1, and now Alpha, and
nothing has been more open and available at the Alpha's current stage of
development than the Alpha. (Yes, I have lots of technical info on the
Intel, but most of the useful stuff has come from people who write books
based on reverse-engineering.)
> Does it have to do with DEC compatibility ? Well, I think that if Linux/Alpha
>chooses to enforce Digital Unix compatibility, this means that Linux
>programmers choose to satisfy their clients prior to themselves -- which was
>never the case before. This will bring it further and further from the original
>"Linux attitude". See the people posting on this list : no newbies around, only
>kernel/libc/Fortran/gcc/hardware hackers ! Where are the happy Sunsite disk
>fillers ?
It's hard to get newbies excited about using systems that aren't fully
operational yet. They have to be hackers. There were no newbies using
Linux in the early days, either -- I know, I was there near the end of those
days (0.96 or thereabouts). I even pointed out one tiny kernel bug (well,
in the file system code, having to do with group protections) found by my
randomly looking at the code, but my work on g77 has been so consuming I
haven't had the opportunity to have fun doing kernel stuff (OS being more
my area of expertise than compilers, especially front ends, but that's life).
> You are building a system for your own needs, powerful, straight but obscure
>for a variety of reasons; and the humble programmers don't feel at home with an
>AXP, because they can't even understand how the machine boots :-(... I am sorry
>to admit that Linux/AXP as I see it is not for me - the freedom has partly
>gone. Since I want to keep trying, my wish for the DEC compatibility issue is
>clear : this is not the way. We could imagine some sort of "ABCS" for the
>Alpha, with such a mess as a different system call numbering depending on the
>native OS of the program being run; but keeping compatibility with another
>system should never be a reason to make Linux itself deviate from its own way
>-- where would be freedom else?
Hmm, the Linux/Alpha boot process is probably far more scrutible and
sensible at this stage in its life than Linux/Intel was at a comparable
stage. I didn't use LILO for a _long_ time, it wasn't even in existence
for the first year or so I was using Linux/Intel. I forget the name of
the thingy I _did_ use, but I didn't replace it until I installed a complete
system off of CD-ROM (LILO), and for most of that time, the old thing was
used only to choose to boot DOS because its partition and other info
was obsolete (I used a floppy to boot Linux -- not kidding).
Anyway, I'll admit that _I'm_ unusual in that I'm writing free software I don't
use. I don't think that makes me a bad person, nor do I accept your claim
that I'm violating the "Linux attitude" by doing so. Nobody claimed I was
doing that years ago when I was writing g77 _using_ Linux on Intel machines;
why does that suddenly change now that I, and others, are doing it on Alphas?
But, there are some factual differences between the Alpha situation and the
old Intel situation that perhaps you're taking as an affront, but to me are
simply unavoidable, and, on the whole, quite positive, even if there are one
or two (IMO very minor) negative elements in it.
First, Linux grew up on Intels because, well, everyone had Intels. They were
the cheapest buck for the bang (ratio intentionally reworded) for most
people who wanted to do some hacking, play games, get work done, and not
have an architecture go obsolete due to a combination of poor marketing
(Amiga, etc.) and poor design (Intel/DOS, etc.). The question then was,
"how can we make better use of the hardware we already have, without dropping
$$$ on software every 6 months?" -- that's not the question now for Linux/Alphas.
Second, compatibility with existing standards was not important for Linux/Intel
during its early development because, basically, there wasn't much to be
compatible with. Further, the luminaries doing the development were
somewhat strapped for good documentation, high-powered machines, apps that
worked under the other compatible systems, and so on. DOSEMU is an example
of the desire to make things compatible; but DOS's inscrutability, despite
its incredibly feeble power, made that take much longer than otherwise.
Some degree of source-level compatibility with UNIX happened because lots
more people used and could help with that, and going in that direction didn't
cripple us doing things that we wanted to do for ourselves (as being
compatible with DOS would), things like high performance, ability to handle
large disks and files, programs larger than 1MB (g77's main component weighs
in at about 7MB), multi-user, networking, etc.
Third, the existing standards Linux/Alpha are working for, which I know
nothing about, are likely to be far better designed in terms of elegance
and, especialy, performance, because Digital is likely to have done good
work on them rather than shoot itself in the foot. Remember, DOS was designed
to run on a severely crippled machine by people who knew next to nothing
about operating-system design issues (and then Microsoft bought it, no
comment ;-), and further, DOS apps, which is where the real compatibility
burden lies (writing to the screen instead of INT 10h, for example), were
written by people who knew nothing about writing portable, high-speed,
robust multi-user applications. DEC Alpha software, on the other hand,
does not suffer these afflictions -- DEC's corporate culture, like it or
not, includes more expertise on good OS design than most of us can even
imagine, and this includes things like the app<->OS interface, high-
performance computing, and _especially_ taking full advantage of both
current and future (planned) Alpha implementations -- and remember, as
open as DEC, they probably aren't telling everyone exactly what they think
future Alpha processors are going to look like in terms of their
performance envelope, so that knowledge is likely to show up _first_ in
the design work they do for public interfaces in their products.
(Having seen internals _and_ APIs for a variety of OSes, I can tell
you that DEC runs the biggest risk of any vendor for _over_-specifying
its OS APIs -- if there's any criticism I could level at DEC's design
in this area, it's that they think _too_ much about it. But that's
based on my experience with VMS and older systems, I'm sure they've learned
to avoid that syndrome in the past decade or so.)
This means that it makes a lot more sense to follow in the wake of
DEC's work on software standards for the Alpha than to grow our own.
I happen to have a lot of expertise on designing good app/OS interfaces
(after all, I suffered through, and managed to fix a few of, the nutty design
decisions being made at Pr1me for PRIMOS, but I just have a bent for
good design at this level, thinking of things no sane person should ;-),
but even if I had full time available to craft my own "perfect" app
interface for an Alpha OS, I'd still want to _start_ with whatever
DEC was doing (assuming it wasn't proprietary or obviously crippled)
and add my own as an option. That way, I could at least attempt to
measure the actual benefits my own design had over the comptetition.
It also means that there's no particular benefit, other than NIH (Not
Invented Here) syndrome satisfaction, to going in our own direction
doing Linux/Alpha. For Linux/Intel, we _had_ to do it to get something
useful up and running, with decent performance and few embarrassments --
since then we've had the "installed base" preventing as rapid movement
to more standard API elements as perhaps would be desirable. (I suspect
the movement to ELF would have been much easier had it been the first
targets for Linux back around 0.96 -- but that wasn't possible for a
variety of reasons.)
Fourth, Alphas aren't cheap. Newbies don't buy them to play and tinker
with free software -- unless they have too much money and just want to
wait for "the future" to arrive rather than wait to make their (superior,
due to pricing trends) purchase when it actually does (e.g. fully
functional Linux). If they need the Alpha so bad, that means they need
performance, and they'll probably pay for OSF/1 or whatever to get
it as fast as possible. This is _quite_ a different picture from that
for Linux/Intel, where people _already_ had lots of Intels sitting
around, wondering how much _more_ they could do with them -- with Alphas,
the issue is that they can _already_ do vast amounts of great stuff
with them using OSF/1, the question is, can they choose to run a
"free" system like Linux and still get decent performance? To the degree
the answer is "yes", the Linux/Alpha will be more successful -- failing
to take advantage of high-performance-oriented design decisions I
suspect have been made in producing the stuff you complain we're trying
to be compatible with would reduce this answer to "well, if you don't
mind giving up lots of performance and compatibility...but then why
not just get a high-end Pentium?, and we're _already_ seeing some
people with answers like that (and, for them, perhaps those are good
answers...why inflate the percentage of the target audience that would
answer the issue that way by choosing to be gratuitously incompatible
just to satisfy our NIH urges?)? The result is that the majority
of people who really _have_ Linux/Alpha configurations are those of us
who already are intending to do pretty high-performance stuff but want
to avoid proprietary OSes so we can improve the OS ourselves, etc.
That necessarily rules out newbies -- if newbies need that right away,
they can (and should) by high-performance Linux/Intel machines. We Want
More, and are willing to do it Now, but want to do it Right.
Fifth, some of us (and I do definitely include myself here) were just
"nobodies" starting out on Linux/Intel, so we had nobody to satisfy
but ourselves. (Well, I had the Fortran audience, but....) Now that
we've got a track record, people with resources who want to make the
Alpha successful have come to us and said, basically, "here's a deal
for you...we put an Alpha on your desktop, you go make your software
work really well on it" -- yes, this is _definitely_ going to result
in a different attitude in terms of our development, but I think the
net result is positive, because we're taking advantage of our higher
visibility and greater experience (having been through this before)
to get a few things right (like more compatibility with existing
and upcoming standards) up front, meanwhile, we're not as pressured
to just cobble something together to get it to work because, I suspect,
most of us _have_ working, adequate Linux (Intel) machines on the
other side of our desks (I know I do, though it's been powered off
for several days now ;-). So, we get to take our time and do things
right, not do them NOW and then try to fix them later and risk upsetting
the installed base we've created.
Sixth, it's probably the case now that most of the "hacker" software
you depend on has not been "hacked" with the same attitude you
believe is so important for a _very_ long time. That is, you're
_already_ sitting on the shoulders of those who, while they might have
started out as "d**n the standards, full speed ahead!"-type hackers,
if they're still doing useful work on the same products, it's likely
to be along the lines of making them more portable, more standard-
and expectation-conforming, and other stuff that attracts more,
instead of fewer, developers to work on them. If you're still running
a version of Linux prior to around 0.99.15, and all your GNU software
dates from that era, then I'm wrong, but you're a big exception --
most of us were happy to install new versions of software improved
to be more standard-conforming (e.g. POSIX). I much prefer being
able to switch relatively painlessly among the machines I use
frequently these days -- Linux/Intel, SPARC/SunOS, HPPA/HP-UX
(though the gratuitous incompatibilities in the latter are
frustrating) -- than having a somewhat less powerful, if perhaps
more "elegant" and "cool", Linux/something system that is hard
to port stuff outward to the other machines I'm using. (It's not
so much that I don't love writing incompatible stuff when I think
it's better than what came before -- I do -- it's just that you
don't get lots of users, and especially other developers, that way,
so be prepared to remain in a technological cul-de-sac.)
For example, if you're using gcc, Emacs, or most any other piece
of GNU software, or X, etc., you're already using software that
has much of its present development thrust devoted to things like
compatibility, portability, hardware independence, rather than things
like you seem to want for Linux/Alpha.
Seventh, nothing prevents newbies coming along and writing a _new_ Alpha
OS that has no concerns for compatibility, careful crafting, etc. --
just get something nifty up and running -- other than the issues I've
shown above. E.g. price, and the fact that their OS _won't_ be the
only free OS available, and _will_ likely be less stable than the
alternative (Linux), and will _probably_ be a worse performer in the
long run...so, maybe if we all stopped doing our work, someone would
come along and do the kind of incompatible hacker OS you yearn for,
but none of us want to depend on that to get our Alphas up and running
on a free OS, you understand.
So, rather than complaining, perhaps you'd get a lot of satisfaction
(and, down the road, we'd get another really great developer, assuming
you consider yourself a newbie at this point) by starting as Linus
did -- try to get a simple bit of kernel code to demonstrate switching
between processes on your Alpha. You'll probably have as much or _less_
trouble finding the info you need to do that. From there, grow your
own OS, and if you avoid existing designs (e.g. UNIX), you get to design
it too! Lots of people have done this, by the way, on Intels -- however,
only Linus has succeeded so far, I believe, in producing a system from
humble beginnings like this that is self-sustaining due to having so many
developers worldwide committed to its success. (Even g77 hasn't reached
this point; that is, the people who are committed to its success aren't
developers.) But, that shouldn't dissuade you, it certainly wasn't
something Linus worried a lot about in the early days, he just made a few
really "right" decisions (like going with UNIX, going with the GPL, etc.) to
go along with all his hard work. (If I've got any of this wrong, I'm sure
he'll chime in, if he hasn't already.)
tq vm, (burley)
next reply other threads:[~1996-05-21 15:13 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
1996-05-21 15:13 Craig Burley [this message]
-- strict thread matches above, loose matches on Subject: below --
1996-05-24 21:01 DEC Unix binary compatibility for Linux Dreyer
[not found] <XFMail.960522162451.bheadley@interaccess.com>
1996-05-22 22:57 ` velcro
[not found] <XFMail.960521210758.bheadley@interaccess.com>
1996-05-22 14:45 ` Barry James
1996-05-22 21:14 ` Bryan W. Headley
[not found] <burley@gnu.ai.mit.edu>
1996-05-22 2:21 ` Dominique Avatravaux
[not found] <9605212003.AA12571@nova.tat.physik.uni-tuebingen.de>
1996-05-21 20:10 ` David Fell
1996-05-22 1:59 ` Bryan W. Headley
1996-05-22 0:47 Eduardo Kaftanski
[not found] <31A26429.28A91FB4@webhost.cl>
1996-05-21 21:23 ` Jason Philbrook
[not found] <guppy@maine.com>
1996-05-21 20:57 ` Dominique Avatravaux
1996-05-21 14:39 ` Harald Koenig
1996-05-21 19:47 Craig Burley
1996-05-21 19:36 David Mosberger
1996-05-21 19:08 Toon Moene
1996-05-21 15:29 Nigel Metheringham
1996-05-21 15:26 Ka'plaagh 21-May-1996 1624 +0100
1996-05-21 15:07 Przemek Klosowski
1996-05-21 16:19 ` Michael Schwingen
1996-05-21 13:29 Ka'plaagh 21-May-1996 1415 +0100
1996-05-21 13:06 Robert Klein
1996-05-21 0:19 Harold H. Youngren
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