|
|
Darren New wrote:
> Warp wrote:
>> Darren New <dne### [at] sanrrcom> wrote:
>>> outint'endian = little;
>>
>> Exactly which language is this?
>
> Ada. I am pretty sure it supports this.
It turns out the syntax is
(The ' indicates a compile-time value, in much the same sense that
sizeof() is a compile-time function in C. Ada lets you read dozens of
these and set others, like the address, volitility, atomicity, etc.)
It also turns out it's not *quite* so straightforward especially for .
But clearly it's better to let the compiler do it in cases where it can
than to code different routines with #ifdef in there. Autoconf doesn't
make C portable - it rewrites your code to be non-portable to that
specific machine. :-)
--
Darren New / San Diego, CA, USA (PST)
"That's pretty. Where's that?"
"It's the Age of Channelwood."
"We should go there on vacation some time."
Post a reply to this message
|
|