Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
From: Dan Morrill <morrill@crd.ge.com>
To: axp-list@redhat.com
Subject: Re: Linux/AXP signum.h
Date: Mon, 21 Sep 1998 13:58:49 -0400	[thread overview]
Message-ID: <360693D9.80107B63@crd.ge.com> (raw)
In-Reply-To: 9809211741.AA30520@s2alpha1.rivm.nl

A van Kessel wrote:
> The #defines exist to hide the magic constants behind symbolic names.
> Once compiled the symbolic names disappear. That is no big deal:
> once compiled (for a specific platform) the exact values are correct
> *for that platform* .

Right, and in this case the idea is that the resulting binaries are
compatible with both Linux and OSF/1 without having to munge OSF/1
binaries to the Linux format.  I agree that this is a good idea.

I'm not concerned that Linux/Alpha attempts to be OSF/1 compatible,
I'm concerned that Linux/Intel has signals that Linux/Alpha does not.
As things currently stand, Joe Programmer not only has to do an
#ifdef LINUX but also an #ifdef ALPHA;  that is this particular anomaly
is requiring developers to not only specifically handle Linux, but to
specifically handle Linux/Alpha, and Linux/Intel, and maybe Linux/SPARC,
etc.  Yeah, the #defines give you the right numbers *for the platform*,
but if the signal isn't even present in signum.h, you can't get a
platform-specific number for it.

Perhaps I misrepresented myself a bit;  I'm by no means saying that
OSF/1 compatibility is bad.  I'm just saying that IMHO it's worth
considering working toward signal compatibility with Linux/Intel,
since that's where the biggest things are happening.  Especially since
this particular issue can probably be solved very easily by increasing
_NSIG and adding in the missing Linux/Intel signals.  (And, of course,
perhaps recompiling anything that relies on _NSIG, but this could be
a change migrated into a future release.)

Again, this is a fairly arcane issue, but any time we add to the work
that developers must do to port to our platform, we're hurting ourselves.

Dan Morrill
Computer Scientist
GE Corporate R&D, K1 5C36
(518) 387 - 6761


  reply	other threads:[~1998-09-21 17:59 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1998-09-21 17:41 Linux/AXP signum.h A van Kessel
1998-09-21 17:58 ` Dan Morrill [this message]
  -- strict thread matches above, loose matches on Subject: below --
1998-09-21 18:08 A van Kessel
1998-09-21 17:35 Dan Morrill
1998-09-21 19:17 ` Michal Jaegermann
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