[Parrot-users] Starting to Use Parrot
Andrew Whitworth
wknight8111 at gmail.com
Sun Nov 14 19:59:17 UTC 2010
I agree with NotFound on this. PIR is definitely the best choice from
those above.
The documentation paragraph that you mention is highly misleading and
needs to be updated. Which page did you see it on?
PASM is not really usable right now and has not been in some time.
PAST is an intermediate step in some compilers that currently is used
to generate PIR. The only real choice from that list is PIR.
We are working on libraries and routines to automatically generate
Parrot bytecode instead of needing to generate an intermediate form
first. Once we have those tools available and ready for production
use, I would recommend them instead. For now, use PIR. If your system
has pluggable back-ends, that would be the best because eventually you
will be able to replace the PIR backend with something better.
--Andrew Whitworth
On Sun, Nov 14, 2010 at 2:43 PM, NotFound <julian.notfound at gmail.com> wrote:
> Hello
>
>> My Questions :
>> 1) if i have to write the front-end of my compiler in
>> c/c++...which of the above parrot code variants(PIR,PASM,PAST) would
>> be best for me to taget ?
>
> The easier way is to target PIR. PIR is a sort of powerful assembler
> and PASM is more like the assembler listed by a debugger. PAST is
> intended (for a now, at least) to parrot front-ends, not for external
> ones.
>
> You can look at winxed stage 0 for an example of a compiler writen in
> C++ that targets PIR. http://winxed.org/
>
> --
> Salu2
> _______________________________________________
> Parrot-users mailing list
> Parrot-users at lists.parrot.org
> http://lists.parrot.org/mailman/listinfo/parrot-users
>
More information about the Parrot-users
mailing list