JavacardOS will not accept order any more, please contact our partner Feitian online Store:
https://ftsafe.en.alibaba.com/index.html
https://ftsafe.en.alibaba.com/index.html
How much RAM my applet needs
How much RAM my applet needs
I wonder how much RAM my applet will need. What consumes RAM in my applet? I can count the transient variables but how do I find out how much RAM for the stack I need?
Re: How much RAM my applet needs
What consumes RAM in my applet?
transient variables, the stack,APDU buffer
I can count the transient variables but how do I find out how much RAM for the stack I need?
IMO, JCVM method stack is pre-allocated to a minimum size.
You can try to call the method JCSystem.getAvailableMemory(MEMORY_TYPE_TRANSIENT_RESET) within each method and save it to a shared byte array for output. But the method's parameters will also consume stack memory.
Re: How much RAM my applet needs
As far as I know, APDU buffer and stack consume pre-allocated RAM.
Re: How much RAM my applet needs
Thanks for all the answers. I have tried to call JCSystem.getAvailableMemory(MEMORY_TYPE_TRANSIENT_RESET) to know the approximate memory.
Who is online
Users browsing this forum: No registered users and 13 guests