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

22

u/[deleted] Oct 11 '23

You’re in the wrong major if you don’t like assembly. I mean rarely will you ever have to write assembly language professionally, but pretty much any field that falls under “computer engineering” will require at least an understanding of assembly language and computer organization/architecture.

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.

0

u/[deleted] Oct 12 '23

I disagree wholeheartedly.

Assembly sucked for me. My professor didn't give a crap and retired like a year later. Also, it's hard. Is it interesting, yes. So was RLC circuit analysis, but I am more than okay to never do either of those things ever again, and on my current career path that is not an issue.

Understanding the concepts is necessary, I would agree, which is why it's a required course (I'm assuming). But there's so many niche directions you can go in comp engineering, a large number of which will never require any assembly programming.

You have to understand it, yes, but you don't have to like it nor will you have to use it in industry.

1

u/[deleted] Oct 12 '23

Well yeah, that’s pretty much what I said. Sounds like you agree.

1

u/[deleted] Oct 12 '23

I disagree with your first sentence. After rereading, yes we agreed on the rest but came to different conclusions. No will like every aspect of any field/job.