Compiler creates executable with different filesize
Posted: Fri Jan 24, 2014 12:30 pm
Hi,
I was interested what the assembler source of my program would look like, so - as I didn't know how to set the /COMMENTED flag in the PB IDE - I compiled the program using the dosbox.
To my surprise the executable was about 12% smaller than the one compiled using the PB IDE (2.114kb [cli] to 2.405kb [PB IDE])? First I thought there might be some icons missing but that wasn't it, the program works fine with no missing parts. Why is that?
The program was compiled with and I use the following command sets in the program:
Two other - smaller things:
1) When I tried to compile via cli I got an error message "Constant not found: #PB_Editor_BuildCount". I remember that even in the IDE I had to type it in myself - it wasn't available in the autocomplete.
2) When I tried to add it (using /CONSTANT) I wrote /CONSTANT #PB_Editor_BuildCount the compiler crashed. Removing the "#" and it works fine. Howe come?
Greetz,
Fenix
I was interested what the assembler source of my program would look like, so - as I didn't know how to set the /COMMENTED flag in the PB IDE - I compiled the program using the dosbox.
To my surprise the executable was about 12% smaller than the one compiled using the PB IDE (2.114kb [cli] to 2.405kb [PB IDE])? First I thought there might be some icons missing but that wasn't it, the program works fine with no missing parts. Why is that?
The program was compiled with
Code: Select all
pbcompiler source.pb /COMMENTED /CONSTANT PB_Editor_BuildCount=0Code: Select all
; The header must remain intact for Re-Assembly
;
; ToolBar
; Thread
; String
; StatusBar
; Sort
; Requester
; RegularExpression
; Process
; Preference
; OnError
; Music
; Sound
; SoundPlugin
; Menu
; Math
; LinkedList
; Library
; Keyboard
; Mouse
; Screen
; Sprite
; MultiMediaBase
; ImagePluginBMP
; Engine3D
; ImagePluginPNG
; Http
; Network
; Gadget
; System
; Window
; Font
; File
; Event
; Map
; Desktop
; DatabaseSQLite
; FileSystem
; Date
; Database
; Cipher
; Array
; 2DDrawing
; Image
; AlphaImage
; ImagePlugin
; Memory
; Object
; SimpleList
; :System
; ADVAPI32
; COMCTL32
; KERNEL32
; USER32
; :Import
1) When I tried to compile via cli I got an error message "Constant not found: #PB_Editor_BuildCount". I remember that even in the IDE I had to type it in myself - it wasn't available in the autocomplete.
2) When I tried to add it (using /CONSTANT) I wrote /CONSTANT #PB_Editor_BuildCount the compiler crashed. Removing the "#" and it works fine. Howe come?
Greetz,
Fenix