Is a compiled FIVEWIN/(x)HARBOUR program a C program?

User avatar
Otto
Posts: 4470
Joined: Fri Oct 07, 2005 7:07 pm
Contact:

Is a compiled FIVEWIN/(x)HARBOUR program a C program?

Post by Otto »

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

Re: Is a compiled FIVEWIN/(x)HARBOUR program a C program?

Post by Enrico Maria Giordano »

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
User avatar
Otto
Posts: 4470
Joined: Fri Oct 07, 2005 7:07 pm
Contact:

Post by Otto »

Thank you, Enrico.
Can I say it is a C-program?
Regards,
Otto
User avatar
Patrick Mast
Posts: 244
Joined: Sat Mar 03, 2007 8:42 pm

Post by Patrick Mast »

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
User avatar
Otto
Posts: 4470
Joined: Fri Oct 07, 2005 7:07 pm
Contact:

Post by Otto »

Hello Patrik,

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

Regards,
Otto
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Post by Antonio Linares »

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
User avatar
Otto
Posts: 4470
Joined: Fri Oct 07, 2005 7:07 pm
Contact:

Post by Otto »

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
User avatar
Patrick Mast
Posts: 244
Joined: Sat Mar 03, 2007 8:42 pm

Post by Patrick Mast »

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
User avatar
Detlef Hoefner
Posts: 312
Joined: Sat Oct 08, 2005 9:12 am
Location: Germany
Contact:

Post by Detlef Hoefner »

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
Marc Vanzegbroeck
Posts: 1102
Joined: Mon Oct 17, 2005 5:41 am
Location: Belgium
Contact:

Post by Marc Vanzegbroeck »

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
User avatar
byte-one
Posts: 1048
Joined: Mon Oct 24, 2005 9:54 am
Location: Austria
Contact:

Post by byte-one »

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
MOISES
Posts: 824
Joined: Wed Aug 22, 2007 10:09 am

Post by MOISES »

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
User avatar
Otto
Posts: 4470
Joined: Fri Oct 07, 2005 7:07 pm
Contact:

Post by Otto »

Hello Günther,

thank you for the information.
Could you please post some more infos.
Thanks in advance
Otto
User avatar
byte-one
Posts: 1048
Joined: Mon Oct 24, 2005 9:54 am
Location: Austria
Contact:

Post by byte-one »

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
User avatar
Otto
Posts: 4470
Joined: Fri Oct 07, 2005 7:07 pm
Contact:

Post by Otto »

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
Post Reply