comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: c compilers on Alpha/NT for call_external
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Re: c compilers on Alpha/NT for call_external [message #12496] Thu, 13 August 1998 00:00
menakkis is currently offline  menakkis
Messages: 37
Registered: June 1998
Member
Ray <muzic@uhrad.nospam.com> wrote:
> Does any one have experience writting call_external routines in C on
> Alpha/NT? What C compiler is recommended? I see Microsoft has
> Visual C++ for RISC.

I wrote one sometime back (when IDL first came out for ALPHA/NT) using
Microsoft Visual C++ version 4. (This was the latest version of MSVC at the
time.)

Basically, if you've written a DLL for IDL on Intel NT (or Win95) then
chances are that you can simply recompile it for Alpha/NT. There are a few
minor differences here and there, I think, but you would most probably not
encounter them in a "typical" DLL for IDL. (I only encountered one problem
area.) INTs and even LONGs and pointers remain 32-bit on Alpha/NT, etc.

That problem area I mentioned: Floating point exceptions. There are a few
differences here between the MSVC compilers on Alpha and Intel. One or two
of my routines have the potential to generate floating-point underflows and
the like. e.g., Some use exp(x), where x can be a "small" negative number
(like -200.0, say). I usually turn underflow and denormal exception handling
off for these routines. I couldn't do this completely on Alpha/NT - the call
used to mask FP exceptions doesn't mask denormals. (Well, I suppose I could
have written my own trap handler or something, but I wasn't up to it.) Also,
if you change the default FP behaviour in MSVC for Alpha in certain ways, you
can seriously degrade the Alpha's FP performance.


Cheers

Peter Mason

-----== Posted via Deja News, The Leader in Internet Discussion ==-----
http://www.dejanews.com/rg_mkgrp.xp Create Your Own Free Member Forum
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: Scrolling data to display window
Next Topic: center dialog boxes

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Fri Oct 10 11:22:37 PDT 2025

Total time taken to generate the page: 0.32340 seconds