need volatile for asm?

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

 



Hi,

Does the asm in:

#include <stdio.h>

int main(int argc, char *argv[])
{
unsigned int pc;

	asm("\n\t"
		"call 1f\n\t"
		"1: pop %0\n"
		:"=g"(pc)
	);

	printf(__FILE__"`%s()-%d:  %%pc is %p\n",__func__,__LINE__,pc);

	return 0;
}

need volatile?

Thanks!

kevin


[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux