C program question and os limitation?
From: kishuri (kishuri_at_hotmail.com)
Date: 07/28/03
- Next message: Robert: "Re: Compiling kernel 2.4.22pre<latest> errors WAS: HFS+ Driver"
- Previous message: johninsd at san dot rr dot com: "Re: Reading lilo.conf info from boot sector"
- Next in thread: Artie Gold: "Re: C program question and os limitation?"
- Reply: Artie Gold: "Re: C program question and os limitation?"
- Reply: David W Noon: "Re: C program question and os limitation?"
- Reply: Erik de Castro Lopo: "Re: C program question and os limitation?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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
- Next message: Robert: "Re: Compiling kernel 2.4.22pre<latest> errors WAS: HFS+ Driver"
- Previous message: johninsd at san dot rr dot com: "Re: Reading lilo.conf info from boot sector"
- Next in thread: Artie Gold: "Re: C program question and os limitation?"
- Reply: Artie Gold: "Re: C program question and os limitation?"
- Reply: David W Noon: "Re: C program question and os limitation?"
- Reply: Erik de Castro Lopo: "Re: C program question and os limitation?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|