Re: G_ARRAY_LENGTH for glib.h?
- From: Sebastian Wilhelmi <wilhelmi ira uka de>
- To: gtk-devel-list redhat com
- Subject: Re: G_ARRAY_LENGTH for glib.h?
- Date: Fri, 21 Jan 2000 21:10:56 +0000
Hi Tim,
> that's btw not always true, even with high optimizations turned on,
> code like
>
> if (0)
> some_func ();
>
> will still cause references to some_func() end up in the object file
> (even for implicit declarations).
I beg to differ.
------------------------------------------------------------------------
test()
{
if (0)
some_func();
}
------------------------------------------------------------------------
yields: (gcc -O2 -S test.c)
------------------------------------------------------------------------
.file "test.c"
.version "01.01"
gcc2_compiled.:
.text
.align 4
.globl test
.type test,@function
test:
pushl %ebp
movl %esp,%ebp
leave
ret
.Lfe1:
.size test,.Lfe1-test
.ident "GCC: (GNU) 2.95.2 20000116 (Debian GNU/Linux)"
------------------------------------------------------------------------
Bye,
Sebastian
--
Sebastian Wilhelmi | här ovanför alla molnen
mailto:wilhelmi@ira.uka.de | är himmlen så förunderligt blå
http://goethe.ira.uka.de/~wilhelmi |
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]