FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour is this True ?
Posts: 1772
Joined: Thu Sep 05, 2019 05:32 AM
is this True ?
Posted: Mon Feb 03, 2025 11:27 AM
hi,

i have read somewhere that harbour Programm are :
And then the programs generated with it are just programs with tokens that are interpreted at runtime, not even real, linked programs.
greeting,

Jimmy
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: is this True ?
Posted: Mon Feb 03, 2025 11:53 AM
Harbour apps are real apps that use pcode (not tokens) but they are true executables.

In fact Harbour provides a compiler option to avoid the pcode use and just generates straigth C code.

Who has said that, has a very little idea of virtual machines... :)
regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 8515
Joined: Tue Dec 20, 2005 07:36 PM
Re: is this True ?
Posted: Mon Feb 03, 2025 12:05 PM

Is this a prank Jimmy? hahahahahaha.

¿Es esto una broma, Jimmy? jajajajajaja.

Regards, saludos.

João Santos - São Paulo - Brasil - Phone: +55(11)95150-7341
Posts: 1772
Joined: Thu Sep 05, 2019 05:32 AM
Re: is this True ?
Posted: Mon Feb 03, 2025 03:05 PM
hi,

the man answers :
https://www.xbaseforum.de/viewtopic.php?t=236&start=3 ( ramses 03 Feb 2025, 12:58, start from last Msg )
This contains tokens at the beginning of the file which are then processed and interpreted at runtime.
i can not believe this.
greeting,

Jimmy
Posts: 318
Joined: Fri Jan 14, 2022 08:37 AM
Re: is this True ?
Posted: Mon Feb 03, 2025 03:28 PM
Jimmy wrote: hi,

i have read somewhere that harbour Programm are :
And then the programs generated with it are just programs with tokens that are interpreted at runtime, not even real, linked programs.
https://github.com/dmajkic/harbour-core/blob/master/doc/pcode.txt

And UT for Harbour on web at https://carles9000.github.io
Posts: 9020
Joined: Thu Oct 06, 2005 08:17 PM
Re: is this True ?
Posted: Mon Feb 03, 2025 04:02 PM
Jimmy wrote: hi,

the man answers :
https://www.xbaseforum.de/viewtopic.php?t=236&start=3 ( ramses 03 Feb 2025, 12:58, start from last Msg )
This contains tokens at the beginning of the file which are then processed and interpreted at runtime.
i can not believe this.
You should. Please open the generated C source file and you will see.
Posts: 1772
Joined: Thu Sep 05, 2019 05:32 AM
Re: is this True ?
Posted: Mon Feb 03, 2025 05:39 PM
hi,
Antonio Linares wrote: Harbour apps are real apps that use pcode (not tokens) but they are true executables.

Who has said that, has a very little idea of virtual machines... :)
paquitohm wrote: https://github.com/dmajkic/harbour-core/blob/master/doc/pcode.txt
now i understand a little more how harbour/PCODE work.

what is the difference between "interpreted at runtime" and "a Clipper VirtualMachine() that will
process those pcode bytes." :?:
greeting,

Jimmy
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: is this True ?
Posted: Mon Feb 03, 2025 09:41 PM
Dear Jimmy,

A CPU is able to do lots of different tasks. You can think of a CPU as a "wild horse", so powerful and at the same time risky as it has a lot of energy and many different actions that can be performed.

The idea of building a virtual machine is to reduce all those possibilites into a bunch of them, so the "horse" is under control, and no matter what errors we may do with the code, or what errors the users may do, the "horse" will remain in control.

Thats basically why we build a virtual machine. We just want to allow a bunch of different actions so the app will never become "out of control" most of the times ending with a GPF. The "horse" will deliver its power with control. No way to loose that control.

That is what made Clipper so robust and thats why Harbour behaves the same way :-)
regards, saludos

Antonio Linares
www.fivetechsoft.com

Continue the discussion