Re: C program question and os limitation?
From: Artie Gold (artiegold_at_austin.rr.com)
Date: 07/28/03
- Next message: udayan: "Re: Simple code to read floppy *without* driver"
- Previous message: Robert: "Re: Compiling kernel 2.4.22pre<latest> errors WAS: HFS+ Driver"
- In reply to: kishuri: "C program question and os limitation?"
- Next in thread: kishuri: "Re: C program question and os limitation?"
- Reply: kishuri: "Re: C program question and os limitation?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Mon, 28 Jul 2003 02:50:45 GMT
kishuri wrote:
> 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.
>
>
How much (physical) memory do you have on your machine? I would suspect
you're in `swapping hell'.
It has nothing directly to do with any OS limitations.
HTH,
--ag
[Technically, your question is barely appropriate for this newsgroup;
news:comp.os.linux.development.system really concerns itself with kernel
and kernel-related issues.]
-- Artie Gold -- Austin, Texas
- Next message: udayan: "Re: Simple code to read floppy *without* driver"
- Previous message: Robert: "Re: Compiling kernel 2.4.22pre<latest> errors WAS: HFS+ Driver"
- In reply to: kishuri: "C program question and os limitation?"
- Next in thread: kishuri: "Re: C program question and os limitation?"
- Reply: kishuri: "Re: C program question and os limitation?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|