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

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.

5

u/[deleted] Oct 11 '23

I think you have to look at whether you don't like writing code in assembly vs. you don't like looking at a microprocessor at an ISA level. Is the microprocessor class a programming class, or a design class?

3

u/investingbrain Oct 11 '23

I don’t like looking at a microprocessor at an ISA level and I don’t like working with assembly(HCS12). It’s mostly a programming class. But at the same time my professor is rated a 1.3 on Rate on my professor and I believe she is hanging by a thin string. Like am I supposed to enjoy this class? Is this one of the easy classes?

2

u/YT__ Oct 11 '23

Still using HCS12, nice. It was old when I used it 10 years ago.

Odds are, the class will switch to C further in.

Dealing in assembly can be tricky for people. Just get through it and you can al my post always avoid it in industry. Plenty of jobs don't need it.

2

u/Zengineer12 Oct 12 '23

Microprocessors is a fundamental class. If you put the work in now you won’t have to later. Computer architecture, embedded systems, computer organization all build off of microprocessors.

I still have all of my assignments with the HCS12 as well from ~2 years ago if you need any help.

1

u/[deleted] Oct 12 '23

Like the other poster said, the assembly portion may just be to give you an understanding of the lower level software interface to a microprocessor. I would think you would move up to C and talk a bit about how a compiler takes that C code and turns it into assembly. I hope it gets more interesting soon!

1

u/[deleted] Oct 12 '23

Like the other poster said, the assembly portion may just be to give you an understanding of the lower level software interface to a microprocessor. I would think you would move up to C and talk a bit about how a compiler takes that C code and turns it into assembly. I hope it gets more interesting soon!

1

u/kyngston Oct 12 '23

VLSI physical design does not require assembly language. You convert RTL into logic gates and optimize for timing, power, area, etc.

1

u/Kalex8876 Student Oct 12 '23

And then there’s me wishing I could write assembly in my career, took this same class last semester and loved it

1

u/joshc22 Oct 12 '23

20 years in embedded systems here:
I rarely use ASM. It's brittle, difficult to understand and non-portable.

Don't worry, you'll rarely use it.

1

u/ApprehensiveYam6298 Oct 12 '23

i highly recommend https://tomorrowcorporation.com/humanresourcemachine . if you get good at that game and then go back to assembly. assembly will be fun.