This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Option to print word size, alignment on the target platform
On 1/25/06, Robert Dewar <dewar@adacore.com> wrote:
> A convenient way to get the endianness is to use
> the System.Bit_Order attribute in Ada.
But this requires to run the program on the target which is not
possible with a cross-compiler. Or is there a trick to declare
something in Ada that would force the program to miscompile depending
on the target endianness?
Regards, Igor