On Mar 8, 12:02 pm, "Jim Langston" <tazmas...@rock etmail.comwrote :
"karthik.infogu y" <karthik.infogu ...@gmail.comwr ote in message
news:11******** **************@ 8g2000cwh.googl egroups.com...
Any one just let me know what are the different segments in a compiler
and what data
are stored in different segments????
I think you are ocnfusing your terms. A compiler is a program that compiles
a program into object code which is then linked into an executable by a
linker, sometimes by the compiler itself.
That object code is typically organized into sections or segments.
Code goes into a code or "text" section, static read/write data into a
data section, data which can be initialized to zero bits into yet
another section and so on. A C++ compiler may use special sections due
to its linkage model for inline functions and other data which may be
generated more than once in different compilation units and have to be
merged. Special sections may be used for pointers to the constructor
and destructor stubs, so that when these are collected together into a
section, they form a table that can be iterated over to do the call-
outs. All of this is very platform-specific, of course.
>
Just what is your question?