[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] Re: strange crash on FreeBSD-current/amd64 (pointertrun
From: |
Rob Landley |
Subject: |
Re: [Qemu-devel] Re: strange crash on FreeBSD-current/amd64 (pointertruncation?) |
Date: |
Fri, 9 Feb 2007 17:31:29 -0500 |
User-agent: |
KMail/1.9.1 |
On Friday 09 February 2007 2:06 am, Gwenole Beauchesne wrote:
> In particular, and likely not limited to, a reasonnable C++ ABI
I don't do C++, but Garrett the uClibc++ maintainer used to be at the desk
next to mine. He would find this statment hilarious.
Among other things, any _sane_ C++ ABI will deal with nested classes and
namespaces by listing the innermost one first, so that when you have:
parent1.parent2.parent3.child.member
parent1.parent2.parent3.child.walrus
parent1.parent2.parent3.child.thingy
You don't strcmp your way through 80 bytes of guaranteed-to-be-identical data
every time you want to do linking or RTTI or anything that needs to find a
symbol. This is just one random example of how the people who were doing
this weren't THINKING.
I'll stop now.
Rob
--
"Perfection is reached, not when there is no longer anything to add, but
when there is no longer anything to take away." - Antoine de Saint-Exupery