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

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

Postby Otto » Mon Jun 30, 2008 4: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
User avatar
Otto
 
Posts: 6315
Joined: Fri Oct 07, 2005 7:07 pm

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

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

Postby Otto » Mon Jun 30, 2008 4:24 pm

Thank you, Enrico.
Can I say it is a C-program?
Regards,
Otto
User avatar
Otto
 
Posts: 6315
Joined: Fri Oct 07, 2005 7:07 pm

Postby Patrick Mast » Mon Jun 30, 2008 5: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
User avatar
Patrick Mast
 
Posts: 246
Joined: Sat Mar 03, 2007 8:42 pm

Postby Otto » Mon Jun 30, 2008 5: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
User avatar
Otto
 
Posts: 6315
Joined: Fri Oct 07, 2005 7:07 pm

Postby Antonio Linares » Mon Jun 30, 2008 5: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
User avatar
Antonio Linares
Site Admin
 
Posts: 42071
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Postby Otto » Mon Jun 30, 2008 5: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
User avatar
Otto
 
Posts: 6315
Joined: Fri Oct 07, 2005 7:07 pm

Postby Patrick Mast » Mon Jun 30, 2008 6: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
User avatar
Patrick Mast
 
Posts: 246
Joined: Sat Mar 03, 2007 8:42 pm

Postby Detlef Hoefner » Mon Jun 30, 2008 9: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
User avatar
Detlef Hoefner
 
Posts: 312
Joined: Sat Oct 08, 2005 9:12 am
Location: Germany

Postby Marc Vanzegbroeck » Tue Jul 01, 2008 7: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
Marc Vanzegbroeck
 
Posts: 1159
Joined: Mon Oct 17, 2005 5:41 am
Location: Belgium

Postby byte-one » Tue Jul 01, 2008 8: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
User avatar
byte-one
 
Posts: 1048
Joined: Mon Oct 24, 2005 9:54 am
Location: Austria

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

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

Postby byte-one » Tue Jul 01, 2008 2: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
User avatar
byte-one
 
Posts: 1048
Joined: Mon Oct 24, 2005 9:54 am
Location: Austria

Postby Otto » Tue Jul 01, 2008 2: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
User avatar
Otto
 
Posts: 6315
Joined: Fri Oct 07, 2005 7:07 pm

Next

Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 66 guests