Visit Jeremy's Blog.
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 06-25-2008, 11:42 PM   #1
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.

Old 06-25-2008, 11:52 PM   #2
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:

'Hope that helps .. PSM


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

All times are GMT -5. The time now is 01:37 PM.

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