Usenet comp.sys.dec (1990-2013)
 help / color / mirror / Atom feed
From: bruce@ais.com
Subject: Re: Dec Alph and VC++
Date: 1996/02/08	[thread overview]
Message-ID: <1996Feb8.010940.8725@ais> (raw)
In-Reply-To: 4f76a7$iri@bigboote.WPI.EDU

In article <4f76a7$iri@bigboote.WPI.EDU>, joev@pyramid.res.wpi.edu (Joseph Vigneau) writes:
> In article <4f6iqb$2hm@tkhut.sojourn.com>,
> Richard G. Vissers <rvissers@sojourn.com> wrote:
>>This may be a stupid question but is NT for the Dec Alpha a special flavor
>>of NT or is it the same OS?  If it's the same, then can the regular version
>>of MS-VC++ run and compile programs for the Dec-Alpha?
> 
> It's a special flavor in that, yes, it is different from the Intel version
> of NT: They won't run the same binaries.  To answer your question, however,
> get the Alpha version of MS-VC++.  Just recompile your app.  Unless you do
> something Intel specific, porting is a snap (just rebuild on the Alpha...)

The Alpha NT will run the same 16-bit binaries for Windows and MS-DOS that
Intel NT will run;  however it will not run the 32-bit binaries.  Neither
will a compiler for an Intel box produce code that will run on the Alpha
(unless it can produce 16-bit code which will run in its emulation mode).

But you are right that you sort of have to go out of your way to find ways
for an app to work on Intel and not on the Alpha after a recompile;  both
are little endien machines using IEEE floating point, for example.  The
only things I've found while porting code between the platforms that can
lead to incompatibilities:

    o	Assembly code (Obviously :-).  Also obviously, this is likely to
	impact code that needs kernel mode, such as device drivers.

    o	Code that plays dirty tricks with varargs.  If you use the standard
	macros, everything is fine, but the macro expansions are quite
	different on Intel and on Alpha, so if your code is at all aware
	of what the varargs macros are doing "under the hood", you are
	asking for trouble.

The two machines look amazingly alike when runing NT.  The only way you
can tell them or the apps that run on them apart is the name on the box
and that the binaries on the Alpha are about twice as big because it's
RISC (but they often run faster for the same reason :-).

Bruce C. Wright



  reply	other threads:[~1996-02-08  5:00 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1996-02-06  5:00 Dec Alph and VC++ Richard G. Vissers
1996-02-06  5:00 ` Joseph Vigneau
1996-02-08  5:00   ` bruce [this message]
1996-02-08  5:00 ` Al Herb
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