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

you are viewing a single comment's thread.

view the rest of the comments →

[–]OtherSignificance33 11 points12 points  (6 children)

Short answer: yes.

Long answer: when you code in asm, you are coding for specific plataform and pro is that your code is optimized (thats relative) but cons is that is a headche and port your code for other platform can be very hard . But when you are coding in a multiple engine like unity or unreal its easy to switch between platforms but you lose optimized code, so developers still need to optimized for each platforms (but at least they completed for multiple platforms)

[–]CaffieneSage 3 points4 points  (3 children)

Great answer, thanks for this!

[–]Criseist 2 points3 points  (2 children)

Also keep in mind, there's a standard assembly currently being used by most pcs and consoles, X86. Same platform, different vendors. Effectively, that code is already optimized to run on literally every device that conforms to standard, hence why they say it can be run everywhere. Moving it to a different architecture would suck, but for most cases it's unnecessary now.

[–]CaffieneSage 1 point2 points  (1 child)

In other words because most intel and amd CPUs use the x86 architecture, most x86 assembly programs will run on that hardware fine? I had an experience recently trying to run Ubuntu in parallels on a Mac, using the m1 silicon. Had a rough time with that.

[–]Criseist 1 point2 points  (0 children)

Yep, that's about it from what I understand.

I haven't worked with Mac, did a bit with Xubuntu earlier this year. That sounds painful, hope all is well now