comp.lang.ada
 help / color / mirror / Atom feed
From: "Randy Brukardt" <randy@rrsoftware.com>
Subject: Re: From 16 bit to 32
Date: Mon, 14 Jan 2013 18:44:26 -0600
Date: 2013-01-14T18:44:26-06:00	[thread overview]
Message-ID: <kd28pc$2pi$1@munin.nbi.dk> (raw)
In-Reply-To: d3fc4db9-a940-47c2-91c3-84b457d733a4@googlegroups.com

"Adam Beneschan" <adam@irvine.com> wrote in message 
news:d3fc4db9-a940-47c2-91c3-84b457d733a4@googlegroups.com...
...
>I don't think you'll be able to get around changing everything.  If you 
>give a representation
>clause for a record component that isn't big enough to hold the component, 
>the program
>won't compile.  Maybe there's an Ada compiler with an option to ignore 
>representation clauses,
>but I don't know of any.

GNAT has (or had?) such an option. (I saw it Friday when I was looking 
through the list of GNAT options to see what options I need to compile with 
on my new server. Let's see, I only have an older GNAT manual on this 
computer, and it says -gnatI means "Ignore representation clauses". I'd 
check that out on your own copy of GNAT before using, but it might be a good 
way for the OP to determine what other things that they need to change.

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 could ask why your compiler and my compiler don't have such a useful 
switch. :-) But surely there is a compiler than has it.

                                                  Randy.







  parent reply	other threads:[~2013-01-15  0:44 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 [this message]
2013-01-15 14:40     ` Robert A Duff
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