From: erik quanstrom <quanstro@quanstro.net>
To: 9fans@9fans.net
Subject: [9fans] 6c + volatile
Date: Thu, 8 Dec 2011 11:45:06 -0500 [thread overview]
Message-ID: <34a064cc312969c65a8ee1c2eb77d9df@brasstown.quanstro.net> (raw)
magic was declared alternately as an int, volatile int and int volatile.
(because i always get that backwards.) in all cases, the assembly was this:
main+0x168 0x0020039d MOVL magic(SB),CX
main+0x16f 0x002003a4 CMPL CX,$0x1
main+0x172 0x002003a7 JNE main+0x16f(SB)
perhaps i'm not reading the standard correctly, but i would have expected
vloop:
MOVL magic(SB), CX
CMPL CX, $1
JNE vloop
instead. obviously, this doesn't happen when magic is an int*.
- erik
reply other threads:[~2011-12-08 16:45 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=34a064cc312969c65a8ee1c2eb77d9df@brasstown.quanstro.net \
--to=quanstro@quanstro.net \
--cc=9fans@9fans.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).