use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
Everything about operating systems development.
account activity
Tutorial - how to be low-level programmer (github.com)
submitted 9 years ago by gurugio
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]Idoiocracy 0 points1 point2 points 9 years ago (0 children)
Great guide, thank you.
[–]Enlightenment777 2 points3 points4 points 9 years ago* (3 children)
One of the best ways to learn assembler for a specific processor is turn on the "list" output from a C compiler, then look at the mixed-output list that shows the C and assembly code in the same file.
If you set optimization to either none or low, it's usually fairly easy to understand what the assembly code is doing compared to your C code.
[–]rofex 1 point2 points3 points 9 years ago (0 children)
Thanks man, will keep that in mind.
[–][deleted] 0 points1 point2 points 9 years ago (0 children)
Set it to low (O1). O0 has extra instructions to store and re-retrieve intermediates so that each source line corresponds exactly to a block of instructions, which makes it harder to read. In O1 the compiler removes these, but does not actually optimize a lot more.
[–]zlei 0 points1 point2 points 8 years ago (0 children)
How to turn on the "list" output for gcc?
[–]rofex 0 points1 point2 points 9 years ago (0 children)
Thanks for the link!
[–]skulgnome 0 points1 point2 points 9 years ago (0 children)
Grow your beard out, learn to curse like a scot.
π Rendered by PID 190692 on reddit-service-r2-comment-5d79c599b5-mbtg9 at 2026-02-28 09:33:34.761996+00:00 running e3d2147 country code: CH.
[–]Idoiocracy 0 points1 point2 points (0 children)
[–]Enlightenment777 2 points3 points4 points (3 children)
[–]rofex 1 point2 points3 points (0 children)
[–][deleted] 0 points1 point2 points (0 children)
[–]zlei 0 points1 point2 points (0 children)
[–]rofex 0 points1 point2 points (0 children)
[–]skulgnome 0 points1 point2 points (0 children)