Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.compilers > #498

Re: Adding Blank Line In Source Causes Change In Executable

From Robert A Duff <bobduff@shell01.TheWorld.com>
Newsgroups comp.compilers
Subject Re: Adding Blank Line In Source Causes Change In Executable
Date 2012-03-13 09:34 -0400
Organization The World Public Access UNIX, Brookline, MA
Message-ID <12-03-031@comp.compilers> (permalink)
References <12-03-007@comp.compilers> <12-03-010@comp.compilers> <12-03-028@comp.compilers>

Show all headers | View raw


HOKIENERD <hokienerd@gmail.com> writes:

> It absolutely is the line number. (Thanks for the tip.)

You're welcome.

>... I hope to get
> to the assembly code before too long. I sure wish I could keep the
> check, but lose the line number!

Why?

I understand why one wants identical source code to produce
identical object files, and identical executable files.
(I don't like object file formats that include things
like time-of-compilation!)
But if you add blank lines, the source is no longer identical.
Surely that line number is useful, if the check ever fails.

There's an option to gnatmake that causes it to not recompile
things if the changes were trivial (e.g. whitespace and comment
changes), but then the debugging information will be slightly off.

- Bob

Back to comp.compilers | Previous | NextPrevious in thread | Next in thread | Find similar


Thread

Adding Blank Line In Source Causes Change In Executable "Morris, John M CIV NSWCDD, Q34" <john.m.morris@navy.mil> - 2012-03-06 08:32 -0500
  Re: Adding Blank Line In Source Causes Change In Executable glen herrmannsfeldt <gah@ugcs.caltech.edu> - 2012-03-06 19:51 +0000
  Re: Adding Blank Line In Source Causes Change In Executable Robert A Duff <bobduff@shell01.TheWorld.com> - 2012-03-06 16:25 -0500
    Re: Adding Blank Line In Source Causes Change In Executable HOKIENERD <hokienerd@gmail.com> - 2012-03-12 07:36 -0700
      Re: Adding Blank Line In Source Causes Change In Executable Robert A Duff <bobduff@shell01.TheWorld.com> - 2012-03-13 09:34 -0400
        Re: Adding Blank Line In Source Causes Change In Executable glen herrmannsfeldt <gah@ugcs.caltech.edu> - 2012-03-14 05:26 +0000
        Re: Adding Blank Line In Source Causes Change In Executable HOKIENERD <hokienerd@gmail.com> - 2012-03-26 07:33 -0700
          Re: Adding Blank Line In Source Causes Change In Executable Robert A Duff <bobduff@shell01.TheWorld.com> - 2012-03-26 13:36 -0400

csiph-web