> ideally C, albeit C++ could be Ok, but NO assembly.
> implementations in other languages (e.g., Java) which could
> be used as a model and reference for a C version would be Ok.
as a guess this stuff usualy isn't that easy to implement in any efficent
sense with C or C++, (same reason as network checksums are usually inline
asm, getting the carry bit in C is inefficent..
> Google(TM) has not (yet) been of much help here. (I suppose
> the GCC support library might have something like this?)
Ah with google you have to keep digging.. have a look at .
http://compilers.iecc.com/comparch/article/01-06-011
Dave.
--
David Airlie, Software Engineer
http://www.skynet.ie/~airlied / airlied at skynet.ie
pam_smb / Linux DECstation / Linux VAX / ILUG person
Maintained by the ILUG website team. The aim of Linux.ie is to
support and help commercial and private users of Linux in Ireland. You can
display ILUG news in your own webpages, read backend
information to find out how. Networking services kindly provided by HEAnet, server kindly donated by
Dell. Linux is a trademark of Linus Torvalds,
used with permission. No penguins were harmed in the production or maintenance
of this highly praised website. Looking for the
Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!