Re: Regarding Placement of malloc()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> properly.Now i have to place that malloc file into the gcc-4.0.2 package so
> that when i configure and install this package my program runs with the
> malloc which i have written.Kindly help me to solve this problem.
> 

You can simply place your version of malloc() in your program, and it will be used instead of the
library's malloc() version. If you want to make it available for other programs as well then you
may consider making it a library/shared object (-shared option of gcc), or simply a .o object (-c
option of gcc). You can then link your program with the library/shared object or the .o object. If
you want to make it available to unknown programs then you may also consider making your malloc()
version thread-safe. Hope this helps.

Regards,
Amit Choudhary


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux