Article View: comp.sys.atari.st
Article #32836MWC & large arrays -- help!
From: Paul Close
Date: Sat, 11 Jun 1988 05:10
Date: Sat, 11 Jun 1988 05:10
26 lines
1412 bytes
1412 bytes
I'm having problems with the following construct:
struct x {
blah, blah ...
struct y arr[64][64];
};
where struct y is pretty small. I've checked the "sizeof" on a Sun-3 with
the ints = shorts, and the sizeof(struct x) was 65500 or so -- just under
64k. However, MWC complains about the size being too big until I trim it
down to ~16000 bytes! The exact error is from cc0, and reads: "size of
struct too large". Using 3.0, I also got a message about size_t.
This is just the definition -- the actual storage is malloced. (Am I in
trouble using malloc()? I know Malloc has bugs, but how is malloc()?)
Can some of you MWC gurus help me here? I am quite familiar with C, but
this is my first big program on the ST. BTW, this isn't a program I
wrote, I'm just experimenting with porting....
Thanks all!
--
Paul Close paul@cacilj.CTS.COM ...!{uunet, ucsd, crash}!cacilj!paul
Shaw's Principle:
Build a system that even a fool can use, and only a fool will want to use it.
Technical Details
Message-ID:
<734@cacilj.UUCP>Path:
arc1-ca.pugleaf.net!utzoo!attcan!uunet!lll-winken!lll-lcc!ames!pasteur!ucbvax!decwrl!hplabs!hp-sdd!ncr-sd!crash!cacilj!paulShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!lll-winken!lll-lcc!ames!pasteur!ucbvax!decwrl!hplabs!hp-sdd!ncr-sd!crash!cacilj!paul From: paul@cacilj.UUCP (Paul Close) Newsgroups: comp.sys.atari.st Subject: MWC & large arrays -- help! Keywords: why? Message-ID: <734@cacilj.UUCP> Date: 11 Jun 88 05:10:55 GMT Reply-To: paul@cacilj.UUCP (Paul Close) Organization: CACI Products Company, La Jolla, CA Lines: 25