Thank You for answer ( sorry but i couldn't write earlier ). It explain me many things but i steel receive the same results: 1)Program which uses the same registers one by one works 4% faster then when it uses different. > Second I've always trying not to use memory because > its extremely slow . > > nut again if i exchange value between registers with > using temporary memory: > > movl %eax,temp > movl %ebx,%eax, > movl temp,%ebx > > it works faster than: > > movl %eax,%edx > movl %ebx,%eax, > movl %edx,%ebx > > WHY? maybe linux is doing something in the mean time > ... ? >Where did you get that result? On my machine, the >version using memory >is 1.5x >slower than register-only, as expected. I received this by 'time' command. It shows that program using only registers is about 16% slower then exchanging with memory. "Program" moves values 2^29 times.( is there any way to check duration of program with less then 0.001s accuracy ? any clock in bios ? ) Any way i'm steel looking for some hints that could make my programs work faster :). Lukas __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com - To unsubscribe from this list: send the line "unsubscribe linux-assembly" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html
- Prev by Date: Re: hint?
- Next by Date: Question about entry.S RESTORE_REGS macro
- Previous by thread: hint?
- Next by thread: Re: Re:hinit?
- Index(es):