Re: Question C code compilation
From: kishuri (kishuri_at_hotmail.com)
Date: 08/04/03
- Next message: Steve Watt: "Re: Question C code compilation"
- Previous message: Thomas Klingbeil: "MIPS VR4122 (in JVC MP-C33 Handheld PC) and Linux?"
- Next in thread: Steve Watt: "Re: Question C code compilation"
- Reply: Steve Watt: "Re: Question C code compilation"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: 3 Aug 2003 23:05:38 -0700
steve@nospam.Watt.COM (Steve Watt) wrote in message news:<HIpMrA.rw0@Watt.COM>...
> In article <72e486b0.0307271630.7f6203c2@posting.google.com>,
> kishuri <kishuri@hotmail.com> wrote:
> >Hi All,
> >
> >I wrote simple program to print "Hi how are you" 100,000 times and
> >compiled on Redhat Linux.
> >
> >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? [ ... ]
>
> Because you didn't wait long enough.
>
> > what would be the
> >best approach other than splitting the code.
>
> A for loop?
>
> What's the real problem you're trying to solve? Are you trying to
> figure out what the largest program you can compile is?
>
> For that matter, what does this have to do with embedded systems?
I know your embedded world is different. However, every embedded
systems do need a compiler and an operating system. This Question
falls under these two sections of embedded systems. Are not there any
better way to generate code, why does it fail or take longer when
compiling huge function like here main()? How long your embedded OS
take to compile this. If fails, how can you fix it? Think over it
before questioning others.
thanks,
kishuri
- Next message: Steve Watt: "Re: Question C code compilation"
- Previous message: Thomas Klingbeil: "MIPS VR4122 (in JVC MP-C33 Handheld PC) and Linux?"
- Next in thread: Steve Watt: "Re: Question C code compilation"
- Reply: Steve Watt: "Re: Question C code compilation"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|