PAUL MOORE

Code Warrior 'C' Compiler Sections

Discussion created by PAUL MOORE on Jun 22, 2007
Latest reply on Jun 25, 2007 by CompilerGuru
What are the various sections that the C compiler generates and how is the code distributed into these sections?
The closest thing I've found is in the "CodeWarrior Development Studio ColdFire™Architectures Edition Build Tools Reference" in table 32.1.  This only lists the generated sections.  It doesn't explain what gets put in each of these sections.  I assume all "code" goes in section ".text" and all "const" data goes in ".rodata".  Is there some other manual that clearly explains the other sections?  The table doesn't show ".bss" or ".sbss" sections but I know the compiler generates these.
 
Thanks

Outcomes