This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: modify gcc to handle byteorder issue automatically
- From: Gabriel Dos Reis <gdr at integrable-solutions dot net>
- To: Georgy Yunayev <Georgy dot Yunayev at kaspersky dot com>
- Cc: gcc at gcc dot gnu dot org
- Date: 21 Jul 2003 14:58:59 +0200
- Subject: Re: modify gcc to handle byteorder issue automatically
- Organization: Integrable Solutions
- References: <14320972171.20030721165423@kaspersky.com>
Georgy Yunayev <Georgy.Yunayev@kaspersky.com> writes:
| To simplify this task, I want to patch GCC - either to show me
| "problematic" pieces of code, or even generate special code to
| automatically convert byte order issues.
I would prefer a library extension (in libstdc++-v3 for example) with
primitives that tell the host (i.e. the machine the library is built for,
not to be confused with target) byte ordering scheme. Then,
converting from one ordering to another is "safely" handled by the
library.
-- Gaby