comp.lang.ada
 help / color / mirror / Atom feed
* Heap vs Stack allocation
@ 2005-10-11 20:56 Lionel Draghi
  2005-10-11 21:47 ` Randy Brukardt
                   ` (2 more replies)
  0 siblings, 3 replies; 8+ messages in thread
From: Lionel Draghi @ 2005-10-11 20:56 UTC (permalink / raw)


The paper "Java theory and practice: Urban performance legends, 
revisited - Allocation is faster than you think, and getting faster" 
(http://www-128.ibm.com/developerworks/java/library/j-jtp09275.html?ca=dgr-lnxw07JavaUrbanLegends)
explains (as far as I understand) how JVMs optimize "on-the-fly" memory 
allocation to use stack instead of heap, by using "Escape Analysis".

My feeling is that those writing JVMs are working hard to guess the data 
lifetime and optimize memory allocation accordingly, because the 
language is unable to express this data locality.
I think that Ada semantics open much more opportunity to use the stack 
(or registers).
Am I right, or is this "Escape Analysis" something really powerful?

-- 
Lionel Draghi 
http://en.wikibooks.org/wiki/Wikibooks:Book_of_the_month/September_2005



^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2005-10-13 23:44 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-10-11 20:56 Heap vs Stack allocation Lionel Draghi
2005-10-11 21:47 ` Randy Brukardt
2005-10-12  5:44   ` Jeffrey R. Carter
2005-10-13 23:44     ` Freejack
2005-10-13  2:47       ` Steve
2005-10-13  5:30       ` Jeffrey R. Carter
2005-10-12  1:38 ` Jon Harrop
2005-10-12 12:35 ` Florian Weimer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox