… | |
… | |
3957 | default. |
3957 | default. |
3958 | |
3958 | |
3959 | =back |
3959 | =back |
3960 | |
3960 | |
3961 | Compiling with C<gcc -Os -DEV_STANDALONE -DEV_USE_EPOLL=1 -DEV_FEATURES=0> |
3961 | Compiling with C<gcc -Os -DEV_STANDALONE -DEV_USE_EPOLL=1 -DEV_FEATURES=0> |
3962 | reduces the compiled size of libev from 24.7Kb to 6.5Kb on my GNU/Linux |
3962 | reduces the compiled size of libev from 24.7Kb code/2.8Kb data to 6.5Kb |
3963 | amd64 system, while still giving you I/O watchers, timers and monotonic |
3963 | code/0.3Kb data on my GNU/Linux amd64 system, while still giving you I/O |
3964 | clock support. |
3964 | watchers, timers and monotonic clock support. |
3965 | |
3965 | |
3966 | With an intelligent-enough linker (gcc+binutils are intelligent enough |
3966 | With an intelligent-enough linker (gcc+binutils are intelligent enough |
3967 | when you use C<-Wl,--gc-sections -ffunction-sections>) functions unused by |
3967 | when you use C<-Wl,--gc-sections -ffunction-sections>) functions unused by |
3968 | your program might be left out as well - a binary starting a timer and an |
3968 | your program might be left out as well - a binary starting a timer and an |
3969 | I/O watcher then might come out at only 5Kb. |
3969 | I/O watcher then might come out at only 5Kb. |