FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour "BCC 6.3" Released
Posts: 9020
Joined: Thu Oct 06, 2005 08:17 PM
Re: "BCC 6.3" Released
Posted: Tue Sep 28, 2010 04:33 PM

No, using BCC 6.30 I get bigger EXE than BCC 5.82, even with simple pure C samples.

EMG

Posts: 35
Joined: Sun Aug 29, 2010 12:44 PM
Re: "BCC 6.3" Released
Posted: Tue Sep 28, 2010 10:05 PM
Enrico Maria Giordano wrote:No, using BCC 6.30 I get bigger EXE than BCC 5.82, even with simple pure C samples.


Enrico,

Sorry, I cannot confirm your finding because in my test, the following code:

Code (fw): Select all Collapse
// file test.c
#include "stdio.h"

int main(int argc, char *argv[])
{
   printf("Hello World\n");
}
// file test.c


Compiled with command line: BCC32 test.c produced exe as follows:

Compiled with BCC 5.82: 121,344 test.exe
Compiled with BCC 6.3 : 60,928 test.exe
Andi
Posts: 9020
Joined: Thu Oct 06, 2005 08:17 PM
Re: "BCC 6.3" Released
Posted: Wed Sep 29, 2010 08:09 AM
You're right! I retest the C sample and BCC 6.30 produces smaller EXEs than BCC 5.82 in pure C. But still my xHarbour console EXEs and my FWH EXEs are bigger with 6.30 compared with 5.82. Test this, please:

Code (fw): Select all Collapse
FUNCTION MAIN()

    ? "Hello, World!"

    RETURN NIL


EMG
Posts: 35
Joined: Sun Aug 29, 2010 12:44 PM
Re: "BCC 6.3" Released
Posted: Wed Sep 29, 2010 08:53 AM

Hi Enrico,

Sorry. Still my exe is smaller (by approx 10%):

09/29/2010 03:40 PM 671,744 hello58.exe
09/29/2010 03:40 PM 617,984 hello63.exe

Make sure you re-compile ALL your PRG AND C Codes.

Andi
Posts: 35
Joined: Sun Aug 29, 2010 12:44 PM
Re: "BCC 6.3" Released
Posted: Wed Sep 29, 2010 08:57 AM
andijahja wrote:Hi Enrico,

Sorry. Still my exe is smaller (by approx 10%):

09/29/2010 03:40 PM 671,744 hello58.exe
09/29/2010 03:40 PM 617,984 hello63.exe

Make sure you re-compile ALL your PRG _AND_ C Codes.


Oops, that was console app compiled with Harbour.

O Yes, I confirm the exe of 6.3 compiled with xHarbour is bigger than 5.82 :-)
Andi
Posts: 9020
Joined: Thu Oct 06, 2005 08:17 PM
Re: "BCC 6.3" Released
Posted: Wed Sep 29, 2010 09:00 AM
andijahja wrote:O Yes, I confirm the exe of 6.3 compiled with xHarbour is bigger than 5.82 :-)


:-)

Ok, no problem. I'd only want to know the real reason...

EMG
Posts: 9020
Joined: Thu Oct 06, 2005 08:17 PM
Re: "BCC 6.3" Released
Posted: Thu Sep 30, 2010 07:34 AM
I found a bug in TLib of the new BCC 6.30. Building FWH takes forever using the following batch (it works fine if TLib from 5.82 is used):

Code (fw): Select all Collapse
@ ECHO OFF

COPY e:\fwharbour\source\function\*.prg
COPY e:\fwharbour\source\winapi\*.prg
COPY e:\fwharbour\source\classes\*.prg

DEL expbuild.prg
DEL db10.prg
DEL odbc32.prg
DEL dbm.prg
DEL vbxctrl.prg
DEL _index.prg
DEL dbms.prg
DEL ddeserv.prg
DEL field.prg
DEL tnewsins.prg
DEL c3.prg
DEL fwppc.prg

SET HARBOURCMD=/a /es1 /gc0 /l /m /n /q /w
SET INCLUDE=e:\fwharbour\include;e:\xharbour\include
FOR %%i IN (*.prg) DO e:\xharbour\harbour %%i
SET HARBOURCMD=
SET INCLUDE=
IF EXIST *.prg DEL *.prg

FOR %%i IN (*.c) DO e:\bcc\bin\bcc32 +xharbour.cfg -c %%i
IF EXIST *.c DEL *.c

FOR %%i IN (*.obj) DO e:\bccold\bin\tlib Fivehx /P32 /0 +%%i
IF EXIST *.obj DEL *.obj
IF EXIST *.bak DEL *.bak

IF EXIST fivehx.lib COPY fivehx.lib e:\fwharbour\lib
IF EXIST fivehx.lib DEL fivehx.lib


XHARBOUR.CFG

Code (fw): Select all Collapse
-6
-a4
-DHB_GUI
-DHB_INCLUDE_WINEXCHANDLER
-DHB_NO_PROFILER
-DHB_NO_TRACE
-DHB_WIN32_IO
-d
-g0
-Ie:\fwharbour\include;e:\xharbour\include;e:\bcc\include;e:\bcc\include\windows\crtl;e:\bcc\include\windows\sdk;e:\bcc\include\dinkumware
-k-
-O
-O1
-O2
-OS
-Ob
-Oc
-Ov
-v-
-W
-w
Posts: 422
Joined: Mon Aug 17, 2009 12:18 PM
Re: "BCC 6.3" Released
Posted: Mon Mar 21, 2011 10:47 PM

Hi,

What are the advantages of this new version in terms of speed and perfomance?

Thank you.

Saludos,



Eduardo
Posts: 9020
Joined: Thu Oct 06, 2005 08:17 PM
Re: "BCC 6.3" Released
Posted: Tue Mar 22, 2011 10:15 AM

Probably nothing that you can see in a "real world" application. But it's still a good idea to keep your compiler updated.

EMG

Continue the discussion