Timeline for Simple GAS assembly program to print out all of the command line arguments provided to it
Current License: CC BY-SA 4.0
5 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Mar 25 at 13:22 | vote | accept | Jacob Garby | ||
Mar 9 at 20:34 | answer | added | Sep Roland | timeline score: 2 | |
Mar 8 at 18:32 | comment | added | Jacob Garby |
Thanks for the comments @J_H I see your point about xor %rax, %rax potentially not being as clear as it could be, however from what I've seen it seems pretty common in handwritten assembly - perhaps a macro would be nice though! And yes, I'm surprised I didn't mention the processor this will run on; it's for x86-64, btw. For viewing the corresponding C code's assembly, I actually used gcc -S , so it wasn't so easy to link unfortunately. Thanks!
|
|
Mar 8 at 17:51 | comment | added | J_H |
I understand that compilers output lines like "xor %rax, %rax" when they want zero. But for humans, don't we have like a "clear rax" mnemonic, a macro? // Anyway, thank you for the # comments , they're lovely, as are the symbolic labels. And please do offer a tag or Review Context that explains the particular processors you intend this code should run on. If you viewed the corresponding C code through the lens of godbolt.org, it wouldn't hurt to mention a link in your Question.
|
|
Mar 7 at 16:43 | history | asked | Jacob Garby | CC BY-SA 4.0 |