site_archiver@lists.apple.com Delivered-To: darwin-dev@lists.apple.com Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:cc:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=kT4wzd/HeZPHYfsnoKcNhJIyRp27O9s9KzzR8S7mkCY=; b=hos5vaEeVWLLHFlb75tFCRMhH4dFMfgSrfa6mFbZNFrF7utP27vuTtLvrJiNNpEg6r a3I+ektA3eYGLfZIRC15VW2su8YprErphn3xPkKozh1zdxd20W6C1NfEh0Ho8FMBNCXi ycoI+Beug+kkMx6pYEFcGIo361romrMWzYjrc= Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=p3SbpZHVlT2d/t9UOIpsr10t0/QBkjWhZ2xw7X+7DoBiERWEbS/aOdR8OcgB552OQv 0gwi+CamIPl4HKYR/vJzRSFaGkYK9am9Pf7iyQg3E1k362yKYp+IXgpXJAuhPjdJaWXT 5yTNOurh5ztpHeEend6xltcTZldOmtRjXBy7Y= On Mon, Jun 30, 2008 at 6:38 AM, J. Aaron Pendergrass <james.pendergrass@jhuapl.edu> wrote:
I'm aware that this is undefined. I did explicitly say that the C spec leaves this unspecified. But {1,2,7,4} seems like such an odd choice. Especially when looking at the disassembly:
lwz r2,56(r30) addi r2,r2,-8 lwz r9,0(r2) lwz r2,56(r30) addi r0,r2,-4 stw r0,56(r30) lwz r2,56(r30) lwz r0,0(r2) add r0,r9,r0 lwz r2,56(r30) addi r2,r2,-8 stw r0,0(r2)
which really seems to be going out of its way to implement a fairly unintuitive semantics for this piece of undefined behavior and I was curious what the motivation behind this behavior might be.
With undefined behavior, there is no such thing as an "odd choice". There is no choice to be made. _______________________________________________ Do not post admin requests to the list. They will be ignored. Darwin-dev mailing list (Darwin-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-dev/site_archiver%40lists.appl... This email sent to site_archiver@lists.apple.com