Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > C Programming > What happens when your program crashes?

Reply
Thread Tools

What happens when your program crashes?

 
 
Kelsey Bjarnason
Guest
Posts: n/a
 
      03-23-2008
On Sat, 22 Mar 2008 18:33:03 -0700, Keith Thompson wrote:

> CBFalconer <> writes:
>> Harald van D?k wrote:
>> ... snip ...
>>>
>>> No. jacob gave the source code size because he was directly asked for
>>> the source code size. santosh asked: "What would be the size of
>>> download of the full sources for lcc-win32?" jacob could have answered
>>> with "There is no download of the full sources for lcc-win32, you
>>> can't ask for the size of something that doesn't exist!!", but that
>>> would have been unhelpful and annoying. Instead, he answered santosh's
>>> question. I don't see why you're reading any more into it.

>>
>> Because, in an earlier message, Jacob specifically brought up the
>> subject of the source code and its size. It doesn't really matter,
>> since I assume it to be meaningless, because not available.

>
> It seem to me that source code size is a perfectly valid (though
> imprecise) metric for the complexity and maintainability of a piece of
> softwre, whether the source code is available or not.


Rather depends on the coding style of the developer, no?

Given the same problem, one developer may produce a small program, say
20-30 lines, while another produces 200-300 lines. Which is more
maintainable? No way to tell without seeing; the 200+ line program may
be excessively bloated, or the 20+ line program may be unmaintainably
terse. Or both, or neither.

 
Reply With Quote
 
 
 
 
jacob navia
Guest
Posts: n/a
 
      03-23-2008
Kelsey Bjarnason wrote:
> On Sat, 22 Mar 2008 18:33:03 -0700, Keith Thompson wrote:
>
>> CBFalconer <> writes:
>>> Harald van D?k wrote:
>>> ... snip ...
>>>> No. jacob gave the source code size because he was directly asked for
>>>> the source code size. santosh asked: "What would be the size of
>>>> download of the full sources for lcc-win32?" jacob could have answered
>>>> with "There is no download of the full sources for lcc-win32, you
>>>> can't ask for the size of something that doesn't exist!!", but that
>>>> would have been unhelpful and annoying. Instead, he answered santosh's
>>>> question. I don't see why you're reading any more into it.
>>> Because, in an earlier message, Jacob specifically brought up the
>>> subject of the source code and its size. It doesn't really matter,
>>> since I assume it to be meaningless, because not available.

>> It seem to me that source code size is a perfectly valid (though
>> imprecise) metric for the complexity and maintainability of a piece of
>> softwre, whether the source code is available or not.

>
> Rather depends on the coding style of the developer, no?
>
> Given the same problem, one developer may produce a small program, say
> 20-30 lines, while another produces 200-300 lines. Which is more
> maintainable? No way to tell without seeing; the 200+ line program may
> be excessively bloated, or the 20+ line program may be unmaintainably
> terse. Or both, or neither.
>


For a single program yes. But for the source code of several programs,
each of them of a certain complexity, that is no longer the case.

The code is terse, yes, I do not like bloated code, but it is much more
maintainable than 10 times more code *of course*

Have you looked into gcc's code?

Have you ever tried to debug it?

Go ahead and you will find why lcc-win is much more easy!



--
jacob navia
jacob at jacob point remcomp point fr
logiciels/informatique
http://www.cs.virginia.edu/~lcc-win32
 
Reply With Quote
 
 
 
 
Richard
Guest
Posts: n/a
 
      03-23-2008
Kelsey Bjarnason <> writes:

> On Sat, 22 Mar 2008 18:33:03 -0700, Keith Thompson wrote:
>
>> CBFalconer <> writes:
>>> Harald van D?k wrote:
>>> ... snip ...
>>>>
>>>> No. jacob gave the source code size because he was directly asked for
>>>> the source code size. santosh asked: "What would be the size of
>>>> download of the full sources for lcc-win32?" jacob could have answered
>>>> with "There is no download of the full sources for lcc-win32, you
>>>> can't ask for the size of something that doesn't exist!!", but that
>>>> would have been unhelpful and annoying. Instead, he answered santosh's
>>>> question. I don't see why you're reading any more into it.
>>>
>>> Because, in an earlier message, Jacob specifically brought up the
>>> subject of the source code and its size. It doesn't really matter,
>>> since I assume it to be meaningless, because not available.

>>
>> It seem to me that source code size is a perfectly valid (though
>> imprecise) metric for the complexity and maintainability of a piece of
>> softwre, whether the source code is available or not.

>
> Rather depends on the coding style of the developer, no?
>
> Given the same problem, one developer may produce a small program, say
> 20-30 lines, while another produces 200-300 lines. Which is more
> maintainable? No way to tell without seeing; the 200+ line program may
> be excessively bloated, or the 20+ line program may be unmaintainably
> terse. Or both, or neither.


That is rather stating the obvious.

But size of the C source is probably quite relevant, generally, to how
difficult or large the job of maintaining it is.

As Keith said "imprecise" - but to ridicule it as being applicable is
being ridiculous.
 
Reply With Quote
 
Richard Heathfield
Guest
Posts: n/a
 
      03-24-2008
Kelsey Bjarnason said:

> On Sat, 22 Mar 2008 18:33:03 -0700, Keith Thompson wrote:
>

<snip>
>>
>> It seem to me that source code size is a perfectly valid (though
>> imprecise) metric for the complexity and maintainability of a piece of
>> softwre, whether the source code is available or not.

>
> Rather depends on the coding style of the developer, no?
>
> Given the same problem, one developer may produce a small program, say
> 20-30 lines, while another produces 200-300 lines. Which is more
> maintainable? No way to tell without seeing; the 200+ line program may
> be excessively bloated, or the 20+ line program may be unmaintainably
> terse. Or both, or neither.


Whilst that is true, such differences will in most cases be swamped in
larger systems.

I have found, *in general*, that the complexity and maintenance cost of a
system are roughly in proportion to its size. This is hardly surprising.
Nor is it surprising that there are occasional exceptions.

--
Richard Heathfield <http://www.cpax.org.uk>
Email: -http://www. +rjh@
Google users: <http://www.cpax.org.uk/prg/writings/googly.php>
"Usenet is a strange place" - dmr 29 July 1999
 
Reply With Quote
 
santosh
Guest
Posts: n/a
 
      03-24-2008
jacob navia wrote:

> Kelsey Bjarnason wrote:
>> On Sat, 22 Mar 2008 18:33:03 -0700, Keith Thompson wrote:
>>
>>> CBFalconer <> writes:
>>>> Harald van D?k wrote:
>>>> ... snip ...
>>>>> No. jacob gave the source code size because he was directly asked
>>>>> for the source code size. santosh asked: "What would be the size
>>>>> of download of the full sources for lcc-win32?" jacob could have
>>>>> answered with "There is no download of the full sources for
>>>>> lcc-win32, you can't ask for the size of something that doesn't
>>>>> exist!!", but that would have been unhelpful and annoying.
>>>>> Instead, he answered santosh's question. I don't see why you're
>>>>> reading any more into it.
>>>> Because, in an earlier message, Jacob specifically brought up the
>>>> subject of the source code and its size. It doesn't really matter,
>>>> since I assume it to be meaningless, because not available.
>>> It seem to me that source code size is a perfectly valid (though
>>> imprecise) metric for the complexity and maintainability of a piece
>>> of softwre, whether the source code is available or not.

>>
>> Rather depends on the coding style of the developer, no?
>>
>> Given the same problem, one developer may produce a small program,
>> say
>> 20-30 lines, while another produces 200-300 lines. Which is more
>> maintainable? No way to tell without seeing; the 200+ line program
>> may be excessively bloated, or the 20+ line program may be
>> unmaintainably
>> terse. Or both, or neither.
>>

>
> For a single program yes. But for the source code of several programs,
> each of them of a certain complexity, that is no longer the case.
>
> The code is terse, yes, I do not like bloated code, but it is much
> more maintainable than 10 times more code *of course*
>
> Have you looked into gcc's code?
>
> Have you ever tried to debug it?
>
> Go ahead and you will find why lcc-win is much more easy!


But comparing gcc with lcc-win isn't really fair is it? Quite apart from
the fact that we have no access to lcc-win's source to *make* a
comparison at all, gcc is bigger and more complex source-wise, probably
because it does a whole lot more. It's backend has been ported to
dozens of chips and it does a lot more optimisations than lcc-win. It's
probably also been designed to be more extendable than lcc-win.

 
Reply With Quote
 
Keith Thompson
Guest
Posts: n/a
 
      03-24-2008
Kelsey Bjarnason <> writes:
> On Sat, 22 Mar 2008 18:33:03 -0700, Keith Thompson wrote:

[...]
>> It seem to me that source code size is a perfectly valid (though
>> imprecise) metric for the complexity and maintainability of a piece of
>> softwre, whether the source code is available or not.

>
> Rather depends on the coding style of the developer, no?
>
> Given the same problem, one developer may produce a small program, say
> 20-30 lines, while another produces 200-300 lines. Which is more
> maintainable? No way to tell without seeing; the 200+ line program may
> be excessively bloated, or the 20+ line program may be unmaintainably
> terse. Or both, or neither.


Of course. The word "imprecise" was intended to cover all that.

--
Keith Thompson (The_Other_Keith) <kst->
Nokia
"We must do something. This is something. Therefore, we must do this."
-- Antony Jay and Jonathan Lynn, "Yes Minister"
 
Reply With Quote
 
mrhassell
Guest
Posts: n/a
 
      03-24-2008
I guess the point of having a fair idea about what you are trying to
acheive before setting out to write a singlew line of code, would be
prudent to assume in the first instance?
 
Reply With Quote
 
Kelsey Bjarnason
Guest
Posts: n/a
 
      03-24-2008
[snips]

On Sun, 23 Mar 2008 22:03:39 +0100, jacob navia wrote:

> For a single program yes. But for the source code of several programs,
> each of them of a certain complexity, that is no longer the case.


Really. You never looked at Jeff Relf's code, then, saw all the screwed-
up macros and whatnot, which made virtually everything he did
unmaintainable?

Oh, right, there's a magic force which prevents those macros being used
in other programs, I forgot. Silly me.

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: What happens to your email when you die? cully when Computer Support 3 11-06-2009 02:40 PM
What happens when type conversion between signed and unsigned happens? NM C++ 6 09-20-2006 05:39 PM
anyone know of any good gran canaria pages where your told of all that happens in island from folk in forums edwardo Computer Support 2 09-09-2006 08:27 AM
OT: Here's What Happens When you Hire Paper Certs T-Bone MCSE 1 11-16-2005 08:02 PM
ZoneAlarm has detected a problem with your installation, and therefore has restricted Internet access from your machine for your protection. Don’t panic A Teuchter Computer Support 2 05-19-2005 09:20 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57