User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the Assembly section within the Software Development category of DaniWeb, a massive community of 402,906 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 3,123 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our Assembly advertiser: Programming Forums
Views: 6524 | Replies: 34
Reply
Join Date: Jan 2007
Location: Winchester, Virginia
Posts: 28
Reputation: KalebG is an unknown quantity at this point 
Rep Power: 2
Solved Threads: 0
KalebG's Avatar
KalebG KalebG is offline Offline
Light Poster

Question Assembly is used for?

  #1  
Jan 15th, 2007
I've been searching around the site, looking at the different types of coding, and come accross Assembly. This is one of the most complicating code ive seen yet and was just wondering what is it's most common use?
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Oct 2005
Location: Manchester, UK
Posts: 481
Reputation: pty is on a distinguished road 
Rep Power: 3
Solved Threads: 31
pty's Avatar
pty pty is offline Offline
Posting Pro in Training

Re: Assembly is used for?

  #2  
Jan 15th, 2007
Originally Posted by KalebG View Post
I've been searching around the site, looking at the different types of coding, and come accross Assembly. This is one of the most complicating code ive seen yet and was just wondering what is it's most common use?


Assembly language is a very low level language.

It is very fast but very complex (therefore generally takes longer to write) and these days tends to be used where massive optimisation is required (a number-crunching algorithm) or in drivers and stuff where it has to interact directly with hardware.
Note to self... pocket cup
Reply With Quote  
Join Date: Jan 2007
Location: Winchester, Virginia
Posts: 28
Reputation: KalebG is an unknown quantity at this point 
Rep Power: 2
Solved Threads: 0
KalebG's Avatar
KalebG KalebG is offline Offline
Light Poster

Re: Assembly is used for?

  #3  
Jan 15th, 2007
Originally Posted by pty View Post
Assembly language is a very low level language.

It is very fast but very complex (therefore generally takes longer to write) and these days tends to be used where massive optimisation is required (a number-crunching algorithm) or in drivers and stuff where it has to interact directly with hardware.

Ah, ok thanks.
Reply With Quote  
Join Date: Jan 2007
Posts: 15
Reputation: akyprian is an unknown quantity at this point 
Rep Power: 2
Solved Threads: 0
akyprian akyprian is offline Offline
Newbie Poster

Solution Re: Assembly is used for?

  #4  
Jan 30th, 2007
This is completely wrong! Assembly language is very easy and can be used to develop any kind of application. Have a look at this article and visit the WinAsm Studio site for a lot of free open source tools written in Assembly.

Regards,

Antonis Kyprianou
Last edited by akyprian : Jan 30th, 2007 at 3:08 am.
Reply With Quote  
Join Date: Jan 2007
Posts: 49
Reputation: Purple Avenger is an unknown quantity at this point 
Rep Power: 2
Solved Threads: 0
Purple Avenger Purple Avenger is offline Offline
Light Poster

Re: Assembly is used for?

  #5  
Jan 30th, 2007
The Space Shuttle's cockpit displays/keypad processors (an IBM SP0) were programmed in assembler as was its Heads Up Display(HUD) symbology processor (Hughs A10INS processor)

All of the kernel (and the vast majority of stock drivers and TSR's) for plain old DOS were written in assembler too.
Reply With Quote  
Join Date: Nov 2006
Posts: 99
Reputation: mathematician is an unknown quantity at this point 
Rep Power: 2
Solved Threads: 1
mathematician mathematician is offline Offline
Junior Poster in Training

Re: Assembly is used for?

  #6  
Jan 30th, 2007
True, it can be used to develop any kind of application, but what would be the point when a high or middle level language can do the job just as well (and more quickly)?
Reply With Quote  
Join Date: Jan 2007
Posts: 15
Reputation: akyprian is an unknown quantity at this point 
Rep Power: 2
Solved Threads: 0
akyprian akyprian is offline Offline
Newbie Poster

Re: Assembly is used for?

  #7  
Jan 31st, 2007
Assembly Language can produce small and very fast applications, no bloat, no dependencies (huge dll's), VERY easy to develop and above all, I can do anything I want without facing any HLL limitations.

Microsoft Macro Assembler (MASM), for example, looks VERY similar to C code and is no harder to learn. I would say that it is easier.

Regards,

Antonis
Reply With Quote  
Join Date: Nov 2006
Posts: 99
Reputation: mathematician is an unknown quantity at this point 
Rep Power: 2
Solved Threads: 1
mathematician mathematician is offline Offline
Junior Poster in Training

Re: Assembly is used for?

  #8  
Jan 31st, 2007
Originally Posted by akyprian View Post
Assembly Language can produce small and very fast applications, no bloat, no dependencies (huge dll's), VERY easy to develop and above all, I can do anything I want without facing any HLL limitations.

Microsoft Macro Assembler (MASM), for example, looks VERY similar to C code and is no harder to learn. I would say that it is easier.

Regards,

Antonis



There is nothing wrong with the speed of today's optimising compilers. Entire operating systems are written in C, including both Windows and Linux - 95% of the source code anyway. What are the HLL limitations nowadays? Operating system API's are written with C in mind, and directly programming the hardware is out of the question in multi-tasking environments such as Windows and Linux.
Reply With Quote  
Join Date: Apr 2005
Location: Old Hampshire, Old England (LOL)
Posts: 11,937
Reputation: jbennet is a jewel in the rough jbennet is a jewel in the rough jbennet is a jewel in the rough jbennet is a jewel in the rough 
Rep Power: 30
Solved Threads: 268
Moderator
Featured Poster
jbennet's Avatar
jbennet jbennet is offline Offline
Microsoft Fanboy

Re: Assembly is used for?

  #9  
Jan 31st, 2007
Assembly is very fast. common uses are bootloaders, compilers, embedded systems
TRY MY SUGGESTIONS AT YOUR OWN RISK!
james.bennet1@ntlworld.com
Reply With Quote  
Join Date: Jan 2007
Posts: 15
Reputation: akyprian is an unknown quantity at this point 
Rep Power: 2
Solved Threads: 0
akyprian akyprian is offline Offline
Newbie Poster

Re: Assembly is used for?

  #10  
Jan 31st, 2007
Originally Posted by mathematician View Post
There is nothing wrong with the speed of today's optimising compilers.

No compiler can produce faster binaries than what assembly can do (written correctly offcourse)

Entire operating systems are written in C, including both Windows and Linux - 95% of the source code anyway.
still remains a 5%. why should I use C and assembly while I can be equally productive using assembly only.

What are the HLL limitations nowadays?
Try to write a multithreaded application in VB6 or lower (I don't know about other versions, I never touched any), or a debugger, a large file edit control or ... You 'll fail. Try to use pointers with VB. You 'll be wasting your time (although it is possible).



Operating system API's are written with C in mind
You can call equally easily these API's with Assembly (and written correctly, the binary WILL be faster)

and directly programming the hardware is out of the question in multi-tasking environments such as Windows and Linux.
Although I don't usually do this kind of stuff, why not?

Regards,

Antonis
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

DaniWeb Assembly Marketplace
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

Thread Tools Display Modes

Similar Threads
Other Threads in the Assembly Forum

All times are GMT -4. The time now is 3:33 pm.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC