Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Aug 28th, 2004, 11:33 AM   #1
sphyenx
Newbie
 
Join Date: Aug 2004
Posts: 16
Rep Power: 0 sphyenx is on a distinguished road
never heard of assembly..
__________________
Visit My Forums
is this a dream
sphyenx is offline   Reply With Quote
Old Aug 28th, 2004, 12:33 PM   #2
Mjordan2nd
The Supreme Ruler
 
Join Date: May 2004
Location: Houston
Posts: 1,476
Rep Power: 6 Mjordan2nd is on a distinguished road
It's a programming language which is as close to machine code as you can get. It has mnemonic commands that tell the computer what to do. It is different from other higher level languages in that when you see something like

printf("hello world");

It sends many instructions to the computer. In assembly, you see something like:

 add 1, ax

Which will translate directly into one instruction to the machine.
__________________
"Every gun that is made, every warship launched, every rocket signifies, in the final sense, a theft from those who hunger and are not fed, from those who are cold and are not clothed. The world in arms is not spending money alone. It is spending the sweat of its laborers, the genius of its scientists, the hopes of its children." - Dwight D. Eisenhower
Mjordan2nd is offline   Reply With Quote
Old Aug 28th, 2004, 7:52 PM   #3
kurifu
Expert Programmer
 
kurifu's Avatar
 
Join Date: Jul 2004
Location: Halifax, Nova Scotia (Canada)
Posts: 784
Rep Power: 5 kurifu is on a distinguished road
Send a message via ICQ to kurifu Send a message via MSN to kurifu
Assembly is the lowest level of all programming languages. Assembly instruction are the actual instructions the processor receives.

Each assembly command (that is operative) actually equates to a very specific machine code instruction, while in languages like C++ each C++ instruction equates to several machine code instructions.

Many language compilers, including most C++ and C compilers compile first to ASM code and than assemble the ASM code to machine code. (You can even use a command line switch to output the ASM code to a file).
__________________
Clifford Matthew Roche <geek@cliffordroche.com>
Web Hosting: http://www.crd-hosting.com
Consulting: http://www.crdev-consulting.com
kurifu is offline   Reply With Quote
Old Aug 29th, 2004, 1:15 PM   #4
thechristelegacy
Expert Programmer
 
thechristelegacy's Avatar
 
Join Date: Jul 2004
Location: Somerset, Pa
Posts: 708
Rep Power: 5 thechristelegacy is on a distinguished road
Send a message via AIM to thechristelegacy Send a message via MSN to thechristelegacy
I have a question myself. Could someone clear up the pros and cons of Assembly to other languages in a fairly brief statement. I know that higher level languages are easier to type and read, but what other beinfits are there of each. Isn't assembly suposed to be faster?
thechristelegacy is offline   Reply With Quote
Old Aug 29th, 2004, 2:09 PM   #5
Mjordan2nd
The Supreme Ruler
 
Join Date: May 2004
Location: Houston
Posts: 1,476
Rep Power: 6 Mjordan2nd is on a distinguished road
Well, Ok.

Pros:
Learning assembly language will increase your knowledge of the computer tenfold.
You are in complete control of your machine.
Assembly code is as fast as it gets.
You can get access to unusual programming modes of your processor.
You can use it with some high-level languages

Cons:
Very tedious to write.
It is quite often buggy.
These bugs are hard to find.
not portable


There are probably a lot. Either way, I think it's good knowledge, whether you use it or not. Plus, just about any "hacker" book you read will tell you to learn assembly. :ph34r:
__________________
"Every gun that is made, every warship launched, every rocket signifies, in the final sense, a theft from those who hunger and are not fed, from those who are cold and are not clothed. The world in arms is not spending money alone. It is spending the sweat of its laborers, the genius of its scientists, the hopes of its children." - Dwight D. Eisenhower
Mjordan2nd is offline   Reply With Quote
Old Aug 29th, 2004, 11:46 PM   #6
kurifu
Expert Programmer
 
kurifu's Avatar
 
Join Date: Jul 2004
Location: Halifax, Nova Scotia (Canada)
Posts: 784
Rep Power: 5 kurifu is on a distinguished road
Send a message via ICQ to kurifu Send a message via MSN to kurifu
Actually the debate as to whether or not assembly code executes faster is really not clear. There was a time, when the 386 and 486 rules the market that pure ASm written code (if written by a seasoned developer) would be the fastest code for its functions that you can get, and even now for very specific operations (in which optimizers are KNOWN to not be able to optimize very well) that also holds true.

However with the advent of multi-stage instruction execution in the processor, the IP look-ahead (which actually tends to change code before it hits the processor now to further optimise it) writing an entire application in ASM may not have any benefit over using a properly optimized higher level language.
__________________
Clifford Matthew Roche <geek@cliffordroche.com>
Web Hosting: http://www.crd-hosting.com
Consulting: http://www.crdev-consulting.com
kurifu is offline   Reply With Quote
Old Aug 30th, 2004, 12:20 AM   #7
Mjordan2nd
The Supreme Ruler
 
Join Date: May 2004
Location: Houston
Posts: 1,476
Rep Power: 6 Mjordan2nd is on a distinguished road
I stand corrected.
__________________
"Every gun that is made, every warship launched, every rocket signifies, in the final sense, a theft from those who hunger and are not fed, from those who are cold and are not clothed. The world in arms is not spending money alone. It is spending the sweat of its laborers, the genius of its scientists, the hopes of its children." - Dwight D. Eisenhower
Mjordan2nd is offline   Reply With Quote
Old Aug 30th, 2004, 12:12 PM   #8
Kylixen
Programmer
 
Kylixen's Avatar
 
Join Date: Jun 2004
Location: SC
Posts: 60
Rep Power: 5 Kylixen is on a distinguished road
Send a message via AIM to Kylixen Send a message via MSN to Kylixen
Write it in C, then break to Assembly and remove bloat and bugs. "gcc -S pr0n_finder.c"
__________________
ALLOW IMAGES IN SIGNATURES NOW
Kylixen is offline   Reply With Quote
Old Aug 31st, 2004, 7:52 PM   #9
thechristelegacy
Expert Programmer
 
thechristelegacy's Avatar
 
Join Date: Jul 2004
Location: Somerset, Pa
Posts: 708
Rep Power: 5 thechristelegacy is on a distinguished road
Send a message via AIM to thechristelegacy Send a message via MSN to thechristelegacy
Thanks, well that clears some up for me at least
thechristelegacy is offline   Reply With Quote
Old Sep 1st, 2004, 9:46 AM   #10
Pizentios
Programming Guru
 
Pizentios's Avatar
 
Join Date: May 2004
Location: Brandon, Manitoba, Canada
Posts: 2,023
Rep Power: 7 Pizentios is on a distinguished road
Send a message via ICQ to Pizentios Send a message via MSN to Pizentios
very infomative info in this thread indeed.
__________________
Profanity is the one language that all programmers understand.

Check out my Blog <---updated Nov 30 2007!
Pizentios is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 8:06 AM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC