From: danpop@cernapo.cern.ch (Dan Pop)
Subject: Re: 64-bit FILE* pointer problem in OSF1
Date: Tue, 22 Nov 1994 12:05:24 GMT [thread overview]
Message-ID: <Czo490.Io1@news.cern.ch> (raw)
In-Reply-To: DUHA.94Nov21095051@ralph.biomed.mcgill.ca
In <DUHA.94Nov21095051@ralph.biomed.mcgill.ca> duha@ralph.biomed.mcgill.ca (Jan A. Duha) writes:
> My question, then: is this a valid method? A longer version of the
>question is: how exactly are fp's implemented in OSF1, and what is the
>significance of moving from 32-bit to 64-bit pointers for FILE
>structures? Can I have it guaranteed that the OS will place the
>pointers in known (constant) locations? (my guess is that since a FILE*
>pointer is associated to a specific stream, the answer to the last question
>would be "yes", but i need this confirmed)
ues5:~/tmp 218> uname -a
OSF1 ues5.cern.ch V2.1 250 alpha
ues5:~/tmp 219> cat test.c
#include <stdio.h>
main()
{
FILE *fp;
fp = fopen("test.c", "r");
printf("%p\n", (void *)fp);
return 0;
}
ues5:~/tmp 220> cc test.c
ues5:~/tmp 221> ./a.out
3ffc008ff98
ues5:~/tmp 222> cc -taso test.c
ues5:~/tmp 223> ./a.out
64011f98
For more details about the -taso option see the cc man page.
Dan
--
Dan Pop
CERN, CN Division
Email: danpop@cernapo.cern.ch
Mail: CERN - PPE, Bat. 31 R-004, CH-1211 Geneve 23, Switzerland
next prev parent reply other threads:[~1994-11-22 12:05 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
1994-11-21 14:50 64-bit FILE* pointer problem in OSF1 Jan A. Duha
1994-11-22 12:05 ` Dan Pop [this message]
1994-11-22 17:22 ` Peter da Silva
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