On mySimon: Backyard Safari Underground Time Capsule
BNET Business Network:
BNET
TechRepublic
ZDNet
TalkBack 10 of 34:
Next »
« Previous
Productivity writing assembler?
Yes, you can do things in handmade assembler that languages don't because compilers have very specific code generators that do not give you every permutation and combination of assembler instructions.

Of course, every program must eventually run as a sequence of machine instructions. So there is a temptation to adulate assembler as the "true" essence of programming. But the romance truly wears off quickly.

I started writing assembler on an IBM system, then Data General 16-bit and 32-bit processors, then for Motorola 88Ks, then for SUN boxes, then for Power PCs. Even if you write a brilliant, perfect program for one platform, you need to learn the assmembly language for a new CPU and start all over again. Talk about lack of portability.

Maintenance of an assembly language program is a nightmare. The DG assemblers were all written is assembly, and if it weren't for the comments augmenting the code, it would take a person a long, long time (maybe never) to figure out what page after page after page of machine instructions is actually doing.

And besides, there are tricks you can play in assembler that can lead maintainers far astray.
Like making data look like instructions - a nonsensical, seemingly random sequence of instructions. So who wants to make sure there is never a branch to those instructions? And assembler has no clues as to such things as volatile values. If one decides to optimize an assembly program for instruction scheduling, you can break critical portions of code by moving loads and stores out of the critical range. The list goes on.

Extolling assembly language is kind of like extolling the virtues of elementary chemistry. One could probably build a better app by meticulously composing an assembly language program, but a person could also use carbon, hydrogen, nitrogen, phosphorous, etc., to build more attractive and smarter spouse.
Posted by: cgraham_z   Posted on: 11/03/05 You are currently: a Guest | Members login | Terms of Use

Alert moderator to an offensive message

Subscribe to this discussion via Email or RSS

I brought this up  Roger Ramjet | 10/31/05
PAPPL?  jpratch | 10/31/05
Its just another trick  Roger Ramjet | 10/31/05
I don't mind, with some reservations  Mark Miller | 10/31/05
Debugging tools for PHP  eheimer | 11/01/05
So what's wrong with Fortran?  Gravitas@... | 10/31/05
Like what?  Not average Joe | 10/31/05
Like handcuffing your code to specific hardware  Robert Kohlenberger | 11/01/05
Right on the Money RK  tbbrickster_z | 11/02/05
Productivity writing assembler?  cgraham_z | 11/03/05
Agree that Database Procedures are Evil  daver_z | 10/31/05
Maybe for small applications  Yensi717 | 10/31/05
OOD  Gravitas@... | 10/31/05
I think  Yensi717 | 10/31/05
Spot on right  Justin James | 10/31/05
Yeah, well...  emofine | 10/31/05
Varying opinions  tero_t_vaananen@... | 11/01/05
Right on.  zztong | 11/01/05
Multiple database vendors  Yensi717 | 11/01/05
Not a pain to edit  Chad_z | 11/01/05
Great framework  bkatz | 10/31/05
Looked like a pain to me...  Justin James | 10/31/05
For Unix deployments you might consider...  Mark Miller | 10/31/05
Message has been deleted.  khakman | 10/31/05
I've heard of Ruby  CobraA1 | 10/31/05
You mean like Smalltalk?  wkharold | 10/31/05
Funny  John Carroll ZDNet Moderator | 10/31/05
true  jimk_z | 10/31/05
true  jimk_z | 10/31/05
Ruby is OO  tero_t_vaananen@... | 11/01/05
Just what are people spouting about?  jacec | 10/31/05
Are there other benefits?  DougOfCBS ZDNet Moderator | 11/01/05
This is not serious development  SQLDBAJames | 05/29/06
Not everything is a nail  rarsa | 11/03/05

What do you think?

SponsoredWhite Papers, Webcasts, and Downloads

advertisement
Premier Vendor Content Whitepapers, webcasts & resources from our Power Center Sponsors
advertisement
  • Smart Tech Expert advice on innovations in healthcare and the green technologies that make it happen. Find out more
  • Smart Business Discussion and advice on management issues that revolve around making your world smarter and more useful. More Smart Advice
  • Smart People The best and worst moves in the management and strategy trenches. Learn More