Difference in bytes when compiled through CW 9.3 IDE and CW 9.3 command line.

Difference in bytes when compiled through CW 9.3 IDE and CW 9.3 command line.

Post by srouth » Fri, 14 Oct 2005 01:12:03


e have taken sample application TicTacToe. Compiled through IDE (prc
size is 13,089 bytes) and command line (prc size is 13,722 bytes. The
problem is when we compile through command line the binary size is
bigger.

There is difference in MAP files too.

IDE MAP:
File: 1 "__RuntimeModule__"
File: 2 "C:\ChivasProject\PALM\TicTacToe\Src\TicTacToe.c"
File: 3 "I:\main\libraries\startupcode\Src\StartupCode.c"

Segment: 1 6618 bytes "StartupCode MUST be first!"
Code: 000004 12 bytes "__DummyStartup__" File:
"__RuntimeModule__"
Code: 000010 524 bytes "SendGamePacket__F14PacketEnumTypess" File:
"C:\ChivasProject\PALM\TicTacToe\Src\TicTacToe.c"
Code: 00021c 752 bytes "AcceptGamePacket__FP13ExgSocketTypeUc"
Code: 00050c 844 bytes "ProcessGamePacket__Fv"
Code: 000858 548 bytes "ConfirmGameStart__FP15ExgAskParamTypeUc"
Code: 000a7c 48 bytes "GotoGameStart__FP14GoToParamsType"
Code: 000aac 344 bytes
"GetUrlFromSocketRef__FP13ExgSocketTypePcUs"
Code: 000c04 82 bytes "SetFieldTextFromHandle__FUsP7_opaque"
Code: 000c56 132 bytes "SetState__F13StateEnumType"
Code: 000cda 330 bytes "DrawSquare__Fss"
Code: 000e24 292 bytes "StartNewGame__FUc"
Code: 000f48 78 bytes "EndGame__Fv"
Code: 000f96 90 bytes "CancelGame__Fv"
Code: 000ff0 296 bytes "CheckWinLossDraw__Fv"
Code: 001118 674 bytes
"GameBoardHandler__FP24FormGadgetTypeInCallbackUsPv"
Code: 0013ba 398 bytes "MainFormHandler__FP9EventType"
Code: 001548 108 bytes "AppHandleEvent__FP9EventType"
Code: 0015b4 44 bytes "AppStart__Fv"
Code: 0015e0 102 bytes "AppEventLoop__Fv"
Code: 001646 6 bytes "AppStop__Fv"
Code: 00164c 706 bytes "PilotMain"
Code: 00190e 116 bytes "__Startup__" File:
"I:\main\libraries\startupcode\Src\StartupCode.c"
Code: 001982 88 bytes "__ldivu__"

Data section below A5: 172 bytes
Data section above A5: 40 bytes

Command Line MAP file:
File: 1 "__RuntimeModule__"
File: 2 "c:\ChivasProject\PALM\TicTacToe\TicTacToe.c"
File: 3 "I:\StartupCode.c"
File: 4 "c:\ChivasProject\PALM\TicTacToe\makebuild\TicTacToe.ro"

Segment: 1 7242 bytes "Main"
Code: 000004 12 bytes "__DummyStartup__" File:
"__RuntimeModule__"
Code: 000010 568 bytes "SendGamePacket__F14PacketEnumTypess" File:
"c:\ChivasProject\PALM\TicTacToe\TicTacToe.c"
Code: 000248 778 bytes "AcceptGamePacket__FP13ExgSocketTypeUc"
Code: 000552 854 bytes "ProcessGamePacket__Fv"
Code: 0008a8 586 bytes "ConfirmGameStart__FP15ExgAskParamTypeUc"
Code: 000af2 92 bytes "GotoGameStart__FP14GoToParamsType"
Code: 000b4e 396 bytes
"GetUrlFromSocketRef__FP13ExgSocketTypePcUs"
Code: 000cda 128 bytes "SetFieldTextFromHandle__FUsP7_opaque"
Code: 000d5a 168 bytes "SetState__F13StateEnumType"
Code: 000e02 350 bytes "DrawSquare__Fss"
Code: 000f60 318 bytes "StartNewGame__FUc"
Code: 00109e 98 bytes "EndGame__Fv"
Code: 001100 114 bytes "CancelGame__Fv"
Code: 001172 314 bytes "CheckWinLossDraw__Fv"
Code: 0012ac 716 bytes
"GameBoardHandler__FP24FormGadgetTypeInCallbackUsPv"
Code: 001578 430 bytes "MainFormHandler__FP9EventType"
Code: 001726 138 bytes "AppHandleEvent__FP9EventType"
Code: 0017b0 62 bytes "AppStart__Fv"
Code: 0017ee 122 bytes "AppEventLoop__Fv"
Code: 001868 26 bytes "AppStop_