Hi,
Harbour can generate machine code instead of PCODE with -gc3
switch. It's ~10%-20% faster but only if no other slow functions
are executed. Just pure PRG code only. The size of final binaries
are about 4-5 times bigger.
BTW PCODE is not interpreted. PCODE is evaluated and the difference
is fundamental for the speed. Unlike many people think and said on
public forums Clipper and Harbour are compilers. Even hbrun
executing PRG code is compiler. Interpreter is completely different
animal. Early versions of Ron's xBase Script were interpreters.
Current ones are mix of compiler and interpreter.
best regards,
Przemek
On Mon, 17 Feb 2014, clipper6 wrote:
> Would it not make Harbour slower since it would be interpreted?
>
> On Tuesday, February 18, 2014 8:04:50 AM UTC+8, Angel Pais wrote:
> >
> > PCODE is more compact and portable
> >
> >
> > 2014-02-17 1:41 GMT-02:00 clipper6 <
arl...@gmail.com <javascript:>>:
> >
> >> When I was very new with HB I was thinking that it was binary compiled
> >> but later on I learned that it was p-code compiled. My question is why
> >> binary compile was not chosen but instead it still opted to p-code compile?
> >>
> >> --
> >> --
> >> You received this message because you are subscribed to the Google
> >> Groups "Harbour Users" group.
> >> Unsubscribe:
harbour-user...@googlegroups.com <javascript:>
> >> Web:
http://groups.google.com/group/harbour-users
> >>
> >> ---
> >> You received this message because you are subscribed to the Google Groups
> >> "Harbour Users" group.
> >> To unsubscribe from this group and stop receiving emails from it, send an
> >> email to
harbour-user...@googlegroups.com <javascript:>.