Uh... ping?
On Mon, Dec 03, 2007 at 11:09:26PM +0100, pancake wrote:
> I have been looking a bit inside PDDs and parrot source and find no way to
> load a pointer to a function as a PMC inside the VM.
>
> What I want to do is to embed parrot into a C program and make some of the
&g
n
func()
say "Hello World"
.end
$ cat Makefile
all:
parrot -o hello.pbc hello.pir
gcc main.c `pkg-config --cflags --libs parrot` -export-dynamic
Thanks!
--pancake
the exception layer, but I saw
that the interface it's not yet defined and I'll wait for it to continue this
work.
Thanks!
--pancake
te a opcode_t into a file:line message?
Thanks!
--pancake
that now works things like:
(pdb) next 3
(pdb) next 4
but will not run the old-fashion commands:
(pdb) next3
imho the 'old' syntax is ugly, and we should relay on the new one checking for
spaces properly.
feel free to submit this patch if looks ok for you.
Thanks
--pan
On Mon, 28 May 2007 01:45:19 +0200
pancake <[EMAIL PROTECTED]> wrote:
> I have been reading the source code of he virtual machine a bit and found some
> confusing things and other stuff that imho should change.
Don't panic! They are only a 1% of the whole source code ;) The
oop of library.c:321 more logical. (use < instead of <=
comparisions)
--pancake
removed.
accessign directly to [1] and [2] chars of the
cb_signature->strstart variable should be
faster because it executes less steps and the
stack size will be 4 bytes less
--pancake
should not use it.
Here's a example:
$ cat foo.c
#pragma pack(1)
struct { char foo; int bar; } str;
main() { printf("%d\n", sizeof(str)); }
$ gcc foo.c
$ ./a.out
5
We can pack to 4 or so...some compilers (aka gcc) returns some
nasty sizes when measuring..(not necessary aligned to
uot;(0)", I0
set_args "(0,0)", I0, I1
find_global P5, "foo"
invokecc P5
print I0
print "\n"
.end
.sub foo
get_params "(0,0)", I0, I1
print I0
print " + "
print I1
print " = "
add I0, I0, I1
set_returns "(0)", I0
returncc
.end
Thanks
--pancake
-use archs.
--pancake
Hi, I have updated the pkgsrc package of parrot to the latest 0.4.10 (I hope
to maintain the following releases too), There's an ancient patch into the
package to fix the build on dragonflybsd. I have no dflybsd but it looks ok
for me.
Keep up the good work!
--pancake
# cat patches/pat
12 matches
Mail list logo