home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / comp / os / os2 / programm / 4962 < prev    next >
Encoding:
Text File  |  1992-09-14  |  1.6 KB  |  50 lines

  1. Newsgroups: comp.os.os2.programmer
  2. 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
  3. From: hayes@cpsin2.cps.msu.edu (Hayes John H)
  4. Subject: Re: novice gcc/programming question
  5. Message-ID: <1992Sep15.095659.5525@msuinfo.cl.msu.edu>
  6. Originator: hayes@cpsin2.cps.msu.edu
  7. Keywords: gcc gnu
  8. Sender: news@msuinfo.cl.msu.edu
  9. Reply-To: hayes@cpsin2.cps.msu.edu (Hayes John H)
  10. Organization: Dept. of Computer Science, Michigan State University
  11. References: <BuFo2G.9Bs@acsu.buffalo.edu>
  12. Date: Tue, 15 Sep 92 09:56:59 GMT
  13. Lines: 35
  14.  
  15. #define SIZE 2500
  16.  
  17. main ( void )
  18.  
  19. {
  20.         int nums [ SIZE ],
  21.               i;
  22.  
  23.         for ( i = 0; i < SIZE; i++ )
  24.           nums [ i ] = i + 1;
  25.  
  26.         printf ( "COUNT: %d\n%d", i, nums [ i - 1 ] );
  27.         return ( 0 );
  28. }
  29.  
  30. This generates an access violation code. A dimension of 1000 ends
  31. properly. Numbers in the 100000's range cause the system to hang, and 
  32. 1000000 ranges won't even run.
  33.  
  34. If you have any info please send email or post.
  35.  
  36. Also, where can I find more information for gcc for os2, like the
  37. differences for the various packages such as the emx and 2.1 versions,
  38. and the idiosyncracies that cause the above described errors.
  39.  
  40. One last question concerns availability of information on link386 and
  41. how to use it. When it ends, I get the warning that window compat is
  42. assumed. How do you declare this setting so as to abort the warning?
  43.  
  44. Thanks, John Hayes - jhh@scss3.cl.msu.edu
  45. ( If the questions sound trivial, sorry about that, I'm new to the group)
  46.  
  47.  
  48.  
  49.  
  50.