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

Home » Public Forums » archive » Re: matching 'C' Data Types?
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: matching 'C' Data Types? [message #5158] Sun, 22 October 1995 00:00 Go to previous message
joseph.b.gurman is currently offline  joseph.b.gurman
Messages: 15
Registered: October 1995
Junior Member
In article <4692eu$1to@hammer.msfc.nasa.gov>, mallozzi@ssl.msfc.nasa.gov wrote:

>> I seem to be having a problem matching a few of the C data
>> types, specifically unsigned long and unsigned short.
>
> C datatype sizes:
>
> short 2 bytes
> int 4
> float 4
> long 4
> double 8

Note that this is platform-dependent; e.g., DEC Alphas (and I assume
64-bit MIPS
machines as well) would have 8-byte longs and 16-byte(?) doubles.

>
> IDL datatype sizes:
>
> byte 1 byte
> integer 2
> float 4
> long 4
> double 8
>

Note also that (1) the byte data type is the only unsigned data type in IDL,
and (2) that IDL preserves the above across platforms (whether this is good or
bas probably depends on your application). Frankly, I hope it changes as SGI,
HP, and others finallt move to 64-bit OS's.

> Pretty sure these are correct. I was doing exactly what you are doing
> with c and IDL, but it was quite awhile ago...

Joe Gurman

--
| No time to be witty; sorry |
[Message index]
 
Read Message
Read Message
Previous Topic: some chromatographie routines?
Next Topic: information on idl:books, articles, online

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

Current Time: Sun Oct 12 11:15:47 PDT 2025

Total time taken to generate the page: 1.68044 seconds