Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Compilers LCC > Re: What can I ...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 14 of 23 Topic 955 of 1070
Post > Topic >>

Re: What can I do?

by "Rod Pemberton" <do_not_have@[EMAIL PROTECTED] > Jun 3, 2007 at 12:43 PM

"Richard Tobin" <richard@[EMAIL PROTECTED]
> wrote in message
news:f3uog3$2nor$1@[EMAIL PROTECTED]
> In article <46627d09$1@[EMAIL PROTECTED]
>,
> Rod Pemberton <do_not_have@[EMAIL PROTECTED]
> wrote:
>
> >> Fixing this would have to change drastically the design of the
> >> compiler. In the other hand leaving this as is would leave a
> >> compiler that can crash in some cir***stances.
>
> >Increasing the stack size would require drastic redesign?
>
> Increasing the stack size might solve this particular example, but a
> bigger program would fail in the same way.
>

There are no alternate methods that won't also fail due to resource
limitations within the compiler without changing the stated problem.  He
must increase storage to solve the problem as stated.  This "solution" is
only effective upto the amount of increased storage.

The two key questions to me are:
1) What is the larrgest condition in the "if" that his customer needs?
i.e., keep the stated problem by fixing the compiler stack size
2) Why can't his customer restructure the logic?  i.e., make a change to
the
stated problem to find an alternate working method


For example, why can't his customer generate code like this?

int fn(int a)
{
         int x=0;

         x&=(a == 6 || a == 7 || a == 4 || a == 67 || a == 78);
         x&=(a == 6 || a == 7 || a == 4 || a == 67 || a == 78);
           /* "(4955 lines exactly the same as above elided)" */
         x&=(a == 6 || a == 7 || a == 4 || a == 67 || a == 78);
         x&=(a == 6 || a == 7 || a == 4 || a == 67 || a == 78);

         if (x)
             return 1;
         return 0;
}


Rod Pemberton
 




 23 Posts in Topic:
What can I do?
jacob navia <jacob@[EM  2007-06-03 00:09:22 
Re: What can I do?
Gregor H. <nomail@[EMA  2007-06-03 00:16:04 
Re: What can I do?
Gregor H. <nomail@[EMA  2007-06-03 00:26:29 
Re: What can I do?
Gregor H. <nomail@[EMA  2007-06-03 00:39:23 
Re: What can I do?
jacob navia <jacob@[EM  2007-06-03 09:06:35 
Re: What can I do?
Gregor H. <nomail@[EMA  2007-06-03 15:29:35 
Re: What can I do?
John Nagle <nagle@[EMA  2007-06-02 15:34:37 
Re: What can I do?
Giorgos Keramidas <ker  2007-06-03 15:33:48 
Re: What can I do?
richard@[EMAIL PROTECTED]  2007-06-02 22:23:21 
Re: What can I do?
jacob navia <jacob@[EM  2007-06-03 09:08:00 
Re: What can I do?
Eric Schmidt <eric4129  2007-06-02 16:54:03 
Re: What can I do?
"Rod Pemberton"  2007-06-02 22:28:28 
Re: What can I do?
richard@[EMAIL PROTECTED]  2007-06-03 15:58:59 
Re: What can I do?
"Rod Pemberton"  2007-06-03 12:43:25 
Re: What can I do?
Hallvard B Furuseth <h  2007-06-03 21:22:48 
Re: What can I do?
Cesar Rabak <csrabak@[  2007-06-03 02:18:53 
Re: What can I do?
Keith Thompson <kst-u@  2007-06-03 00:00:00 
Re: What can I do?
jacob navia <jacob@[EM  2007-06-03 09:15:16 
Re: What can I do?
CBFalconer <cbfalconer  2007-06-03 02:09:14 
Re: What can I do?
Dave Hanson <drhanson@  2007-06-03 14:53:50 
Re: What can I do?
Hallvard B Furuseth <h  2007-06-03 21:44:46 
Re: What can I do?
Keith Thompson <kst-u@  2007-06-03 13:08:36 
Re: What can I do?
"christian.bau"  2007-06-03 14:32:10 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Sat Oct 11 14:54:42 CDT 2008.