News:

MASM32 SDK Description, downloads and other helpful links
MASM32.com New Forum Link
masmforum WebSite

Why to use assembly??

Started by elisapa, January 21, 2012, 10:26:05 AM

Previous topic - Next topic

elisapa

Hi All, recently i had a lot of people says that assembly is obselete and should not be used...
I started to argue and everyone said his point on why to use or not use assembly.

Whats youe excuse dear Forum members??
-= BY MYSeLF BuT NoT aLoNe =-

hutch--

Download site for MASM32      New MASM Forum
https://masm32.com          https://masm32.com/board/index.php

dedndave

 :bg
i seem to recall that discussion some time ago
probably in the Colosseum sub-forum
you might try the forum search tool - advanced options

let's see you make a 3 Kb window with a C compiler   :P
...or a 5 Kb MDI window (see attached)

but, really, the big advantages are speed - and you don't have any "you can't do that" rules   :U

jj2007

Ten reasons:
1. Speed
2. Speed
3. Speed
4. Speed
5. Speed
6. Speed
7. Speed
8. Freedom to do what you want
9. Size
10. No Repetitive Stress Injury from {bloody C brackets} and useless ; after each line

Bill Cravener

Quote from: elisapa on January 21, 2012, 10:26:05 AM
Hi All, recently i had a lot of people says that assembly is obselete and should not be used...

Usaully those that tell you that you shouldn't themselves can't. :wink
My MASM32 Examples.

"Prejudice does not arise from low intelligence it arises from conservative ideals to which people of low intelligence are drawn." ~ Isaidthat

dedndave

Quote from: Bill Cravener on January 21, 2012, 12:17:17 PM
Usaully those that tell you that you shouldn't themselves can't. :wink

assembly language may, however, have adverse effects on spelling and grammar   :bg

daydreamer

Because you can use SIMD instructions so you can easy program your computer do parallel computing with for
Example SSE to process 4 floats simultaneously

BogdanOntanu

A few reasons:

1) Because it is fun
2) Because you gain a lot of knowledge about how the CPU and the computer works at low level and can optimize better
3) Because it is simple and clear and has no dependency chain
4) Freedom and control
5) Speed


Ambition is a lame excuse for the ones not brave enough to be lazy.
http://www.oby.ro

donkey

Quote from: dedndave on January 21, 2012, 01:40:09 PM
Quote from: Bill Cravener on January 21, 2012, 12:17:17 PM
Usaully those that tell you that you shouldn't themselves can't. :wink

assembly language may, however, have adverse effects on spelling and grammar   :bg

Most of us write in assembly because function names in other languages are too long and prone to spelling mistakes. For example the normal length of a mnemonic in assembly is 3 letters, allowing only limited unique combinations, much less prone to error than something like strcasecmp or even longer commands. Of course our good friends at Intel threw a wrench into the works with SIMD instructions, they are longer than 3 letters and for that reason virtually incomprehensible to your average assembly language programmer, who will gladly write 50 lines of code to perform the same task with 3 letter mnemonics rather than use a single SSE instruction like PMOVMSKB. Another reason for using assembly is that most assembly language programmers are grammatically challenged, a line like sbb eax,edx makes more semantic sense than something in NATURAL like DECIDE ON FIRST VALUE which would be unintelligible gibberish to him.

Hope this helps to enlighten you.
"Ahhh, what an awful dream. Ones and zeroes everywhere...[shudder] and I thought I saw a two." -- Bender
"It was just a dream, Bender. There's no such thing as two". -- Fry
-- Futurama

Donkey's Stable

dedndave

Quote...50 lines of code to perform the same task with 3 letter mnemonics rather than use a single SSE instruction like PMOVMSKB

is that Russian ?  :eek

Bill Cravener

Ok, ok, maybe asm does affect ones grammar. I should have said; Usually those that tell you that you shouldn't "- use assembly -" " - they -" themselves "- do not know how to use assembly -".

Dah, better? :lol
My MASM32 Examples.

"Prejudice does not arise from low intelligence it arises from conservative ideals to which people of low intelligence are drawn." ~ Isaidthat

anunitu

Something seldom mentioned,you spend time actully doing a complex task,it takes time,and you must gather all your creative juices to do what you need to do. At the finish you may be a bit burned out,but when you do accomplish your goal,you have the satisfaction of having risen to the task. You did not do it in a "LEGO" fashion with pre built blocks,you were an artist!

This might be a question of why would someone build a nice piece of furniture by hand,when they could buy it already made...

xandaz

   Oh yeah dave...lets see that. And not just C. The other day i tried to use pascal to make a simple main window. It turn out with 100kb the for assembly only takes about 2kb. I imagine that there may be other things to consider when writting in high level languages but it just seems that nothing can beat assembly. And could imaging yourselves trying to bebug a program written in C, PASCAL or even BASIC. I imagine the code is full of senseless garbage.
   Laters
   

jj2007

Quote from: donkey on January 21, 2012, 02:20:52 PM
... average assembly language programmer, who will gladly write 50 lines of code to perform the same task with 3 letter mnemonics rather than use a single SSE instruction like PMOVMSKB.

:green2

(although I find 16 matches for PMOVMSKB in my favourite library :wink)

hutch--

Interesting troll, a single 1st post gets 13 replies. I wonder if we will ever hear from the initial poster again that has anything to do with assembler language programming ?
Download site for MASM32      New MASM Forum
https://masm32.com          https://masm32.com/board/index.php