Re: [algogeeks] How to use asm in spoj

2011-06-18 Thread ADITYA KUMAR
whether u write your code in assembly or c or even in Machine code it will take the same time.. because after-all ,on system ...your executable runs not ur code and which is not in c not in assembly but in machine code On Thu, Jun 16, 2011 at 9:11 AM, saurabh singh wrote: > Hello > I have been t

[algogeeks] How to use asm in spoj

2011-06-15 Thread saurabh singh
Hello I have been thinking if I can use asm in c programs to enhance my time... So to give it a try i tried http://www.spoj.pl/problems/STREETR/ with the following code: #include int gcd( int a, int b ) { int result ; __asm__ __volatile__ ( "movl %1, %%eax;" "movl