FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Is a compiled FIVEWIN/(x)HARBOUR program a C program?
Posts: 6984
Joined: Fri Oct 07, 2005 07:07 PM
Is a compiled FIVEWIN/(x)HARBOUR program a C program?
Posted: Mon Jun 30, 2008 04:00 PM

Sometimes I am asked in which language my program is written.
As FIVEWIN/(x)HARBOUR is compiled with a C-compiler is the result a C program?
Thanks in advance,
Otto

Posts: 9022
Joined: Thu Oct 06, 2005 08:17 PM
Re: Is a compiled FIVEWIN/(x)HARBOUR program a C program?
Posted: Mon Jun 30, 2008 04:18 PM
Otto wrote:Sometimes I am asked in which language my program is written.


xHarbour that is derived from Clipper that is derived from dBase III. :-)

Otto wrote:As FIVEWIN/(x)HARBOUR is compiled with a C-compiler is the result a C program?


Yes, but you can't say that your program is written in C.

EMG
Posts: 6984
Joined: Fri Oct 07, 2005 07:07 PM
Is a compiled FIVEWIN/(x)HARBOUR program a C program?
Posted: Mon Jun 30, 2008 04:24 PM

Thank you, Enrico.
Can I say it is a C-program?
Regards,
Otto

Posts: 246
Joined: Sat Mar 03, 2007 08:42 PM
Is a compiled FIVEWIN/(x)HARBOUR program a C program?
Posted: Mon Jun 30, 2008 05:16 PM
Otto wrote:Can I say it is a C-program?Otto
It's a C-programme where execution of your code is done in by a VM (Virtual Machine) that's embeded in your exe.

The resulting EXE *IS* build by a C-compiler, so..

If users ask me in what my application is written, I say "xHarbour". And than the questions begin :-)

Patrick
Posts: 6984
Joined: Fri Oct 07, 2005 07:07 PM
Is a compiled FIVEWIN/(x)HARBOUR program a C program?
Posted: Mon Jun 30, 2008 05:28 PM

Hello Patrik,

It would be fine if I could say it is a C-program.
So these questions would not appear.

Regards,
Otto

Posts: 44162
Joined: Thu Oct 06, 2005 05:47 PM
Is a compiled FIVEWIN/(x)HARBOUR program a C program?
Posted: Mon Jun 30, 2008 05:47 PM

Otto,

You could say that a C/C++ compiler (plus some other tools) is used to build it :-)

And you are saying the truth :-)

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 6984
Joined: Fri Oct 07, 2005 07:07 PM
Is a compiled FIVEWIN/(x)HARBOUR program a C program?
Posted: Mon Jun 30, 2008 05:59 PM

To all,

Thank you for your answers.

If I look into the Exe I only see ë ‹]Borland C++.
Could someone else see the other tools if he would try?

Regards,
Otto

Posts: 246
Joined: Sat Mar 03, 2007 08:42 PM
Is a compiled FIVEWIN/(x)HARBOUR program a C program?
Posted: Mon Jun 30, 2008 06:11 PM
Otto wrote:If I look into the Exe I only see ë ‹]Borland C++.
Could someone else see the other tools if he would try?
Yes, I can see if you used Harbour or xHarbour, and what version it was. I can see what LIB's you used etc.. If you don't want this to be seen by anyone, use UPX or any other too that compresses your exe.

I use UPX all the time and it works just fine for me. Never had a problem.
And its free! :-)
http://upx.sourceforge.net/

Patrick
Posts: 312
Joined: Sat Oct 08, 2005 09:12 AM
Is a compiled FIVEWIN/(x)HARBOUR program a C program?
Posted: Mon Jun 30, 2008 09:51 PM

Otto,

why do you think that you should be ashamed when using (x)Harbour as your development language?

Do you want to hide the fakt that you are using a modern programming language? Do you also want to rename and encrypt your dbf files so that other people think you are using SQL databases?

A good designed and skilful programmed application speaks for itself.
There are too many bad programs outside which are written in 'state of the arts' languages.

Lets release excellent programs which kill the customers prejudices against (x)Harbour.

Just my 2cents,
Detlef

Posts: 1195
Joined: Mon Oct 17, 2005 05:41 AM
Is a compiled FIVEWIN/(x)HARBOUR program a C program?
Posted: Tue Jul 01, 2008 07:48 AM

Patrick,

I just tested UPX, and it's working fine.
With the option -d, you can decompress the file again. So can see the lib's used again. I could find a password option, or am I wrong?

Best regards,
Marc

Regards,

Marc



FWH32+xHarbour | FWH64+Harbour | BCC | DBF | ADO+MySQL | ADO+MariaDB | ADO+SQLite
Posts: 1048
Joined: Mon Oct 24, 2005 09:54 AM
Is a compiled FIVEWIN/(x)HARBOUR program a C program?
Posted: Tue Jul 01, 2008 08:17 AM

For the Harbour-Compiler are the option to produce pure C-Output. (gc3) I found, the programs builded with this option, runs up to 20% more in speed!

Regards,
Günther
---------------------------------
office@byte-one.com
Posts: 838
Joined: Wed Aug 22, 2007 10:09 AM
Is a compiled FIVEWIN/(x)HARBOUR program a C program?
Posted: Tue Jul 01, 2008 10:30 AM

Hi,

See http://www.fivetechsoft.com/forums/view ... hp?t=11656

But UPX not always works fine.

Saludos / Regards,



FWH 20.04, Harbour 3.2.0 dev (r1909261630) y BCC 7.40
Posts: 6984
Joined: Fri Oct 07, 2005 07:07 PM
Is a compiled FIVEWIN/(x)HARBOUR program a C program?
Posted: Tue Jul 01, 2008 12:17 PM

Hello Günther,

thank you for the information.
Could you please post some more infos.
Thanks in advance
Otto

Posts: 1048
Joined: Mon Oct 24, 2005 09:54 AM
Is a compiled FIVEWIN/(x)HARBOUR program a C program?
Posted: Tue Jul 01, 2008 02:25 PM

Otto, you can in Harbour-compile-options add or replace this to: /gc3
Please call harbour.exe without any parameters to show the options.

Regards,
Günther
---------------------------------
office@byte-one.com
Posts: 6984
Joined: Fri Oct 07, 2005 07:07 PM
Is a compiled FIVEWIN/(x)HARBOUR program a C program?
Posted: Tue Jul 01, 2008 02:55 PM

Hello Günther,
Thank you. I will try and report.
Do you know if this option is in xHarbour, too.
It sounds promising.

Regards,
Otto