Difference between revisions of "Lazarus Faq/hu"

From Free Pascal wiki
Jump to navigationJump to search
m
m
Line 47: Line 47:
 
'''Gyors útmutató a Lazarus/FPC alkalmazások méretének csökkentéséhez''' ''(tesztelve a Lazarus 0.9.26 változatával)''
 
'''Gyors útmutató a Lazarus/FPC alkalmazások méretének csökkentéséhez''' ''(tesztelve a Lazarus 0.9.26 változatával)''
  
* 1. Project|Compiler Options|Code|Smart Linkable (-CX) -> Kijelölve
+
* 1. Project|Compiler Options|Code|Smart Linkable (-CX) -> Bejelölve
* 2. Project|Compiler Options|Linking|Debugging| Uncheck all except
+
* 2. Project|Compiler Options|Linking|Debugging| minden törölve kivéve a Strip Symbols From Executable (-Xs) -> Bejelölve
Strip Symbols From Executable (-Xs) -> Checked
+
* 3. Project|Compiler Options|Linking|Link Style|Link Smart (-XX) -> Bejelölve
* 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)
+
A legfontosabb elem a 2. Egy egyszerű alkalmazás esetén a futtatható állomány mérete 1-3 MB körül lesz 15-20 MB helyett. Ezen a ponton megpróbálhatod ezt: "Project|Project Options|Compiler Options|Code|Optimizations|smaller rather than faster" -> Bejelölve (Figyelem: ez csökkentheti a tejesítményt)
  
* 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).
+
* 4. (Esetleg) Futtasd az "UPX <te_futtatható_programod>" parancsot a bináris állomány tömörítéséhez a -2 vagy -3 paraméterrel (Figyelem: mint fentebb olvashattad, az UPX használatának lehetnek hátrányai).
  
''' Chart of default sizes for an empty Application with various settings and operating systems'''
+
'''Chart of default sizes for an empty Application with various settings and operating systems'''
  
 
Well I ran tests I did on Lazarus 0.9.29 with FPC 2.4 (FPC
 
Well I ran tests I did on Lazarus 0.9.29 with FPC 2.4 (FPC

Revision as of 19:35, 12 July 2010