Usenet comp.unix.osf.misc (1992-2004)
 help / color / mirror / Atom feed
From: dsb@world.std.com (David Boyce)
Subject: Re: help, malloc 32 vs malloc 64
Date: Wed, 19 Oct 1994 03:37:07 GMT	[thread overview]
Message-ID: <DSB.94Oct18233707@world.std.com> (raw)
In-Reply-To: teak@csugrad.cs.vt.edu's message of 15 Oct 1994 09:33:34 -0400

In article <37olne$rqn@csugrad.cs.vt.edu> teak@csugrad.cs.vt.edu (Teak 'Teakster' Min) writes:

> Problem:  I am working on a DEC Alpha using OSF/1.  I need to know
> if there is anyway to #define an int in C to a long.  What I am 
> having problems is that when I malloc and I get a memory location, 
> the address is assigned to a pointer of type int which is 32bit but
> the system gives back an address with is greater than 32bit address.
> I know that OSF is a 64 bit architecture.  What I need to know is
> how to compile my program which will use only address in the
> 32bit range OR set on option that will make int larger than 32bit.
> This program (or I should say environment) is compiled using both
> cc and gcc.

Perhaps I'm missing something, but this sounds exactly like what the
-taso (truncated address space option) flag on DEC's C compiler is
designed for.  Have you looked that up in the man page?
-- 

David Boyce	(dsb@id.wing.net)


  parent reply	other threads:[~1994-10-19  3:37 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1994-10-15 13:33 help, malloc 32 vs malloc 64 Teak 'Teakster' Min
1994-10-15 19:56 ` Rich Salz
1994-10-19  3:37 ` David Boyce [this message]
1994-10-21 13:36 ` Alan Herrlich
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