Updated: 2007-10-01 [IMIB]
Archived: $Revision: 1.11 $
Size |
Register |
1 byte | R0L |
2 byte | R0 |
4 byte | R2R0 |
Other parameters than the first are passed on the stack.
<type><cpu_variant><memory_model><float_size><library_configuration>.r48
where
To allocate data in a specific memory you can in C use variants of the standard function with the memory attribute prefixed, e.g. __near_malloc. In C++, the memory type attribute can be specified for example using new __near.
Memory type |
Segment name | Memory attribute | Used by default in memory model |
Near | HEAP | __near | Near |
Far | FAR_HEAP | __far | Far |
Huge | HUGE_HEAP | __huge | Huge |
See the IAR Runtime Environment and Library User Guide for information about how to set the size for each heap.
Debug
monitor bank address
The debugger allocates a 64-Kbyte continuous
address area as the emulator's work area for use by the
debug monitor. Specify any bank that the target system
does not use. The debug monitor uses a 64-Kbyte area from
the start address of the specified bank. (Example: If the
specified bank is 0xF0
, then the debug
monitor uses a 64-Kbyte area beginning with address 0xF000000
.)
The following limitations apply:
Emulation Memory Allocation
When Memory Expansion Mode or Microprocessor
Mode has been selected, emulation memory can be
allocated to the extended area to be debugged (in up to
four areas). Here, allocate memory for the debug target
area and specify its mapping information.
Bank
(Set bank address) |
Specify the bank
address of the debug target area to be allocated
in hexadecimal notation. If specified as C0 ,
0xC00000 is the start address of the
debug target area. |
Length (Specify the size of area) |
Specify the size of the debug target area (256 bytes or 1 Mbytes). If Length is specified to be 256 bytes, banks 00, 04, 08, and up to FC (every four banks) are specified as Bank; if Length is specified to be 1 Mbytes, banks 00, 10, 20, and up to F0 (every 16 banks) are specified as Bank. |
Map
(Specify the area map) |
Specify the mapping
information (Internal or External)
for the specified area. If no area is specified,
select No Use. Internal: The area specified to be "Internal" is mapped into the internal area (emulation memory). External: The area specified to be "External" is mapped into the external area (external resources in the target system). |
Copyright 2007 IAR Systems. All rights reserved.