CN1174320C - Dynamic memory administration for target data in small allied programme in Jave card - Google Patents
Dynamic memory administration for target data in small allied programme in Jave card Download PDFInfo
- Publication number
- CN1174320C CN1174320C CNB001286811A CN00128681A CN1174320C CN 1174320 C CN1174320 C CN 1174320C CN B001286811 A CNB001286811 A CN B001286811A CN 00128681 A CN00128681 A CN 00128681A CN 1174320 C CN1174320 C CN 1174320C
- Authority
- CN
- China
- Prior art keywords
- memory
- data
- target
- card
- computer installation
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Expired - Fee Related
Links
Images
Landscapes
- Stored Programmes (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
The subject of the invention is the dynamic memory administration method and device for target data (10, 12) used in the smart card (8) especially in Jave card. It is suggested to realize the target and method of all memory targets (10, 12) on the smart card and can manage the memory when the card program especially the Java applet is running. The memory management includes the traditional functions such as writing, reading, editing, memory allocation, getting rid of allocation, and as another optional characteristics-betaking memory segmentation. In one preferable embodiment of the invention, the memory or the data target (10, 12) generated by the dynamic memory administration no longer uses the logic structure with detailed data but only uses the rude logic structure of all data targets of one applet or several applets. In the data target, the logic directory system is used to manage the data targets (14, 16, 18, 21, 22).
Description
Technical field
The present invention relates to be used for the programming and the pattern of the function of application of Electronic Accounting Machine Unit, this device has limited computational power, can only support senior modern procedures design concept with less important degree.The present invention be more particularly directed to the particularly method and apparatus of the dynamic memory management of datum target in the Java card of smart card.
Background technology
Comparing with desk-top computer, mainly is to be used for only having rudimentary computing power and can not being programmed for the general purpose device of supporting the advanced procedures design concept at the device that begins to mention.In order to disclose the present invention, the example of being quoted is a smart card, and the card of the little memory chip of its own microprocessor promptly is installed.Data can be stored on the chip, and this can carry out diversified business processing together with pay the bill the automatically primary application program of device program of cash in the cash machine for example.These chip cards to hold degree very high, their possible application programs and their applicable fields develop rapidly.
Two kinds of smart cards are arranged: first kind is the system-oriented smart card of file, it is used as the ISO7816-4 interface agreement of communicating by letter with primary application program, when initialization should block, the system that on card, creaties directory, the internal memory of the primary application program data of visiting smart card is accurately constructed and specify to this catalog system.All available internal memories on this catalog system management smart card.
Yet the shortcoming of these so-called ISO smart cards is the application program that needs use assembler code to come the programmatic access storer.This is very inconvenient for the programmer, and high-level programming can not be used for the application program of this card.
Second kind is object-oriented smart card, and it meets on the smart card needs of storage even applet, moves this applet when this card insertion smart card reader.These programs that are independent of primary application program work can be carried out indivedual less business processings according to the field of application program automatically.Write these application programs with the Java programming language, the reason of Here it is this card is called Java card.Java card is supported object-oriented programming, and this has opened the interface that leads to the modern programming technology.Finally, can write application program by means of these modern technologies with efficient way, application code can utilize again and can utilize standard interface.But the memory capacity of smart card and computing power are limited especially usually.
In order to meet the demand growing to the Java card application program, the requirement of holding a more than application program on a card is also increasing.
As a result, tend to so-called " multiple utility program " smart card.In response to this trend, a plurality of service providers just stepping up to cooperate in case alleviate client some task, create client's specific stimulation or start particular service.Example comprises that airline and rent-a-car company and/or chain hotel cooperate so that provide special service based on special discounting system and reservation facility for client.
Yet this requires the logic chain between the application program of all related companies to be stored in as much as possible on the sheet smart card, and the cooperation of these intercompany does not need three independent smart cards.Very inconvenient from an exchanges data that snaps into another in this system, can not accepted by client yet.In the process that group business is concentrated gradually, if according to the existing smart card of above-mentioned business issue redaction, with the business of supporting and interacting and provide in two tame new companies, then the upgrading of this card is necessary.On the Java of prior art smart card, be not easy to carry out very much this upgrading or the exented memory requirement that only occur at the Java Applet run duration, a because Java card stored programme, applet one installs on the Java card, with regard to the size of static allocation by each data field of Java card application program-so-called J ava applet-visit.If change or during the storer upgrading, this static allocation internal memory is very dumb.
And the internal memory that datum target takies is that statistics is fixing, and is irrelevant with the size of data of storing in the datum target.This means at first that at the applet run duration when storing the data of a small amount of in the big datum target at preset position, a large amount of internal memories is remaining useless.On the other hand, only, be characterised in that the programming that is unfavorable for applet, because each data field must have the unique independent title that applet can be visited according to the data of the datum target logical construct storage that distributes.Fig. 1 is based on this situation of personal data record expression.The datum target of figure expression Java card applet in each circle, two people's of storage address date on the Java card applet-promptly, the core position of everyone name: Namel, Name2; The core position of telephone number: Tel.1, Tel.2; Or core position Str.1, Str.2, Adr.1, the Adr.2 of address date.The size of these datum targets must be set when creating applet.No matter whether need storage allocation in all targets of run duration.Shown in the circle of each separation in the smart card synoptic diagram, irrespectively define these datum targets each other separately.Another shortcoming is that Java Applet can not visit the data of another Java Applet, because each applet is protected its oneself data.As a result, if two applets need two identical data recording, then they must repeated storage on card.This means and effectively to utilize internal memory.
Therefore current task be with dynamically with manage the available Java card that is used for data efficiently on internal memory and mode that can the address data record by the some different applets Java card of programming.
Summary of the invention
Key concept of the present invention is based in conjunction with the idea of the advantage of system-oriented smart card of catalogue and Java card so that realize above-mentioned purpose.
Realize the special benefits of Java card-be they are easy to realize target and relevant method-utilize this advantage so that the advantage of the system-oriented smart card of catalogue to be provided on smart card according to the present invention.
As a result, be an aspect of the object-oriented smart card of the present invention below, suggestion realizes the target and the method for each internal memory target on smart card, this smart card can be at the card program complete managing internal memory of run duration of Java Applet particularly.Memory management comprises such as writing, read, editor, Memory Allocation, removing the traditional function that distributes and as another additional selectable characteristics-go internal memory segmentation (de-frag-menting).
Another characteristics of the present invention are to be easy to make identical memory management target to applet addressables all on the Java card.
In a preferred embodiment of the invention, the detailed logic structure that internal memory that above-mentioned dynamic memory management is created or datum target do not re-use data is only used the rough logical organization of all datum targets of an applet or the structure that can be visited by some applets.
Be suitable for the preferred embodiment of object-oriented smart card notion according to the present invention, in datum target, use the logical directories systems management data, this system resides on the Java card with so-called code with memory management object form of correlation technique.According to the needs of application program, the code coding that is used for the administrative directory system becomes applet self, also may be stored in the operating system of card or in another position, and can be called by one or more applets.
By notion of the present invention being transferred on the ISO file system card, therefore in datum target, use consequent flexible file system also to solve the problem of dynamic generation layout, that is, format the whole memory system on the card by primary application program or " from card " application program.This is especially necessary in dynamic object-oriented application program especially, wherein only generates the card layout at so-called high level goal run duration.These high level goals form the universaling component of interface between primary application program and the card application, expression is used for the placeholder (placeholder) of data and order commutative operation, specific implementation up to run duration data or order is accordingly filled up these placeholders, generate memory requirements then, this memory requirements occurs in that the run duration of applet is spontaneous more or less.
Therefore the advantage that can sum up notion of the present invention is as follows:
In the datum target of applet, enable " automatic memory management " function by means of catalog system.As a result, exist the position dynamic of applet run duration needs to use in.Therefore take still less internal memory than traditional static memory management method.
And in the applet programming phases, all data structures needn't file in object construction.Some degree stage afterwards that can only allow with rough internal memory format adds, in fact can be after the data input " self installs ".Also only need less datum target, cause the less management by objective of needs.
At last, application program and instrument might only define its data structure, for example the card layout of datum target after the initialization of application program run duration Java card.
The invention provides a kind of method that is used for the supervisory computer device's memory, this computer installation has the limited support for the advanced programming notion of datum target, it is characterized in that described method comprises:
Applet brings into operation;
Use has the memory management target of associated dynamic EMS memory management process and comes the dynamic management internal memory;
For more internal memory of data record required memory of datum target distribution ratio storage, be used to store data recording; And
Finish applet.
The present invention also provides a kind of computer installation that has for the limited support of advanced programming notion, comprising: the internal memory that is used to store datum target; Be used for during the program run that realizes on the described device, use memory management target to come the device of the described internal memory of dynamic management with associated dynamic EMS memory management process.
The present invention also provides a kind of data system, comprising:
A computer system that is used to move primary application program;
A computer installation that has for the limited support of advanced programming notion comprises:
Be used to store the internal memory of datum target; With
Be used for during the program run that realizes on the described device, use to have in the associated dynamic
The memory management target of depositing management method is come the device of the described internal memory of dynamic management; With
The interface that is used for swap data and order between described computer installation and described primary application program.
Description of drawings
Represent embodiments of the invention in the accompanying drawing, be described in more detail below this embodiment.In the accompanying drawing:
Fig. 1 represents to be used for address data and card/applet data according to the synoptic diagram of prior art storage Java Applet datum target.
Fig. 2 represents to store according to the present invention the synoptic diagram of the datum target in-list system data of Java Applet.
Fig. 3 represents according to the present invention at the schematic block diagram of Java Applet run duration EMS memory management process key step.
Embodiment
With reference to Fig. 2,, describe by increased dynamic memory management of the present invention being necessary to make under the sampled situations of smart card upgrading.
In this case, the special Java card series of also having been issued one group of client by airline's distribution is assigned with additional function, for example owing to new cooperation agreement between airline and the chain hotel.A consequence of new function is to hold two groups of new individual master datas in the existing internal memory of this card, and needs visit one group of existing individual master data, for example holder of this card.
Can be easy to now and will block series neatly be updated to new state according to the present invention.As a result, when this neocaine of format, keep special big memory field for datum target in advance.Then generate based on new layout of the present invention from Fig. 2.
The example of Fig. 2 represents to have the synoptic diagram of the smart card 8 of two data targets: datum target 10 is datum targets of personal data, and datum target 12 is datum targets of card/applet management data.
During initialization should block, on the one hand data target internal memory is slightly formatd the applet application code on the other hand.
In this example, by with the dialogue of primary application program of any terminal of card, the actual above-mentioned new function that realizes smart card.By blocking the smart card reader that inserts terminal, start primary application program.Back-up storage all data on smart card then, they are used for buffer memory they and initialization this is sticked into the new write operation of row.
Primary application program is then carried out above-mentioned datum target and the application code of thick format, and the new required applet with expanded function write corresponding memory field and will block existing legacy data writes on new memory location with the datum target that mates.
For example, under existing conditions, card holder's 14 available data record writes on the catalog system of the datum target 10 that is used for personal data.The present invention also stipulates above-mentioned " memory management target " and goes to distribute, go internal memory segmentation and the conventional memory management method from the internal memory read/write to internal memory to be stored on the card together such as Memory Allocation, internal memory.After this this smart card of reprogramming, the user can utilize the function of its expansion.
The user takes out this card that obtains upgrading of this cacaine from card reader, and can be for example accesses to stay to provide with the address, hotel based on the new cooperation between airline and chain hotel and experience its advantage by blocking the card reader of inserting airline.As another characteristics, user self also needs to import another and organizes individual master data so that can utilize the new function of this card fully.
With (for clear only by summary) shown in the synoptic diagram, the user inserts terminal with smart card as Fig. 3, and applet begins-and step 110-and prompting user-step 120-import his one group of new individual master data.For example he so does through the card terminal, and provide data-step 130, have an opportunity to be used to proofread and correct " input is correct? " after the check 140, judgement 140-NO branch, calling later on according to memory management target of the present invention-step 150 by YES branch, be used for based on dynamic memory management method storage data of the present invention.
Target is received necessary parameter, such as the number of characters and the character itself of input name, at the applet run duration, generates the new internal storage structure 16-step 160 of Fig. 2 with the personal data 14 identical directory trees that are used for memory card holder oneself.
Therefore, in preferred operation mode, only call the memory management target one time for every data recording.Perhaps, can also be respectively each name or each data field is called.In both cases, by calling relevant distribution method and transmitting relevant parameter, the necessary internal memory of a data that memory allocated is imported.
The action (referring to the round dot of Fig. 3) of taking other in user or applet stops applet-step 170-and extract smart card out from terminal afterwards.Therefore, at applet run duration storage allocation, handle and the programming smart card in produce greater flexibility.
Yet except the processing that Fig. 3 represents, other a large amount of processing can both realize with memory management notion provided by the invention.
Such as after input article one data recording, for example repeat this process (Fig. 3 no longer represents) among Fig. 2 for second Maurer Data Record 18.The user selects available function to be used to check the data of watching up-to-date input on the display of purpose at primary application program then.This check shows that second name is wrong input, and correct spelling needs plural letter.Therefore the user need correct name, and correctly imports new name.New input is the invoke memory management objectives once more, discharge the diverse location of distributing to the internal memory of misspellings name and new name being write on internal memory with consecutive data block.
The core position of Shi Fanging is labeled as available internal memory simultaneously.
After freely selecting one period, the cooperation agreement of the 3rd preceding two companies of copartner-rent-a-car company-adding.Therefore client's calorie requirement is equipped expanded function-by the new applet of new partnership distribution again.Write on the available data on the necessary energy of the new applet access card on this card and need additional memory additional individual data record result.
In this case, the advantage that can show EMS memory management process of the present invention once more: as mentioned above, this method makes this card applet catalogue relevant with incorporate datum target 12 into after existing applet ID inlet 21 as new inlet 22 of packing into of the new applet with its ID, can call this catalogue conversely.At new applet run duration, can import required new individual Maurer Data Record as mentioned above specific to client.In this is handled, more effectively utilize internal memory more practically than prior art smart card, because just know the memory field that datum target was positioned at of individual master data from beginning.This means and to know the bit position that the described memory field of mark begins and finishes new applet.New applet conversely the invoke memory management objectives in case read with display card on existing data recording and the new data recording of storage.
To become more obvious by observing applet programming itself according to another advantage of the inventive method.Because the applet of programming only need be known the structure of a data record, and do not need to know the size in already used data recording data district, so that visit data record and other data recording that can create same structure.Newly-built data recording only is stored as new " catalogue " with relative data area with auxiliary structure.This has simplified the programming of applet.
In addition, can realize purpose of the present invention with hardware, software or both combinations.Any computer system or computer installation all are suitable for carrying out whole or in part the method according to this invention.Feasible hardware/software combination can be the standard computer with computer program, and this hardware/software combination control computer is so that carry out the method according to this invention whole or in part when loading and move.
This program also can be in the memory management of host computer side operation and control smart card.The present invention can also be embedded into and comprise in the computer program that allows to realize all characteristics of describing method here, and when in the computer system of packing into, it can carry out described method.
" computer programming system " of current context and " computer program " are meant any language of one group of instruction or any expression of symbol or code, design the feasible system with information processing capability of this instruction and directly or continuously carry out function below one of them or two following functions: a) translate into different language or symbol or different codes; B) the different material forms of regeneration.
Claims (12)
1. method that is used for the internal memory of Management Calculation machine (8), this computer installation (8) has the limited support for the advanced programming notion of datum target (10,12), it is characterized in that described method comprises:
Applet brings into operation;
Use has the memory management target of associated dynamic EMS memory management process and comes dynamic management internal memory (150,160);
For more internal memory of data record required memory of datum target (10,12) distribution ratio storage, be used to store data recording (14,16,18,21,22); And
Finish applet.
2. according to the process of claim 1 wherein that the logical circuit of realizing the memory management target resides on the described computer installation (8).
3. manage most data recording (14,16,18,21,22) according to the process of claim 1 wherein with the interior bibliographic structure of datum target (10,12).
4. according to the method for claim 2 or 3, wherein computer installation (8) is object-oriented smart card.
5. a computer installation (8) that has for the limited support of advanced programming notion comprising: the internal memory (10,12) that is used to store datum target; During the last program run that realizes of described device (8), use memory management target to come the device (12) of the described internal memory of dynamic management with being used for associated dynamic EMS memory management process.
6. according to the computer installation of claim 5, realize that wherein the logical circuit of memory management target resides on the described computer installation (8).
7. according to the computer installation of claim 5, wherein computer installation (8) is object-oriented smart card, particularly Java card.
8. according to the computer installation of claim 5, wherein said internal memory comprises at least one datum target, and described datum target is used for bibliographic structure storage data recording (14,16,18,21,22), described bibliographic structure has than more internal memory of data record required memory of storage.
9. data system comprises:
A computer system that is used to move primary application program;
A computer installation (8) that has for the limited support of advanced programming notion comprising:
Be used to store the internal memory (10,12) of datum target; With
Be used for during described device (8) is gone up the program run that realizes, use memory management target to come the device of the described internal memory of dynamic management with associated dynamic EMS memory management process; With
The interface that is used for swap data and order between described computer installation and described primary application program.
10. according to the data system of claim 9, realize that wherein the logical circuit of memory management target resides on the described computer installation (8).
11. according to the data system of claim 9, wherein computer installation (8) is object-oriented smart card, particularly Java card.
12. according to the data system of claim 9, wherein said internal memory comprises at least one datum target, described datum target is used for bibliographic structure storage data recording (14,16,18,21,22), described bibliographic structure has than more internal memory of data record required memory of storage.
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
DE19994862.6 | 1999-09-24 | ||
DE19994862 | 1999-09-24 |
Publications (2)
Publication Number | Publication Date |
---|---|
CN1289967A CN1289967A (en) | 2001-04-04 |
CN1174320C true CN1174320C (en) | 2004-11-03 |
Family
ID=7935453
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CNB001286811A Expired - Fee Related CN1174320C (en) | 1999-09-24 | 2000-09-19 | Dynamic memory administration for target data in small allied programme in Jave card |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN1174320C (en) |
Families Citing this family (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7325118B2 (en) * | 2003-09-30 | 2008-01-29 | Samsung Electronics, Co., Ltd. | Method and apparatus for executing dynamic memory management with object-oriented program |
CN1321377C (en) * | 2005-06-16 | 2007-06-13 | 北京航空航天大学 | Method for controlling smart card storage environment |
CN101344861B (en) * | 2007-07-10 | 2012-12-05 | 锐迪科微电子(上海)有限公司 | Smart card internal memory management method |
CN102063384B (en) * | 2009-11-13 | 2013-07-03 | 恒宝股份有限公司 | Method for performing read-write operation on programmable read-only memory with cache by JAVA card |
CN105426237B (en) * | 2015-11-13 | 2018-11-06 | 武汉天喻信息产业股份有限公司 | A kind of method and system of dynamic management JavaCard transient state resources |
CN105786623B (en) * | 2016-03-04 | 2019-03-05 | 东港股份有限公司 | A kind of Java card multichannel temporary object management method |
CN107438101B (en) * | 2017-07-26 | 2020-09-29 | 北京中电普华信息技术有限公司 | Service expansion method and device for single application |
-
2000
- 2000-09-19 CN CNB001286811A patent/CN1174320C/en not_active Expired - Fee Related
Also Published As
Publication number | Publication date |
---|---|
CN1289967A (en) | 2001-04-04 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US5247681A (en) | Dynamic link libraries system and method | |
CN1278236C (en) | Arrangements storing different versions of a set of data in separate memory area and method for updating a set of data in a memory | |
US7571163B2 (en) | Method for sorting a data structure | |
KR100289628B1 (en) | Resource management method and apparatus for information processing system of multitasking facility | |
US6505283B1 (en) | Efficient memory allocator utilizing a dual free-list structure | |
US7587566B2 (en) | Realtime memory management via locking realtime threads and related data structures | |
EP0590645B1 (en) | Method and system for reducing memory allocation requests | |
CN101344861B (en) | Smart card internal memory management method | |
CN101421711A (en) | The virtual execution system that is used for resource-constrained devices | |
EP0533805A1 (en) | Method for efficient non-virtual main memory management | |
CN1271887A (en) | Method and equipment for distributing stack channel | |
CN101510332B (en) | Method and apparatus for managing memory space of smart card | |
CN1174320C (en) | Dynamic memory administration for target data in small allied programme in Jave card | |
CN101706788A (en) | Cross-area access method for embedded file system | |
US20050256913A1 (en) | System and method for regeneration of methods and garbage collection of unused methods | |
US8972629B2 (en) | Low-contention update buffer queuing for large systems | |
CN116661910B (en) | Application calling method and device | |
CN1282108C (en) | Method and apparatus for reducing RAM size while maintaining fast data acess | |
EP0844564A2 (en) | Memory manager system | |
US7334104B2 (en) | Satisfying memory allocation requests from memory pool or lookaside lists based on memory size requested to be allocated | |
US5678024A (en) | Method and system for dynamic performance resource management within a computer based system | |
CN1172237C (en) | Method and apparatus of setting up object and keeping addressable characteristics in unpermanent storage | |
US7421446B1 (en) | Allocation of storage for a database | |
EP1444572B1 (en) | Method and apparatus for facilitating compact object headers | |
CN1340763A (en) | Memory mapping regulation for supporting demand of adapter requiring large capacity memory |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C06 | Publication | ||
PB01 | Publication | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant | ||
C19 | Lapse of patent right due to non-payment of the annual fee | ||
CF01 | Termination of patent right due to non-payment of annual fee |