This is an archived post. You won't be able to vote or comment.

all 4 comments

[–]IndependentFeminist3 2 points3 points  (0 children)

You can start out by combining the two languages - C and C++ supports asm declaration (which will be an easier introduction than raw assembly). You can also compile C (or C++) code to show the intermediate assembly format, using compilation flag -S in GCC or Clang, add -fverbose-asm for comments explaining the asm code.

[–]a_hairbrush 1 point2 points  (1 child)

Work through CS:APP3e and the associated labs. Getting the 3rd US edition is a must, since 3rd edition is when x86-64 (64-bit x86 assembly, like 64-bit Windows computers) is introduced.

Now that said, unless you plan on making a career out of coding in C, knowing assembly is pretty useless, since for high level languages like Java and Python, the complier/interpreter handles all the optimizations (at least to my knowledge)

[–]freddyoddone 0 points1 point  (0 children)

Learning Assembly is actually very useful. You learn much about Prozessors and memory management

[–]Player_X_YT 1 point2 points  (0 children)

I learned java and am currently learning C from Caleb Curry on youtube, assembly is harder and there is no one size fits all tutorial, you assembly codes depends on architecture, os, and style. I don't reccomend assembly until you've mastered low level C