--- App-Staticperl/staticperl.pod 2011/04/02 11:00:34 1.39 +++ App-Staticperl/staticperl.pod 2011/05/19 18:58:19 1.41 @@ -41,7 +41,7 @@ With F and F on x86, you can create a single 500kb binary that contains perl and 100 modules such as POSIX, AnyEvent, EV, IO::AIO, -Coro and so on. Or any other choice of modules. +Coro and so on. Or any other choice of modules (and some other size :). To see how this turns out, you can try out smallperl and bigperl, two pre-built static and compressed perl binaries with many and even more @@ -925,6 +925,11 @@ Most of the variables override (or modify) the corresponding F variable, except C, which gets appended. +You should have a look near the beginning of the F script - +staticperl tries to default C to some psace-saving options +suitable for newer gcc versions. For other compilers or older versions you +need to adjust these, for example, in your F<~/.staticperlrc>. + =back =head4 Variables you probably I to override @@ -1152,7 +1157,7 @@ To minimise code size, I used C<-pipe -ffunction-sections -fdata-sections -finline-limit=8 -fno-builtin-strlen -mtune=i386>. The C<-mtune=i386> doesn't decrease codesize much, but it makes the file much more -compressible. +compressible (and the execution a lot slower...). If you don't need Coro or threads, you can go with "linuxthreads.old" (or no thread support). For Coro, it is highly recommended to switch to a