From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,82d87c508dfbdc4,start X-Google-Attributes: gidfee84,public X-Google-ArrivalTime: 1994-10-15 06:50:18 PST Path: bga.com!news.sprintlink.net!howland.reston.ans.net!gatech!news-feed-1.peachnet.edu!news.duke.edu!solaris.cc.vt.edu!csugrad.cs.vt.edu!not-for-mail From: teak@csugrad.cs.vt.edu (Teak 'Teakster' Min) Newsgroups: comp.unix.osf.osf1 Subject: help, malloc 32 vs malloc 64 Date: 15 Oct 1994 09:41:44 -0400 Organization: Virginia Tech Computer Science Dept, Blacksburg, VA Message-ID: <37om6o$s79@csugrad.cs.vt.edu> NNTP-Posting-Host: csugrad.cs.vt.edu X-Newsreader: TIN [version 1.2 PL2] If anyone has any information or possible solution to this question, I would be very appreciative. 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. I was TOLD that c was a portable code, was I lied to? Why not change all my int to long? Well this program has over a hundred if not more files in several directories and I wish not to go in all those files and change int to long. I thank all those who took the time to read this message. Thanks. _/_/_/_/_/ _/_/_/ _/ _/ _/ Teak Min _/ _/ _/_/ _/ _/ Virginia Tech (VPI&SU) _/ _/_/_/ _/ _/ _/_/ (703) 953-3998 _/ _/ _/_/_/_/ _/ _/ teak@csugrad.cs.vt.edu _/ _/_/_/ _/ _/ _/ _/ teak@cray-ymp.acm.stuorg.vt.edu 2713 Newton Court http://csugrad.cs.vt.edu/~teak/ Blacksburg, VA. 24060 #include