On Sunday 30 December 2007 14:05:38 Cosimo Streppone wrote: > I tried to follow chromatic's instructions to obtain a perl6 binary > but had some problems. I will try to explain them here, along with a > little patch (against r24322) that allowed me to build my genuine > perl6.exe on vista (Yes!)
Thanks, applied (with one tweak) as r24334. > 3) In the final generated "pbc_to_exe.c" and "languages\perl6\perl6.c" > there's something like: > > int8_t program code[] = { bla bla bla... > > int8_t seems undefined on my system (vista + msvc 2008 express), so I > brutally replaced it with "unsigned char" and it worked like a charm. > Again, forgive me for my ignorant and brute force approach, I just > wanted to build that damned perl6.exe thing :) > And finally it worked! And I learnt something along the way, > even if I didn't have the time to understand how pbc_to_exe.c is generated. You're probably better off not knowing. Let's just say: 1) probe your system for configuration information 2) generate a Makefile from a template 3) pass part of that generated Makefile to the program which generates pbc_to_exe.pir from a template 4) as part of that process, pass the Makefile snippet to a program which generates a compiler command 5) write pbc_to_exe.pir to a PBC file 6) run the PBC file through itself, which: 6a) converts PBC to a static array in the source code of a C program 6b) compiles that C program using the compilation instructions generated in #4 Making it work on PIR files, not just PBC files, is almost trivial in comparison. I also do birthday parties. -- c