Share your knowledge at the LQ Wiki.
Go Back > Forums > Non-*NIX Forums > Programming
User Name
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.


  Search this Thread
Old 07-22-2006, 10:37 AM   #16
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.3, Oracle Linux, Mint
Posts: 9,724

Rep: Reputation: 434Reputation: 434Reputation: 434Reputation: 434Reputation: 434

Back to the subject, it can easily be proved than you cannot write a program in an higher level language that will outperform its assembly language competitor, assuming the development effort is not an issue.

Of course this is meaningless, as the development effort is always an issue.

Consequently assembly language is today a very specialized domain, largely because of the C language flexibility.
Old 07-22-2006, 11:02 AM   #17
Registered: Aug 2002
Posts: 16,428

Rep: Reputation: 1938Reputation: 1938Reputation: 1938Reputation: 1938Reputation: 1938Reputation: 1938Reputation: 1938Reputation: 1938Reputation: 1938Reputation: 1938Reputation: 1938
To sum up what everyone has posted.

Assembly language is the human readable notation for CPU instructions and machine language basicaly is the assembly language converted to numeric form. The assembler is the program that converts the human notation into machine language. And yes it is the function of the compiler to convert a high level language into assembly language, from assembly to machine code and then linking which is the process of creating an executable program.
Old 07-22-2006, 11:38 AM   #18
Senior Member
Registered: Mar 2005
Location: USA::Pennsylvania
Distribution: Slackware
Posts: 1,065

Rep: Reputation: 45
Originally Posted by jlliagre
Vaguely, both are a more or less unreadable suite of instructions ...

i cant claim that assembly is easier for me to read, but it is definately preferred..

and to throw in something worthwhile.. i have several books on assembly, and most of the authors seem to suggest that tweaking compiler generated code will get you more performance if you know where to look in the code and know what you are doing.

however, in practical use, you still have a bottleneck of file access, network useage, and printing to console/gui to contend with. you have to look at the efficiency of your efficiency efforts..



Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
What do you use to develop python programs? stormrider_may Programming 2 03-11-2006 03:29 PM
LXer: Embedding Python in Your C Programs LXer Syndicated Linux News 0 12-31-2005 11:31 AM
Php is not getting interpreted? swatward Programming 1 07-31-2005 04:48 PM
HTML not interpreted os2 Programming 1 04-29-2005 06:00 PM
Freezing Python Card programs Hal Programming 1 04-11-2005 05:59 AM > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 08:28 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration