This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Libiberty functions


Thank you all for the excellent suggestions, I'll be looking into all
of your references this afternoon. Regarding my initial question, I
understand I don't need free.
My real problem was if I needed to include standard libraries after
including system.h or if system.h would provide me free from stdlib
but I understand now that I need stdlib anyway. :)

Thank you.

On 3/8/07, Andrew Pinski <pinskia@gmail.com> wrote:
On 3/8/07, Diego Novillo <dnovillo@redhat.com> wrote:
> Another convenient way of allocating a pool of memory is to use obstacks
> (See libiberty/obstack.c).

Though alloc-pool might be a better idea than obstack, see
alloc-pool.[ch].  As alloc-pool contains checking code while obstack
does not.

-- Pinski



--
Paulo Jorge Matos - pocm at soton.ac.uk
http://www.personal.soton.ac.uk/pocm
PhD Student @ ECS
University of Southampton, UK


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]