Re: Algorithms In Assembly Language
Brian asked:
What would an algorithm look like in assembly language?
Mmh..?
I think it will look like as in any other language, just
as a sequence of instructions, perhaps with conditional jumps
or 'cmovcc/setcc' and loops instead of FOR/IF/WHILE/CASE...
Sure, ASM isn't that easy readable like plain text for many
'programmers'.
But it's just a matter of familiarity and experience.
__
wolfgang
.
Relevant Pages
- Re: Algorithms In Assembly Language
... I think it will look like as in any other language, ... as a sequence of instructions, perhaps with conditional jumps ... ASM isn't that easy readable like plain text for many ... (alt.lang.asm) - Re: optimation, a black art?
... instructions may be completely subsumed by slower running ones. ... scheduling or List scheduling) is analogous to PERTing - the problem ... To do this the compiler has to estimate where the value lies in the ... permutation generate the actual sequence of instructions following ... (comp.lang.lisp) - Re: optimation, a black art?
... instructions may be completely subsumed by slower running ones. ... To do this the compiler has to estimate where the value lies in the ... permutation generate the actual sequence of instructions following ... (comp.lang.lisp) - Re: Cost of calling a standard library function
... > sense, since push Allocates memory, and pop deallocates it. ... Hence, all the CPU does is, basically: ... so forth...it's even possible to get "free" instructions (effectively ... what else is an ASM coder's job? ... (alt.lang.asm) - Re: amd64 cpu_switch in C.
... It has a few more branches than the in cvs asm version and the same number of extra branches as peter's asm version to support conditional gs/fsbase setting. ... It's worth noting that my C version is slower in some cases other than the microbenchmark due to extra instructions for optimizations that don't matter. ... the branch predictions fit in the branch prediction cache ... you have to load cr3 even for kernel threads because the page directory page or page directory pointer table at %cr3 can go away once you've switched out the old thread. ... (freebsd-arch) |
|