public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
From: "spark.z" <spark.yj.zhao@gmail.com>
To: gcc-help@gcc.gnu.org
Subject: Re: Help! Program crashed when call the inline assembly function    continuously
Date: Wed, 31 Mar 2010 21:24:00 -0000	[thread overview]
Message-ID: <28097083.post@talk.nabble.com> (raw)
In-Reply-To: <4BB34561.7040506@acri-st.fr>


Many thanks to you, the app works correctly according to your
sulotion:handshake:

But I am confused with another situation as below (static int my_an = 0 ===>
int my_an = 0)
int main() 
{ 
  int my_an = 0; 
  pincrement(&my_an); 
  pincrement(&my_an); 
  pincrement(&my_an); 
  printf("my_an is %d\n",my_an); 
} 

it show me a wrong result => "my_an is 0". Is there any differences between
the local variable and the static variable as the param? :confused:
-- 
View this message in context: http://old.nabble.com/Help%21-Program-crashed-when-call-the-inline-assembly-function-continuously-tp28094526p28097083.html
Sent from the gcc - Help mailing list archive at Nabble.com.

  reply	other threads:[~2010-03-31 14:56 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-03-31 14:18 spark.z
2010-03-31 14:56 ` Cedric Roux
2010-03-31 21:24   ` spark.z [this message]
2010-04-01  8:40     ` Cedric Roux
2010-04-01 13:38       ` spark.z
2010-04-01 13:52         ` Cedric Roux
2010-04-08 13:01           ` spark.z
2010-04-07 14:46 ` Ian Lance Taylor
2010-04-08 13:04   ` spark.z

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=28097083.post@talk.nabble.com \
    --to=spark.yj.zhao@gmail.com \
    --cc=gcc-help@gcc.gnu.org \
    /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 read-only IMAP folder(s) and NNTP newsgroup(s).