Subject: Re: CP-007 and CP-008: textio for std_logic_1164
From: Paul J. Menchini (mench@mench.com)
Date: Thu Feb 20 2003 - 12:15:13 PST
David Bishop wrote:
> This brings up another good point. One of the little things that pops
> out of the wood work to bite is the PC "big indian little indian"
> problem. When you write a binary file on a UNIX machine you get:
> ABCD
> If you read that file back on a PC you get:
> DCBA
> Would be nice to have a "binary" switch that could automatically
> convert.
A better way would be for the files to be manifest. That is, there
would be a header that the reader software could pick up on, that says
either "This file was written on a big-endian machine." or "This file
was written on a little-endian machine." That way, the reader could
automatically do the right thing (since it would know what kind of
machine it was on).
Same thing could happen for EOL conventions, etc.
Paul
This archive was generated by hypermail 2b28 : Thu Feb 20 2003 - 12:20:08 PST