LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
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 06-25-2008, 10:42 PM   #1
mshindo
LQ Newbie
 
Registered: Jun 2008
Posts: 8

Rep: Reputation: 1
Running Elf Files


I have a few questions about elf files and how they are executed.

When gcc compiles a elf file it creates an executable. Is this executable then run directly by the hardware or does the kernel get involved, interpret the elf file and place the asm code directly in memory.

Cheers
 
Old 06-25-2008, 10:52 PM   #2
paulsm4
LQ Guru
 
Registered: Mar 2004
Distribution: SusE 8.2
Posts: 5,863
Blog Entries: 1

Rep: Reputation: Disabled
Yes - the kernel does get involved, does some interpretation of the executable image, and does much work before it passes the machine instructions off to the hardware to execute a timeslice.

Here is a brief overview of what happens during Linux "program load", from a developer's perspective:

http://www.informit.com/articles/art...70047&seqNum=2

'Hope that helps .. PSM
 
  


Reply



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
Difference between Linux ELF Format and win32 ELF Format cmemo Linux - General 1 05-11-2007 03:44 PM
Difference between Linux ELF Format and win32 ELF Format cmemo Linux - Software 1 05-11-2007 03:31 PM
finding elf files ashlesha Linux - Newbie 1 07-21-2006 03:40 PM
Executing an ELF 32 bit on an Apache server running Linux chrisrock79 Linux - Software 12 10-13-2005 01:12 PM
ELF Files tim_l Linux - Software 0 10-21-2003 09:35 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 07:11 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration