Usenet comp.sys.dec (1990-2013)
 help / color / mirror / Atom feed
* mixing 4 byte and 8 byte pointers
@ 1996-08-07  4:00 Jeff Eisen
  1996-08-09  4:00 ` Joe Mario
  0 siblings, 1 reply; 2+ messages in thread
From: Jeff Eisen @ 1996-08-07  4:00 UTC (permalink / raw)



I am trying to mix 4 byte and 8 byte pointers on an Alpha running OSF.

(Someone else is dealing with the compilation, so excuse the fact that I 
don't know the exact compiler flags, etc.)

Some of my files are compiled using 4 byte pointers.
Some of my files are compiled using 8 byte pointers (with 0 for the high 4 
bytes).

Is it possible for these files to communicate with each other using some 
kind of pragma or keyword in the header files to distinguish the 
compilations.  For example, on the PC, 16-bit Windows has NEAR and FAR 
pointers, as in "char FAR *" or "char NEAR *".  Is there anything like 
that that I can use on the Alpha.

Thanks in advance.
Email responses preferred.

Jeff Eisen
jne@iris.com







^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: mixing 4 byte and 8 byte pointers
  1996-08-07  4:00 mixing 4 byte and 8 byte pointers Jeff Eisen
@ 1996-08-09  4:00 ` Joe Mario
  0 siblings, 0 replies; 2+ messages in thread
From: Joe Mario @ 1996-08-09  4:00 UTC (permalink / raw)
  To: Jeff Eisen; +Cc: mario


Jeff Eisen wrote:
> 
> I am trying to mix 4 byte and 8 byte pointers on an Alpha running OSF.
> 
 ...
> Is it possible for these files to communicate with each other using 
> some kind of pragma or keyword in the header files to distinguish 
> the compilations.   

Although you don't say what language the files are compiled in, the
two C compilers and C++ on Digital UNIX support a variety of 
"#pragma pointer_size xxxx" pragmas.

See the Digital UNIX Programmer's Guide for details.

Joe Mario



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~1996-08-09  4:00 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1996-08-07  4:00 mixing 4 byte and 8 byte pointers Jeff Eisen
1996-08-09  4:00 ` Joe Mario

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox