C program question and os limitation?

From: kishuri (kishuri_at_hotmail.com)
Date: 07/28/03


Date: 27 Jul 2003 17:35:40 -0700

Hi All,

I wrote simple program to print "Hi how are you" 100,000 times and
compiled on Redhat Linux 9.0

test.c

  main()
    {
       printf("Hi How are you");
         .
         .
         .
       /*Repeated printf for more one hundread thousand times */
    }

then

did #make test
  cc test.c -o test

this command did NOT exit for more than half hour, later I did
control-c to exit.

Please tell me why I can't compile this long code?, what would be the
best approach other than splitting the code.

I would appreciate your answer talking in terms of OS limitations,
compiler and language standards. Please don't suggest to optimize code
using loops which I am very much aware.

thanks
kishuri



Relevant Pages

  • Re: Question C code compilation
    ... >compiled on Redhat Linux. ... >this command did NOT exit for more than half hour, ... >control-c to exit. ... figure out what the largest program you can compile is? ...
    (comp.os.linux.embedded)
  • Re: My COBDATA problem
    ... Here is an extract from my COBDATA download. ... Does such compile under Fujitsu ... EXIT PERFORM only appears once in COBDATA. ... from select input-file assign to 'c:\cobdata.in' ...
    (comp.lang.cobol)
  • Re: LEAVE
    ... If definitions were nestable I could have DO do:NONAME and compile ... the xt into the outside definition, and then LEAVE could do EXIT. ...
    (comp.lang.forth)
  • Re: Thank You -- Thomas J. Gritzan
    ... void main ... long *buffer; ... exit(1); ... Someone did not even take the effort to compile their own example!! ...
    (comp.lang.c)
  • SUMMARY: Complilng VPNC
    ... will be overwritten by vpnc # as long as the above mark is intact" ... I'm trying to connect an Solaris 10 x86 system to a Cisco VPN. ... Has someone gotten this beast to compile or should I just go with openvpn? ...
    (SunManagers)