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


Mac > Mac Programmer > Re: Something i...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 12 of 12 Topic 995 of 1040
Post > Topic >>

Re: Something is stepping on something

by Reinder Verlinde <reinder@[EMAIL PROTECTED] > Feb 14, 2008 at 06:43 PM

In article <61j175F1svdtbU1@[EMAIL PROTECTED]
>,
 Paul Russell <prussell@[EMAIL PROTECTED]
> wrote:

> Robert Peirce wrote:
> > 
> > Folks, please give me a break.  This stuff is legacy software, written

> > over 30 years ago and changed only enough to ****t it to new machines. 

> > In this case I did make that change and the code works properly
> > 
> > [resume snipped]
> > 
> 
> It wasn't meant to be a criticism, just a suggestion. You should never 
> assume anything about the layout of variables in memory - it can change 
> not only between different machines and different compilers but also 
> between different builds (e.g. if you change compiler switches). Rather 
> than repeatedly "fixing" these problems on an ad hoc basis you could 
> just invest a little time making the code more robust - it would 
> probably be a net win in the long run.

I second both the "it is just a suggestion", and the "still, I repeat 
that suggestion" parts. This does not have to mean staring for hours at 
the source. There are tools that can help here, such as clint 
(<http://sourceforge.net/projects/clint/>)
and/or valgrind 
(<http://valgrind.org/>)
variant. The things these tools re****t might 
even help you solve some "it crashes once in a while", "the results look 
odd once in a while" or "it does not work when I enable compiler 
optimization" issues.

Reinder
 




 12 Posts in Topic:
Something is stepping on something
Robert Peirce <bob@[EM  2008-02-12 22:55:42 
Re: Something is stepping on something
Reinder Verlinde <rein  2008-02-13 00:19:07 
Re: Something is stepping on something
Robert Peirce <bob@[EM  2008-02-13 02:19:37 
Re: Something is stepping on something
Gregory Weston <uce@[E  2008-02-12 20:37:55 
Re: Something is stepping on something
Sean McBride <cwatson@  2008-02-12 21:34:38 
Re: Something is stepping on something
Robert Peirce <bob@[EM  2008-02-13 02:41:00 
Re: Something is stepping on something
Robert Peirce <bob@[EM  2008-02-13 02:48:56 
Re: Something is stepping on something
Paul Russell <prussell  2008-02-13 09:51:12 
Re: Something is stepping on something
Robert Peirce <bob@[EM  2008-02-14 14:12:00 
Re: Something is stepping on something
Paul Russell <prussell  2008-02-14 14:23:31 
Re: Something is stepping on something
Robert Peirce <bob@[EM  2008-02-14 17:36:16 
Re: Something is stepping on something
Reinder Verlinde <rein  2008-02-14 18:43:59 

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 Nov 22 9:43:23 CST 2008.