wej has quit [Ping timeout: 252 seconds]
porchao has joined #qi-hardware
porchaso0 has quit [Ping timeout: 264 seconds]
wej has joined #qi-hardware
wolfspraul has joined #qi-hardware
mth has quit [Read error: Connection reset by peer]
mth has joined #qi-hardware
jekhor has joined #qi-hardware
wolfspraul has quit [Ping timeout: 240 seconds]
wolfspraul has joined #qi-hardware
woakas has quit [Ping timeout: 252 seconds]
woakas has joined #qi-hardware
jekhor has quit [Ping timeout: 245 seconds]
jekhor has joined #qi-hardware
xiangfu has joined #qi-hardware
<
kyak>
hm.. i'm about to try that, but perhaps someone already knows
<
kyak>
i have a function with empty body in C. Would it appear in object code?
<
kyak>
does it depend on optimization options? which options?
<
kyak>
if this function is not referenced, is it up the linker maybe to remove this function? And what if it is referenced?
<
larsc>
if it is externally visible it will not be removed
<
larsc>
if it is a static function will most likely be removed
<
larsc>
if you turn off optimization it will still stay, I guess
<
larsc>
the linker may or may not remove it
<
larsc>
if it is for example a shared lib it must not remove it
<
larsc>
if it is a application it might remove it
<
larsc>
if it is a static library linked into a application it also might remove it
<
kyak>
okay ,thanks for the hints - i will have to experiment with my specific compiler and linker to make sure
<
kyak>
this seems to be called as "cross-module optimization" for linker. "When enabled, unreferenced functions will be removed."
<
kyak>
that would be … ?
<
larsc>
link-time-optimization
<
larsc>
that's what gcc calls it
xiangfu has quit [Remote host closed the connection]
Textmode has quit [Ping timeout: 252 seconds]
jekhor has quit [Read error: Connection reset by peer]
jekhor has joined #qi-hardware
rz2k has joined #qi-hardware
jekhor has quit [Ping timeout: 244 seconds]
jekhor has joined #qi-hardware
kilae has joined #qi-hardware
<
whitequark>
you could also avoid LTO (it's costly) by using -ffunction-sections in gcc
<
whitequark>
that's how libc allows for tiny static builds
astr has quit [Ping timeout: 272 seconds]
astr has joined #qi-hardware
<
larsc>
wpwrak: I think the heise system is horrible
<
wpwrak>
you prefer those fora that show you pages upon pages with articles ?
<
wpwrak>
everything linear, no branches in threads. or if they exist they're nearly invisible
<
whitequark>
branches don't work
<
whitequark>
well, not as traditionally done
<
wpwrak>
have you looked at heise.de ? there the structure is very clear
<
eintopf>
wpwrak: the heise forums contents are...
<
wpwrak>
the content ? naw, there's often good stuff there
freespace has quit [Ping timeout: 272 seconds]
jekhor has quit [*.net *.split]
valhalla has quit [*.net *.split]
qi-bot has quit [*.net *.split]
panda|z has quit [*.net *.split]
nicksydney has quit [*.net *.split]
eintopf has quit [*.net *.split]
uwe_ has quit [*.net *.split]
nicksydney has joined #qi-hardware
panda|z has joined #qi-hardware
valhalla has joined #qi-hardware
eintopf has joined #qi-hardware
freespac1 has joined #qi-hardware
jekhor has joined #qi-hardware
qi-bot has joined #qi-hardware
uwe_ has joined #qi-hardware
freespac1 has quit [*.net *.split]
valhalla has quit [*.net *.split]
jekhor has quit [*.net *.split]
qi-bot has quit [*.net *.split]
panda|z has quit [*.net *.split]
nicksydney has quit [*.net *.split]
eintopf has quit [*.net *.split]
uwe_ has quit [*.net *.split]
jekhor has joined #qi-hardware
valhalla has joined #qi-hardware
qi-bot has joined #qi-hardware
eintopf has joined #qi-hardware
panda|z has joined #qi-hardware
uwe_ has joined #qi-hardware
valhalla_ has joined #qi-hardware
freespac1 has joined #qi-hardware
nicksydney has joined #qi-hardware
valhalla has quit [Write error: Broken pipe]
freespace has joined #qi-hardware
freespac1 has quit [Write error: Broken pipe]
jekhor has quit [Ping timeout: 240 seconds]
sb0_ has joined #qi-hardware
kilae has quit [Quit: ChatZilla 0.9.90.1 [Firefox 30.0/20140605174243]]
jekhor has joined #qi-hardware
sb0_ has quit [Quit: Leaving]
wolfspraul has quit [Quit: leaving]
jekhor has quit [Ping timeout: 244 seconds]
wej has quit [Ping timeout: 252 seconds]
wej has joined #qi-hardware
BerryHalsak has joined #qi-hardware
astr has quit [Ping timeout: 264 seconds]