Path: utzoo!attcan!uunet!lll-winken!ames!pasteur!ucbvax!decwrl!hplabs!hpfcdc!hpldola!hpctdlb!hpctdls!wei From: wei@hpctdls.HP.COM (Bill Ives) Newsgroups: comp.lang.c Subject: Re: Allocating Huge Arrays in MSC 5.0 Message-ID: <2150005@hpctdls.HP.COM> Date: 6 Jan 89 14:51:55 GMT References: <1565@virginia.acc.virginia.edu> Organization: Hewlett-Packard CTD, Colo. Spgs. Lines: 18 I believe you're having problems due to the 64K boundry crossing just like you mentioned -- but using /AH will not fix it for you since that tells the compiler how you want to treat pointers NOT data space size. You have to use the halloc() function to allocate any data space larger than 64K ( and have MSC do the pointer manipulations for you ). According to my documentation, if you want an array > 128K you must also ensure that the array element size be a power of 2. Hope this helps ... Bill Ives HP Colorado Telecommunications Division Disclaimer: These are only my opinions, mine mine mine....