home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.os.os2.programmer
- Path: sparky!uunet!spool.mu.edu!wupost!zaphod.mps.ohio-state.edu!pacific.mps.ohio-state.edu!linac!uchinews!msuinfo!cpsin2.cps.msu.edu!hayes
- From: hayes@cpsin2.cps.msu.edu (Hayes John H)
- Subject: Re: novice gcc/programming question
- Message-ID: <1992Sep15.095659.5525@msuinfo.cl.msu.edu>
- Originator: hayes@cpsin2.cps.msu.edu
- Keywords: gcc gnu
- Sender: news@msuinfo.cl.msu.edu
- Reply-To: hayes@cpsin2.cps.msu.edu (Hayes John H)
- Organization: Dept. of Computer Science, Michigan State University
- References: <BuFo2G.9Bs@acsu.buffalo.edu>
- Date: Tue, 15 Sep 92 09:56:59 GMT
- Lines: 35
-
- #define SIZE 2500
-
- main ( void )
-
- {
- int nums [ SIZE ],
- i;
-
- for ( i = 0; i < SIZE; i++ )
- nums [ i ] = i + 1;
-
- printf ( "COUNT: %d\n%d", i, nums [ i - 1 ] );
- return ( 0 );
- }
-
- This generates an access violation code. A dimension of 1000 ends
- properly. Numbers in the 100000's range cause the system to hang, and
- 1000000 ranges won't even run.
-
- If you have any info please send email or post.
-
- Also, where can I find more information for gcc for os2, like the
- differences for the various packages such as the emx and 2.1 versions,
- and the idiosyncracies that cause the above described errors.
-
- One last question concerns availability of information on link386 and
- how to use it. When it ends, I get the warning that window compat is
- assumed. How do you declare this setting so as to abort the warning?
-
- Thanks, John Hayes - jhh@scss3.cl.msu.edu
- ( If the questions sound trivial, sorry about that, I'm new to the group)
-
-
-
-
-