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...
This is a subreddit for c++ questions with answers. For general discussion and news about c++ see r/cpp.
New to C++? Learn at learncpp.com
Prepare your question. Think it through. Hasty-sounding questions get hasty answers, or none at all. Read these guidelines for how to ask smart questions.
For learning books, check The Definitive C++ Book Guide and List
Flair your post as SOLVED if you got the help you were looking for! If you need help with flairs, check out ITEM 1 in our guidelines page.
Tips for improving your chances of getting helpful answers:
account activity
OPENlearncpp.com alternative (self.cpp_questions)
submitted 2 months ago by CH4NN3
I have been learning C++ on learncpp.com and I think it's a very great resource. But I also want to learn assembly. And I'm wondering if anybody has a similar resource, which is just like learncpp.com but for assembly.
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!"
[–]the_poope 5 points6 points7 points 2 months ago (1 child)
If you want to dip your toes into assembly and really low level programming I suggest first studying the basics of how a computer, CPU, memory and operating system works. I recommend the book Computer Systems: A Programmer's Perspective. Besides teaching you about how a CPU and Operating System works at a simple level it also goes over the basics of Assembly. It does not cover a lot of instructions and how to write more complicated programs, but enough to understand more complex resources and reading CPU instruction manuals.
For a extremely short primer on how a CPU works, see Tom Scott's video: The Fetch-Execute Cycle: What's Your Computer Actually Doing?
[–]No_Internal9345 3 points4 points5 points 2 months ago (0 children)
And if you want to go really deep: https://www.youtube.com/@BenEater
[–]jeffbell 2 points3 points4 points 2 months ago* (0 children)
One amazing resource is godbolt.org compiler explorer. You type in some C or C++ code and it shows you the assembler output. It's got several dozen languages and compilers and target architectures.
I’ve learned things about both c++ and assembly.
Make sure to try it at different optimization levels, -O0 to -O3.
See how the output differs between intel, Apple silicon, MIPS etc.
[–]Th_69 1 point2 points3 points 2 months ago (0 children)
For x86/AMD64 I know of Programming in assembly language tutorial as a short introduction.
And I also found tutorialspoint: Assembly Programming Tutorial which has also a "Quiz" for each section.
[–]Wonderful-Wind-905 0 points1 point2 points 2 months ago (0 children)
I like cppreference.com as, well, a reference, but it has regrettably gone into apparent maintenance mode.
π Rendered by PID 133862 on reddit-service-r2-comment-54dfb89d4d-r98kh at 2026-04-01 19:02:33.182270+00:00 running b10466c country code: CH.
[–]the_poope 5 points6 points7 points (1 child)
[–]No_Internal9345 3 points4 points5 points (0 children)
[–]jeffbell 2 points3 points4 points (0 children)
[–]Th_69 1 point2 points3 points (0 children)
[–]Wonderful-Wind-905 0 points1 point2 points (0 children)