Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Parrot Examples

7 views
Skip to first unread message

Joe Yates

unread,
Jan 12, 2003, 4:36:01 AM1/12/03
to perl6-i...@perl.org
Dear All,

Could we add a 'Hello World.pasm' to 'parrot/examples/assembly'?

Joe Yates

Joseph Guhlin

unread,
Jan 13, 2003, 11:35:47 AM1/13/03
to perl6-i...@perl.org
Too simple.. There is some good documentation though and the examples,
while a bit too complex at first can be understood after ahile. I hate
having to relearn assembly though, it's been too long.

helloworld.pasm:
print "Hello World!\n"

Joe Yates wrote:

--Joseph Guhlin - http://www.josephguhlin.com/

Dan Sugalski

unread,
Jan 13, 2003, 12:01:14 PM1/13/03
to perl6-i...@perl.org
At 10:35 AM -0600 1/13/03, Joseph Guhlin wrote:
>Too simple.. There is some good documentation though and the
>examples, while a bit too complex at first can be understood after
>ahile. I hate having to relearn assembly though, it's been too long.
>
>helloworld.pasm:
>print "Hello World!\n"

Well...

print "Hello World\n"
end

or there's the troublesome segfault... :)

>Joe Yates wrote:
>
>>Dear All,
>>
>>Could we add a 'Hello World.pasm' to 'parrot/examples/assembly'?

--
Dan

--------------------------------------"it's like this"-------------------
Dan Sugalski even samurai
d...@sidhe.org have teddy bears and even
teddy bears get drunk

Joseph Guhlin

unread,
Jan 13, 2003, 1:47:46 PM1/13/03
to perl6-i...@perl.org
Are you sure? I did it on mine and there was no segfault. My CVS copy is
from yesterday or the day before I think. I used the assemble.pl and
then called it helloworld.pbc and ran it with the parrot executable. I'm
still new to parrot and want to help out, but there is alot of stuff for
me to understand before I can catch up with everyone else. =/ but I'll
show my support by making helloworld.pasm's until I can do more. =)

--Joey

Dan Sugalski wrote:

> At 10:35 AM -0600 1/13/03, Joseph Guhlin wrote:
>
>> Too simple.. There is some good documentation though and the
>> examples, while a bit too complex at first can be understood after
>> ahile. I hate having to relearn assembly though, it's been too long.
>>
>> helloworld.pasm:
>> print "Hello World!\n"
>
>
> Well...
>
> print "Hello World\n"
> end
>
> or there's the troublesome segfault... :)
>
>> Joe Yates wrote:
>>

Dan Sugalski

unread,
Jan 13, 2003, 1:59:13 PM1/13/03
to inco...@josephguhlin.com, perl6-i...@perl.org
At 12:47 PM -0600 1/13/03, Joseph Guhlin wrote:
>Are you sure? I did it on mine and there was no segfault. My CVS
>copy is from yesterday or the day before I think. I used the
>assemble.pl and then called it helloworld.pbc and ran it with the
>parrot executable. I'm still new to parrot and want to help out, but
>there is alot of stuff for me to understand before I can catch up
>with everyone else. =/ but I'll show my support by making
>helloworld.pasm's until I can do more. =)

Yep, I'm sure. Without the end, parrot just falls off the end of the
world. If that happens to be into memory filled with nulls, you're
fine, otherwise Nasty Things may happen.

>Dan Sugalski wrote:
>
>>At 10:35 AM -0600 1/13/03, Joseph Guhlin wrote:
>>
>>>Too simple.. There is some good documentation though and the
>>>examples, while a bit too complex at first can be understood after
>>>ahile. I hate having to relearn assembly though, it's been too
>>>long.
>>>
>>>helloworld.pasm:
>>>print "Hello World!\n"
>>
>>
>>Well...
>>
>> print "Hello World\n"
>> end
>>
>>or there's the troublesome segfault... :)
>>
>>>Joe Yates wrote:
>>>
>>>>Dear All,
>>>>
>>>>Could we add a 'Hello World.pasm' to 'parrot/examples/assembly'?

Joseph Guhlin

unread,
Jan 13, 2003, 2:05:33 PM1/13/03
to perl6-i...@perl.org
Ah, very cool. I did not know that.
<insert obligatory monty python quotes here>

--Joseph
http://www.josephguhlin.com/

0 new messages