Assembly programmer writes in C for first time
gist.github.com
gist.github.com
Heh. If this were 10 years ago, we'd be using register ints.
As I'm sure you're aware you can get gcc to emit assembly, quite a few of the answers here seem interesting: https://stackoverflow.com/questions/137038/how-do-you-get-as...
You don't need to parallel-install dozens of versions of different compilers to play with them, too: https://gcc.godbolt.org/
I must admit my great curiosity about what path led you to assembly language and _then_ C. In many circumstances it's the other way around.
L_.str: ## @.str int ebx = 0;
but movl $1, %ebx
.... FAIL.. :D movl $10, %edi # number of fibnum we hunt
movl $0, %ebx # 1st fibnum
movl $1, %eax # 2nd fibnum
Updated the gist, thanks!