Date: Wed, 9 Aug 2000 17:14:15 +0100 From: Ben Smithurst <ben@FreeBSD.org> To: Ariel Burbaickij <Ariel.Burbaickij@mni.fh-giessen.de> Cc: Mark Ovens <marko@freebsd.org>, questions@freebsd.org Subject: Re: How to inhibit inline functions appearing during debugging(-g)fromshowing up ? Message-ID: <20000809171415.D48327@strontium.scientia.demon.co.uk> In-Reply-To: <Pine.GSO.4.10.10008091643410.3461-100000@sun34> References: <20000809125157.B251@parish> <Pine.GSO.4.10.10008091643410.3461-100000@sun34>
next in thread | previous in thread | raw e-mail | index | archive | help
Ariel Burbaickij wrote: > I know that they are from ctype.h I also know the situations when these > functions are very handy , point is though I have neither included the > header nor typed the functions explicitly in by myself.So we are both > still searching for solution :) #define _DONT_USE_CTYPE_INLINE_ before your #include <ctype.h>, and they should stop them. You should probably only use this when debugging though, since the inlines make the functions faster (as you might have guessed). ben@magnesium:~/tmp$ time ./countspaces </kernel spaces=68628 nonspaces=5740296 ./countspaces < /kernel 0.93s user 0.06s system 99% cpu 0.992 total ben@magnesium:~/tmp$ time ./countspaces2 </kernel spaces=68628 nonspaces=5740296 ./countspaces2 < /kernel 0.43s user 0.20s system 99% cpu 0.627 total ben@magnesium:~/tmp$ time ./countspaces </kernel spaces=68628 nonspaces=5740296 ./countspaces < /kernel 0.93s user 0.06s system 99% cpu 0.992 total ben@magnesium:~/tmp$ time ./countspaces2 </kernel spaces=68628 nonspaces=5740296 ./countspaces2 < /kernel 0.58s user 0.05s system 99% cpu 0.627 total ben@magnesium:~/tmp$ time ./countspaces </kernel spaces=68628 nonspaces=5740296 ./countspaces < /kernel 0.91s user 0.09s system 99% cpu 0.993 total ben@magnesium:~/tmp$ time ./countspaces2 </kernel spaces=68628 nonspaces=5740296 ./countspaces2 < /kernel 0.59s user 0.03s system 99% cpu 0.627 total countspaces2 uses the inlined versions. Thanks for mentioning this, it had been bugging me as well, but until now I never got round to doing anything about it. -- Ben Smithurst / ben@FreeBSD.org / PGP: 0x99392F7D FreeBSD Documentation Project / To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20000809171415.D48327>