Welcome, Guest. Please login or register.

Author Topic: Assembly future  (Read 1340 times)

Description:

0 Members and 1 Guest are viewing this topic.

Offline Piru

  • \' union select name,pwd--
  • Hero Member
  • *****
  • Join Date: Aug 2002
  • Posts: 6946
    • Show all replies
    • http://www.iki.fi/sintonen/
Re: Assembly future
« on: October 27, 2011, 06:56:00 PM »
Quote from: matthey;665362
The 68k is much easier to program too. My point is that the 68k fell out of style rather than became completely outdated. That means a comeback is a possibility.

This assessment only applies if writing assembly code would be a requirement (in today's world it really isn't). Which means that any kind of 68k comeback is highly unlikely.
 

Offline Piru

  • \' union select name,pwd--
  • Hero Member
  • *****
  • Join Date: Aug 2002
  • Posts: 6946
    • Show all replies
    • http://www.iki.fi/sintonen/
Re: Assembly future
« Reply #1 on: October 27, 2011, 11:01:08 PM »
Quote from: matthey;665388
Of course writing assembly code is not a requirement. Another myth created around the time of RISC is that compilers would get better and better and assembly would become obsolete.

It has become mostly obsolete though. Only if you really must have the very fastest possible code for a certain operation will you bother with hand optimized innerloops.

Quote
What I see though, is many compilers generating worse code or having trouble utilizing the countless optimization techniques they advertise. Many times they can't do basic optimizations correctly. GCC is one of the worst. It's degenerated in speed and code density since version 2.

That's why I mostly use gcc 2. gcc 4 does however create faster code overall. Code density is worse though.

Quote
Have you looked at the code that newer versions of GCC generates? Oh yea, probably not since PowerPC assembler code is tedious instead of fun.

Actually I do, quite often. Tracking down bugs usually requires manual reading of the disassembly.

Quote
Remember how much easier debugging and looking at how optimized code was at a glance? Not that PowerPC is bad but readable assembler is almost totally discounted when it's actually very valuable.

68k of course is much more readable. I do like 68k still of course but I find less and less use for my 68k skills.

Understanding any assembly (even 68k) is a good thing though as it makes it much easier to pick up some other (more relevant) assembly code. The basic concepts are very similar. For example I have no difficulty in using IDA Pro to read some x86 code, even though I probably couldn't write single app using x86 asm.