"BCC 6.3" Released

User avatar
Enrico Maria Giordano
Posts: 7355
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia
Contact:

Re: "BCC 6.3" Released

Post by Enrico Maria Giordano »

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

EMG
User avatar
andijahja
Posts: 35
Joined: Sun Aug 29, 2010 12:44 pm

Re: "BCC 6.3" Released

Post by andijahja »

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: Select all

// 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
User avatar
Enrico Maria Giordano
Posts: 7355
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia
Contact:

Re: "BCC 6.3" Released

Post by Enrico Maria Giordano »

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: Select all

FUNCTION MAIN()

    ? "Hello, World!"

    RETURN NIL
EMG
User avatar
andijahja
Posts: 35
Joined: Sun Aug 29, 2010 12:44 pm

Re: "BCC 6.3" Released

Post by andijahja »

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
User avatar
andijahja
Posts: 35
Joined: Sun Aug 29, 2010 12:44 pm

Re: "BCC 6.3" Released

Post by andijahja »

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
User avatar
Enrico Maria Giordano
Posts: 7355
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia
Contact:

Re: "BCC 6.3" Released

Post by Enrico Maria Giordano »

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
User avatar
Enrico Maria Giordano
Posts: 7355
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia
Contact:

Re: "BCC 6.3" Released

Post by Enrico Maria Giordano »

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: Select all

@ 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: Select all

-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
User avatar
mgsoft
Posts: 398
Joined: Mon Aug 17, 2009 12:18 pm
Location: España

Re: "BCC 6.3" Released

Post by mgsoft »

Hi,

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

Thank you.
Saludos,

Eduardo
User avatar
Enrico Maria Giordano
Posts: 7355
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia
Contact:

Re: "BCC 6.3" Released

Post by Enrico Maria Giordano »

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

EMG
Post Reply