F
Falcon Kirtaran
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
I'm pretty sure the compiler can, at its option, completely ignore that
you put inline, or inline things you didn't direct it to. Generally I
would let it take care of that kind of thing itself.
- --
- --Falcon Darkstar Christopher Momot
- --
- --OpenPGP: (7902:4457) 9282:A431
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iQIcBAEBAgAGBQJJ85E3AAoJEKmxP9YxEE4rAwoQALb4xZqR4o6P/K8RguMydn5O
N1clRhnErP68gpuOkpUB2Fl75etar4nh7sbXt/pfIDxoq7U5sBCZg5Iriv3x++Gq
PxhZ5ouH+Yb87utX/q6QovyJwuMgeI7W47HTiaiTyihyEZACNDydgpX1x3srIWt3
1x+3rwgqHdNgADEfgP3bhAzvTT6wGS2jYaStRpzQuEZ4r6v3/2Blc0NMxUnCjfWo
ZPOOLYMw+aTFkGQcMGnDBHArsNbP9gV3CEa/8XhFVcOyQO7O4Qa2ZWAflLZcwryl
o1bGlK5MXPhGkYSwe0D2113tj05yNB4HIXU1wECPB1tYY6ldxujr104A7BP4oWyl
KPiHWGAXloqXrdo4GHh4Y+L3eLwd89n4gg2F87T2OPg2s9Q8zVEzWfNxEu1SphSQ
em5LM9rZ3z1wrVvnqaeDo19ajsW2JZC1EKgydXdnxjT08JdcHCoCQs4pH6PasFQU
W/Hl5ZYLmaEGZhFZcJIU8t6OlQbj1/zoyUqt/AO7h8CYfvIQ+rfC43hn3ukz1RQw
Ak+6BNYQisoihYKPK8WnVTly8TOK201M39WZtAw/9pqKMSZoWkt9nXLoTAeR99EA
z2COCXosZw8cdb9lc0SHYoWlOu/UyHq73PkAgC9pHzADH+CMaN/Sm4Jn9hlHuo9g
qakRsPFUnoRwCRsdF+eC
=11Q4
-----END PGP SIGNATURE-----
Hash: SHA1
Hello,
my question is about function inlining.
Suppose I have:
static inline void bar (void)
{
..
}
static inline void foo (void (*f) ())
{
..
f()
..
}
int main (void)
{
..
foo(bar);
..
}
Is it possible for the compiler to inline all together?
What is the standard behavior of c99 in this case?
Thanks,
tano
I'm pretty sure the compiler can, at its option, completely ignore that
you put inline, or inline things you didn't direct it to. Generally I
would let it take care of that kind of thing itself.
- --
- --Falcon Darkstar Christopher Momot
- --
- --OpenPGP: (7902:4457) 9282:A431
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iQIcBAEBAgAGBQJJ85E3AAoJEKmxP9YxEE4rAwoQALb4xZqR4o6P/K8RguMydn5O
N1clRhnErP68gpuOkpUB2Fl75etar4nh7sbXt/pfIDxoq7U5sBCZg5Iriv3x++Gq
PxhZ5ouH+Yb87utX/q6QovyJwuMgeI7W47HTiaiTyihyEZACNDydgpX1x3srIWt3
1x+3rwgqHdNgADEfgP3bhAzvTT6wGS2jYaStRpzQuEZ4r6v3/2Blc0NMxUnCjfWo
ZPOOLYMw+aTFkGQcMGnDBHArsNbP9gV3CEa/8XhFVcOyQO7O4Qa2ZWAflLZcwryl
o1bGlK5MXPhGkYSwe0D2113tj05yNB4HIXU1wECPB1tYY6ldxujr104A7BP4oWyl
KPiHWGAXloqXrdo4GHh4Y+L3eLwd89n4gg2F87T2OPg2s9Q8zVEzWfNxEu1SphSQ
em5LM9rZ3z1wrVvnqaeDo19ajsW2JZC1EKgydXdnxjT08JdcHCoCQs4pH6PasFQU
W/Hl5ZYLmaEGZhFZcJIU8t6OlQbj1/zoyUqt/AO7h8CYfvIQ+rfC43hn3ukz1RQw
Ak+6BNYQisoihYKPK8WnVTly8TOK201M39WZtAw/9pqKMSZoWkt9nXLoTAeR99EA
z2COCXosZw8cdb9lc0SHYoWlOu/UyHq73PkAgC9pHzADH+CMaN/Sm4Jn9hlHuo9g
qakRsPFUnoRwCRsdF+eC
=11Q4
-----END PGP SIGNATURE-----