Method for virtually enlarging the stack of a portable data carrier
First Claim
1. A method for virtual enlargement of a data structure of a volatile read-write memory (16) on a portable data carrier that is organized as a stack (26), whereby a fill parameter (GW) describing a fill state for the stack (26) is detected and monitored by comparison with a predetermined limiting value (GW), and a part of the data structure is swapped out to a further storage medium (18, 20) as soon as a predetermined relation between limiting value (GW) and fill parameter is reached, characterized in that the stack (26) is segmented into at least two stack segments (30) and swapping to the further storage medium (18, 20) is effected segment by segment.
2 Assignments
0 Petitions
Accused Products
Abstract
A method is proposed for virtual enlargement of the stack of a portable data carrier (10) allowing reloading of executable program code. To permit the execution of programs requiring a larger stack than that physically present, the stack (26) is segmented into at least two stack segments (30) and their fill state monitored. When complete occupation of a segment (30) is recognized, the oldest stack segment (30) is swapped out to a further storage medium (18). The further storage medium (18) can be a slower memory compared to the stack (26). When sufficient memory space is available in the stack (26) again, the swapped out segment (30) is returned.
19 Citations
16 Claims
- 1. A method for virtual enlargement of a data structure of a volatile read-write memory (16) on a portable data carrier that is organized as a stack (26), whereby a fill parameter (GW) describing a fill state for the stack (26) is detected and monitored by comparison with a predetermined limiting value (GW), and a part of the data structure is swapped out to a further storage medium (18, 20) as soon as a predetermined relation between limiting value (GW) and fill parameter is reached, characterized in that the stack (26) is segmented into at least two stack segments (30) and swapping to the further storage medium (18, 20) is effected segment by segment.
- 14. A portable data carrier (10) having a microcontroller (32) consisting at least of a processor (12), an I/O unit (14), at least one volatile read-write memory (16) with a stack (26), at least one nonvolatile memory (18, 20), an operating system (22) and a data, control and address bus (24), characterized in that the operating system (22) has means for segmenting the stack (26) and for swapping out at least one segment (30) of the volatile read-write memory (16) to the nonvolatile memory (18, 20) when a defined fill state is exceeded.
Specification