Forums
New posts
Search forums
Members
Current visitors
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Menu
Log in
Register
Install the app
Install
Forums
Archive
Archive
C Programming
gcc knows about malloc()
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
Reply to thread
Message
[QUOTE="Erik Trulsson, post: 2468926"] GCC knows about and has special handling for a large number of standard C functions (as well as a smaller number of functions that are not part of Standard C.) Since GCC knows how these functions are supposed to behave it can do extra optimizations as well as give extra warnings for them. Which functions it knows about is documented in the GCC manual (search for 'built-in functions'.) (GCC manuals can be found at [URL]http://gcc.gnu.org/onlinedocs/[/URL] ) Some other compilers do similar things. This is one reason it can be a very bad idea to try to define your own versions of standard functions, since the compiler might generate inlined code for the standard function and never generate a function call at all, or might do some other optimizations. [/QUOTE]
Verification
Post reply
Forums
Archive
Archive
C Programming
gcc knows about malloc()
Top