Libiberty functions

Paulo J. Matos pocm@soton.ac.uk
Thu Mar 8 14:57:00 GMT 2007


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



More information about the Gcc mailing list