Cita:
Quick guide to Lazarus/FPC application size reduction (tested with Lazarus 0.9.26)
1. Project|Compiler Options|Code|Smart Linkable (-CX) -> Checked
2. Project|Compiler Options|Linking|Debugging| Uncheck all except
Strip Symbols From Executable (-Xs) -> Checked
3. Project|Compiler Options|Linking|Link Style|Link Smart (-XX) -> Checked
The most important items seem to be 2. For a simple application the executable size should now be 1-3 MB instead of 15-20 MB. At this point you can also try: Project|Compiler Options|Code|Optimizations|smaller rather than faster -> Checked (Warning: this might decrease performance)
|
Seguí todas estas instrucciones y nada, no logré que bajara el tamaño del ejecutable
Cita:
4. (Optional) Run UPX <your_executable> to compress your binary by an additional factor of 2-3 (Warning: as indicated above, there are drawbacks to using UPX).
|
No me parece valida esta opción, no es lo mismo comprimir el código a que me genere un código mas eficiente es decir que haga lo mismo con menos instrucciones. con el UPX cualquiera baja su tamaño ya sea en delphi como en lazarus.