comp.lang.ada
 help / color / mirror / Atom feed
From: Robert A Duff <bobduff@shell01.TheWorld.com>
Subject: Re: From 16 bit to 32
Date: Tue, 15 Jan 2013 09:40:45 -0500
Date: 2013-01-15T09:40:45-05:00	[thread overview]
Message-ID: <wcctxqio6fm.fsf@shell01.TheWorld.com> (raw)
In-Reply-To: kd28pc$2pi$1@munin.nbi.dk

"Randy Brukardt" <randy@rrsoftware.com> writes:

> It specifically exists for a case like the OP's. According to the 
> documentation:
>
> -gnatI
> Ignore representation clauses. When this switch is used, all representation 
> clauses are treated as comments. This is useful when initially porting code 
> where you want to ignore rep clause problems, and also for compiling foreign 
> code (particularly for use with ASIS).

You can use it for experiments, but it's a dangerous switch.  If you
have nonportable code that you need to port, it's better to dig in
and fix it.  I rewrote the above documentation a while back, to make
it sound a bit less appealing.  The latest version says:

 `-gnatI'
      Ignore representation clauses. When this switch is used,
      representation clauses are treated as comments. This is useful
      when initially porting code where you want to ignore rep clause
      problems, and also for compiling foreign code (particularly for
      use with ASIS). The representation clauses that are ignored are:
      enumeration_representation_clause, record_representation_clause,
      and attribute_definition_clause for the following attributes:
      Address, Alignment, Bit_Order, Component_Size, Machine_Radix,
      Object_Size, Size, Small, Stream_Size, and Value_Size.  Note that
      this option should be used only for compiling - the code is likely
      to malfunction at run time.

We sometimes use it when running CodePeer, for example -- that's what
"only for compiling" means.

I also fixed some bugs.  I think it was ignoring things like
"for T'Write use...", which makes even less sense.  Or something
like that.

- Bob



  reply	other threads:[~2013-01-15 14:40 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-01-14 20:21 From 16 bit to 32 Scott Loyd
2013-01-14 20:52 ` Adam Beneschan
2013-01-14 21:09   ` Scott Loyd
2013-01-15 22:27     ` Stephen Leake
2013-01-15  0:14   ` Georg Bauhaus
2013-01-15  0:34     ` Adam Beneschan
2013-01-15  2:40       ` Jeffrey Carter
2013-01-15  0:44   ` Randy Brukardt
2013-01-15 14:40     ` Robert A Duff [this message]
2013-01-15 15:47       ` Scott Loyd
2013-01-15 19:12         ` J-P. Rosen
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox