All of lore.kernel.org
 help / color / mirror / Atom feed
* Re: another newbie question regarding alsa-api
  2002-06-30 20:37 another newbie question regarding alsa-api joy
@ 2002-06-30  2:47 ` Paul Davis
  0 siblings, 0 replies; 2+ messages in thread
From: Paul Davis @ 2002-06-30  2:47 UTC (permalink / raw)
  To: joy; +Cc: alsa-devel

>just another simple question regarding alsa-api or more. are there any
>advanteges of using alloca functions versus malloc functions without
>of simplyier handling? has it any effect on memory handling?

its not clear that you know what alloca does. it allocates memory from
the stack, not the heap; as a result, it does not need to be
explicitly freed - when the execution frame is popped (i.e. the
function that called alloca returns), the space is reclaimed
"automatically". 

this has nothing to do with ALSA, btw. alloca has been around for many
years.

--p


-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
No, I will not fix your computer.
http://thinkgeek.com/sf

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

* another newbie question regarding alsa-api
@ 2002-06-30 20:37 joy
  2002-06-30  2:47 ` Paul Davis
  0 siblings, 1 reply; 2+ messages in thread
From: joy @ 2002-06-30 20:37 UTC (permalink / raw)
  To: alsa-devel

hi,

just another simple question regarding alsa-api or more. are there any
advanteges of using alloca functions versus malloc functions without
of simplyier handling? has it any effect on memory handling?

-- 
regards

____-
joy

________/\---------%%%___________-----------
webcast every sunday 2000 cest at pingfm.org

pgp key at: x-hkp://wwwkeys.de.pgp.net


-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
No, I will not fix your computer.
http://thinkgeek.com/sf

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

end of thread, other threads:[~2002-06-30 20:37 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-06-30 20:37 another newbie question regarding alsa-api joy
2002-06-30  2:47 ` Paul Davis

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.