public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
From: Aspertame Man <AspertameMan@att.net>
To: Joern Rennecke <amylaar@spamcop.net>
Cc: gcc@gnu.org
Subject: Re: A possible super feature to add to gcc
Date: Mon, 06 Dec 2010 11:49:00 -0000	[thread overview]
Message-ID: <1291636116.1605.81.camel@netbook> (raw)
In-Reply-To: <20101205180415.t3cf4yx7pcw84gcw-nzlynne@webmail.spamcop.net>

After looking on the internet on the term "dumping core" I noticed that
one had to write a piece of code to cause the crash.
I noted that one had to know what to do to cause the crash to get the
dump and gathered that while computer scientists and most engineers know
how to do this, it is not so obvious to say biologists, chemists,
physicists and other users of compilers for their research. Simply
building in a small standardized intrinsic function name to a common
crash function that computer scientists might write to cause a core dump
would make the compiler more user friendly to the non computer science
crowd. Instead of fdump call it "coredump".
Second there are applications that can take hours to days to execute.
These sorts of programs are not well suited for debug with an
interactive debugger because of the time reason. One may likely have to
wait a long time to interactively tell the program to "resume" and
possibly multiple  times. With coredump() the argument could be used to
tell the program whether or not to resume and then the programmer could
be in a meeting instead of monitoring an interactive debugger to resume.
This would be even more useful if the programmer wanted to make a call
to coredump() at multiple places in the program in a single execution
and the scientific program may take a very long time to run unlike
computer science operating systems.

Standardizing a coredump intrinsic function with an argument that can
trigger invoking a compiler option to resume cant take more that a
couple hours by a good programer thereby adding some user friendly fit
and finish for the non computer scientist crowd.

I'm out of the loop unless addressed directly



On Sun, 2010-12-05 at 18:04 -0500, Joern Rennecke wrote:
Quoting Aspertame Man <AspertameMan@att.net>:
> 
> >
> >  Back in the 1970's when we ran fortran on an IBM machine we had
this
> >  really powerful command called CALL FDUMP that if inserted into a
> >  program would send the names and values of every variable, at the
time
> >  of its call, to a printer or file. In my opinion this was much more
> >  useful at times than a symbolic debugger, in scientific number
crunching
> >  applications.
> 
> I don't see how this would  be better than dumping core and resuming  
> execution.
> I suppose you might even do a fork before dumping core, that might
speed up
> if you have multiple CPU cores and copy-on-write memory semantics.
> 

  reply	other threads:[~2010-12-06 11:49 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-12-05 20:30 Aspertame Man
2010-12-05 20:41 ` Basile Starynkevitch
2010-12-05 23:04 ` Joern Rennecke
2010-12-06 11:49   ` Aspertame Man [this message]
2010-12-06 11:52     ` Richard Kenner
2010-12-06 12:20     ` Andreas Schwab
2010-12-06 16:44 ` Frank Ch. Eigler

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1291636116.1605.81.camel@netbook \
    --to=aspertameman@att.net \
    --cc=amylaar@spamcop.net \
    --cc=gcc@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).