Gmail Calendar Documents Reader Web more »
Recently Visited Groups | Help | Sign in
Google Groups Home
[TODO] exec core testing
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  3 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Leopold Toetsch  
View profile  
 More options Oct 24 2004, 8:56 am
Newsgroups: perl.perl6.internals
From: parrotbug-follo...@parrotcode.org (Leopold Toetsch)
Date: Sun, 24 Oct 2004 05:56:45 -0700
Local: Sun, Oct 24 2004 8:56 am
Subject: [perl #32122] [TODO] exec core testing
# New Ticket Created by  Leopold Toetsch
# Please include the string:  [perl #32122]
# in the subject line of all future correspondence about this issue.
# <URL: http://rt.perl.org:80/rt3/Ticket/Display.html?id=32122 >

We have since quite a time the support for creating native executables
on some platforms. This functionality is not tested at all. The Makefile
has just one very simple rule to create a "Hello world"-like program
with "make testexec".

Testing the EXEC core should probably use EXEC_SHARED, but I don't know
if that works. Hopelfully Daniel is listening and can provide some hints.

Takers welcome,
leo


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Discussion subject changed to "[PATCH] exec core testing" by Andy Dougherty
Andy Dougherty  
View profile  
 More options Oct 26 2004, 4:28 pm
Newsgroups: perl.perl6.internals
From: dough...@lafayette.edu (Andy Dougherty)
Date: Tue, 26 Oct 2004 16:28:33 -0400 (EDT)
Local: Tues, Oct 26 2004 4:28 pm
Subject: Re: [perl #32122] [PATCH] exec core testing

On Sun, 24 Oct 2004, Leopold Toetsch wrote:
> We have since quite a time the support for creating native executables
> on some platforms. This functionality is not tested at all. The Makefile
> has just one very simple rule to create a "Hello world"-like program
> with "make testexec".

The Makefile target attempts to create a simple file containing:

    print "Hello World\n"
    end

Alas, it's hard to create that file portably.  In particular,
        echo 'print "Hello World\n"'
gives different results with different 'echo' commands.  The
default bash behavior is to pass the \n on through.  The default
ksh behavior is to interpolate the \n and replace it by an actual
newline.  Adding the -e flag to bash's echo command forces it to
act like ksh, but ksh complains about the unrecognized -e option.

The symptom of this is the following rather mysterious error message:

    error:imcc:op not found 'print' (print<0>)

    in file 'hello.pasm' line 1

We could use a perl one-liner in place of echo, but getting all the quotes
right across different operating systems is still hard.

This patch takes a simpler approach:  it creates a new file
examples/assembly/hello.pasm, and just uses that.

It still doesn't work on Solaris/SPARC.  I now get

    error:imcc:main: can't produce object file*** Error code 1

but that's to be expected because the code simply isn't written yet to
produce native executables on this platform.

diff -r -u -N parrot-orig/MANIFEST parrot-andy/MANIFEST
--- parrot-orig/MANIFEST        Mon Oct 25 10:56:52 2004
+++ parrot-andy/MANIFEST        Tue Oct 26 13:04:53 2004
@@ -378,6 +378,7 @@
 examples/assembly/fact.pasm                       [main]doc
 examples/assembly/getopt_demo.imc                 [main]doc
 examples/assembly/hanoi.pasm                      [main]doc
+examples/assembly/hello.pasm                      [main]doc
 examples/assembly/hello-dwim.imc                  [main]doc
 examples/assembly/io1.pasm                        [main]doc
 examples/assembly/io2.pasm                        [main]doc
diff -r -u -N parrot-orig/config/gen/makefiles/root.in parrot-andy/config/gen/makefiles/root.in
--- parrot-orig/config/gen/makefiles/root.in    Tue Oct 12 08:40:16 2004
+++ parrot-andy/config/gen/makefiles/root.in    Tue Oct 26 13:03:28 2004
@@ -1280,16 +1280,12 @@
 testexec: hello-parrot hello-clean

 hello-clean:
-       @$(RM_F) hello.pasm hello$(O) hello
+       @$(RM_F) hello.pbc hello$(O) hello

 hello-parrot: hello

-hello.pasm:
-       echo 'print "Hello World\n"' > hello.pasm
-       echo  'end' >> hello.pasm
-
-hello.pbc:     hello.pasm
-       ./parrot -o hello.pbc hello.pasm
+hello.pbc:     examples/assembly/hello.pasm
+       ./parrot -o hello.pbc examples/assembly/hello.pasm

 hello$(O):     hello.pbc
        ./parrot -o hello$(O) hello.pbc
diff -r -u -N parrot-orig/examples/assembly/hello.pasm parrot-andy/examples/assembly/hello.pasm
--- parrot-orig/examples/assembly/hello.pasm    Wed Dec 31 19:00:00 1969
+++ parrot-andy/examples/assembly/hello.pasm    Tue Oct 26 13:04:11 2004
@@ -0,0 +1,2 @@
+print "Hello World\n"
+end
diff -r -u -N parrot-orig/hello.pasm parrot-andy/hello.pasm
--- parrot-orig/hello.pasm      Wed Dec 31 19:00:00 1969
+++ parrot-andy/hello.pasm      Tue Oct 26 15:56:02 2004
@@ -0,0 +1,3 @@
+print "Hello World
+"
+end

--
    Andy Dougherty              dough...@lafayette.edu


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Leopold Toetsch  
View profile  
 More options Oct 27 2004, 6:23 am
Newsgroups: perl.perl6.internals
From: l...@toetsch.at (Leopold Toetsch)
Date: Wed, 27 Oct 2004 12:23:09 +0200
Local: Wed, Oct 27 2004 6:23 am
Subject: Re: [perl #32122] [PATCH] exec core testing

Andy Dougherty <dough...@lafayette.edu> wrote:
> On Sun, 24 Oct 2004, Leopold Toetsch wrote:
>> We have since quite a time the support for creating native executables
>> on some platforms. This functionality is not tested at all. The Makefile
>> has just one very simple rule to create a "Hello world"-like program
>> with "make testexec".
> The Makefile target attempts to create a simple file containing:
>     print "Hello World\n"
>     end
> Alas, it's hard to create that file portably.

Sorry, misunderstanding. I'd like to get rid of this hello world test.

"make testexec" should run like "make testj" i.e. test all ~2000 current
tests via the exec core.

leo


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2009 Google