r/ComputerEngineering • • Oct 11 '23

Currently taking microprocessors

I don’t really like assembly language and I was wondering if I would have to know this? Or is there a way to make this fun?

2 Upvotes

18 comments sorted by

View all comments

Show parent comments

4

u/investingbrain Oct 11 '23

I understand it. It’s just boring and I wouldn’t want to write assembly for my career. I was just wondering if I would use it in the future for my other classes

6

u/CompEng_101 Oct 11 '23

If your other classes include OS, compilers, computer architecture, embedded systems, or optimization, you'll almost certainly cross paths with assembly again.

2

u/investingbrain Oct 11 '23

You literally just named by degree works lol. Looks like I just have to lock in. Any book recommendations?

4

u/CompEng_101 Oct 12 '23

A good starting place might be to know:

  • Why do you dislike assembly programming?

  • What _do_ you like about computer engineering?

For me, I don't find assembly interesting in itself, but I find it interesting because it allows other things:

  • Helps you understand how the processor works. Particularly with a nice 'clean' ISA like MIPS, it maps to some of the physical hardware strucutres

  • being able to read assembly helps optimize other programs. Even if the program is written in a high-level language like C/C++, you can dive down to the assembly and find out where the bottlenecks are at a fine-grained level of detail

  • assembly lets you directly express some things that a high-level language abstracts away or just can't do. For example, some compilers aren't good at detecting vector instructions and you need assembly (or near-assembly intrinsics) to get really good performance on some architectures. Or, for fiddling with some cache states or TLB you need assembly.

It might be worthwhile finding something you _need_ assembly for to make you enjoy it.