Forum > OpenGL
Comparing Windows C OpenGL App Size(46KB) to FreePascal OpenGL App(54KB), Why?
Fibonacci:
You sure there is no debug info? This C exe should be much smaller. Try "strip triangle.exe".
d-_-b:
I stripped all of them and now the c 64bit binary is smaller, which i also found strange... because i was under the impression 64bit binaries is larger then 32bit binaries due to the word size?
22K 22030 c-triangle32.exe: PE32 executable (console) Intel 80386 (stripped to external PDB), for MS Windows, 8 sections
21K 21504 c-triangle64.exe: PE32+ executable (console) x86-64 (stripped to external PDB), for MS Windows, 11 sections
54K 54784 pas-triangle32.exe: PE32 executable (console) Intel 80386 (stripped to external PDB), for MS Windows, 6 sections
68K 69120 pas-triangle64.exe: PE32+ executable (console) x86-64 (stripped to external PDB), for MS Windows, 7 sections
Fibonacci:
--- Quote from: d-_-b on March 23, 2024, 09:46:20 pm ---I stripped all of them and now the c 64bit binary is smaller, which i also found strange... because i was under the impression 64bit binaries is larger then 32bit binaries due to the word size?
--- End quote ---
Probably due to a different ABI (64 bits being more efficient). To be more precise: parameter passing in registers instead of on the stack. Eventually 64 bit version will become larger than 32 bit as you write more code (not just API calls).
Navigation
[0] Message Index
[*] Previous page