Reply by Dobsik Lubomir-RC085C June 20, 20032003-06-20
if, for example, "IntVectors" is the C function you want to put in a particular memory segment, you could try something like:
 
# ensure the interrupt vectors are not deadstripped
FORCE_ACTIVE {FIntVectors}
 
SECTIONS {
 
 .int_vectors_section :
 {
  OBJECT (FIntVectors, IntVec.c)
 } > .p_flash_ROM
... etc.
 
 
hope this helps
 
regards, Lubomir
-----Original Message-----
From: wjschint [mailto:w...@mchsi.com]
Sent: 20. června 2003 7:56
To: m...@yahoogroups.com
Subject: [motoroladsp] Using Sections in Code Warrior for DSP56807

I want to link in an interrupt vector table (written in C).  I assume
I need to create a special section - starting at 0x4 or what ever,
and then link the table at this location.  Specifically, how does one
do this?

I know how to create sections in the linker command file, and I know
how to use sections directive in ASSY, but how does one do this with
a C file?  For example, how do I "tell" the linker to "put" IntVec.c
starting at 0x4 program RAM, while putting the rest of the C program
code into the default .text sections?

Thanks in advance - Bill


_____________________________________
Note: If you do a simple "reply" with your email client, only the author of this message will receive your answer.  You need to do a "reply all" if you want your answer to be distributed to the entire group.

_____________________________________
About this discussion group:

To Join:  m...@yahoogroups.com

To Post:  m...@yahoogroups.com

To Leave: m...@yahoogroups.com

Archives: http://www.yahoogroups.com/group/motoroladsp

More Groups: http://www.dsprelated.com/groups.php3


">Yahoo! Terms of Service.


Reply by wjschint June 20, 20032003-06-20
I want to link in an interrupt vector table (written in C). I assume
I need to create a special section - starting at 0x4 or what ever,
and then link the table at this location. Specifically, how does one
do this?

I know how to create sections in the linker command file, and I know
how to use sections directive in ASSY, but how does one do this with
a C file? For example, how do I "tell" the linker to "put" IntVec.c
starting at 0x4 program RAM, while putting the rest of the C program
code into the default .text sections?

Thanks in advance - Bill