LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 10-19-2011, 04:55 PM   #1
theKbStockpiler
Member
 
Registered: Sep 2009
Location: Central New York
Distribution: RPM Distros,Mostly Mandrake Forks;Drake Tools/Utilities all the way!GO MAGEIA!!!
Posts: 986

Rep: Reputation: 53
Program addresses from text editor to ELF file.


I'm trying to understand how linkers work basically and have concluded that my understanding of addressing is vague. I have read a lot of guides that are on either side of the focus at the moment. I'm not at all interested in the CPU's end on this as there is an abundant of info on that subject.

I assume that the text lines from a high level Language editor are converted to the equivalent in assembly so I would end up with more lines of"editor" addresses? Then these "editor lines" addresses and code are put through a Linker which resolves labels which deserves it's own paragraph.

Why the repeating of the same vague info with no actual meaning on this topic I'll never know but appearently the linker ;if there is more than one Object file , will remove the labels and some how give this line of code a different address type when it already had a place in the sequence of an"editor" which is really not a address. Do you see what I'm getting at? The linker really can't change the program sequence of execution and the code was on a line in sequence with the other code in an editor so what actually takes place?

How do we go from editor lines to program addresses?

Thanks in advance!
 
Old 10-20-2011, 01:17 AM   #2
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,359

Rep: Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751
I reckon you'll get a good answer (several) if you ask the Mods (via the Report button) to move this to the Programming forum. In fact I'm sure similar qns have been asked before.
 
1 members found this post helpful.
Old 10-20-2011, 02:04 AM   #3
theKbStockpiler
Member
 
Registered: Sep 2009
Location: Central New York
Distribution: RPM Distros,Mostly Mandrake Forks;Drake Tools/Utilities all the way!GO MAGEIA!!!
Posts: 986

Original Poster
Rep: Reputation: 53
I intended to post this in programming but... I made a mistake. I have been digging through this material.http://publib.boulder.ibm.com/infoce...ppldev_108.htm

 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
i need to write a c code to ping IP addresses which are read from a text file vinothtitan Linux - Newbie 5 10-12-2014 11:23 PM
Open Text Editor through C-program at server-side and it should display to all client sarworld Linux - Server 3 04-13-2010 02:54 AM
regarding Program Headers in ELF file kk2mkk Programming 6 02-14-2010 12:01 PM
in Pascal: how to exec a program, discard text output or send to text file Valkyrie_of_valhalla Programming 6 05-02-2007 09:50 AM
Which light text editor can copy text from file and paste in browser? davidas Linux - Software 9 03-06-2006 11:28 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 02:50 AM.

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