tinycc-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Tinycc-devel] inline x64 assembly


From: danger danger
Subject: [Tinycc-devel] inline x64 assembly
Date: Thu, 06 May 2010 22:24:11 +0400

Hello all!

Can anyone tell me how to push on stack 64-bit value using inline asm?
Google won't help me.

On 32-bit machines it looks like this:
  int a=0,b=2345;
  asm("push %0"::"d"(b));
  asm("pop %0":"=d"(a));
  printf("%d", a);

Best regards, Danger.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]