LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
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.

Notices

Reply
 
Search this Thread
Old 07-22-2006, 09:37 AM   #16
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris10, Solaris 11, Mint, OL
Posts: 9,506

Rep: Reputation: 360Reputation: 360Reputation: 360Reputation: 360

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, 10:02 AM   #17
michaelk
Moderator
 
Registered: Aug 2002
Posts: 11,969

Rep: Reputation: 752Reputation: 752Reputation: 752Reputation: 752Reputation: 752Reputation: 752Reputation: 752
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.


http://en.wikipedia.org/wiki/Assembly_language
 
Old 07-22-2006, 10:38 AM   #18
xhi
Senior Member
 
Registered: Mar 2005
Location: USA::Pennsylvania
Distribution: Slackware
Posts: 1,065

Rep: Reputation: 45
Quote:
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..
 
  


Reply

Tags
python


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 02:29 PM
LXer: Embedding Python in Your C Programs LXer Syndicated Linux News 0 12-31-2005 10:31 AM
Php is not getting interpreted? swatward Programming 1 07-31-2005 03:48 PM
HTML not interpreted os2 Programming 1 04-29-2005 05:00 PM
Freezing Python Card programs Hal Programming 1 04-11-2005 04:59 AM


All times are GMT -5. The time now is 05:17 AM.

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