This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

execute from one address but are stored at a different address EXAMPLE

Special ROM (SROM) segments which execute from one address but are stored at a different address

Specifying Special ROM (SROM) Segments
Use the following form of the SEGMENTS directive to specify the Special ROM (SROM) segments.

SEGMENTS (segment-name (execute) [« ! »« storage »] « , ... »)

Where

segment-name is the name of the segment.
execute is the execution address of the segment. The segment must be copied from the storage address to the execution address by the application program before it can be executed.
! specifies that the linker should not reserve memory at the execute address for the segment. This is useful when you have several SROM segments that execute from the same memory space.
storage is the storage address of the segment. If the storage address is not specified, the segment is stored in the SROM memory class.

Refer to for more information about using SROM segments.


has anybody an example for keil arm7 ?

0