Re: [ooc-compiler] Size of executable
Brought to you by:
mva
|
From: Michael v. A. <Mic...@de...> - 2004-06-01 09:55:32
|
Frank Hrebabetzky <fh...@ph...> writes: > Finally I get my programs compiled and running and my work done. So my > attention is attracted by less important aspects now (no more need to > respond within impressive 50 min.). > > I compiled 'Hello world' on Win32/MinGW and got an executable of 1.3 > MByte. Option --no-rtc had no influence. I am somewhat lost with 10 > lines of gcc options scrolling up upon 'oo2c -Mv hello.Mod'. What is > happening? Everything being linked statically and the programs would > run on PCs without MinGW and oo2c? How could I reduce the size? There are two primary techniques to reduce the size of a binary: putting library modules into a shared library and linking the executable dynamically against it, and removing debug information from the executable. I don't have any idea how the former can be achieved under Windows. As for the latter, running "strip" on the binary file may do the trick. Using "--no-rtc" may also help, but for this the program code in question needs to be complex enough to do any run-time checks. -- mva |