"BCC 6.3" Released

Re: "BCC 6.3" Released

Postby Enrico Maria Giordano » Tue Sep 28, 2010 4:33 pm

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

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

Re: "BCC 6.3" Released

Postby andijahja » 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: Select all  Expand view
// 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
andijahja
 
Posts: 35
Joined: Sun Aug 29, 2010 12:44 pm

Re: "BCC 6.3" Released

Postby Enrico Maria Giordano » Wed Sep 29, 2010 8: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: Select all  Expand view
FUNCTION MAIN()

    ? "Hello, World!"

    RETURN NIL


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

Re: "BCC 6.3" Released

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

Re: "BCC 6.3" Released

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

Re: "BCC 6.3" Released

Postby Enrico Maria Giordano » Wed Sep 29, 2010 9: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
User avatar
Enrico Maria Giordano
 
Posts: 8711
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia

Re: "BCC 6.3" Released

Postby Enrico Maria Giordano » Thu Sep 30, 2010 7: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: Select all  Expand view
@ 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  Expand view
-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
Enrico Maria Giordano
 
Posts: 8711
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia

Re: "BCC 6.3" Released

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

Re: "BCC 6.3" Released

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

Previous

Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 108 guests