develooper Front page | perl.perl6.internals | Postings from September 2005

[perl #37303] [PATCH] Relaxing parrot dependency on parrot_config

Thread Previous | Thread Next
From:
Joshua Hoblitt
Date:
September 29, 2005 03:04
Subject:
[perl #37303] [PATCH] Relaxing parrot dependency on parrot_config
Message ID:
rt-3.0.11-37303-121770.14.6132411990429@perl.org
# New Ticket Created by  Joshua Hoblitt 
# Please include the string:  [perl #37303]
# in the subject line of all future correspondence about this issue. 
# <URL: https://rt.perl.org/rt3/Ticket/Display.html?id=37303 >


----- Forwarded message from Nick Glencross <nick.glencross@gmail.com> -----

From: Nick Glencross <nick.glencross@gmail.com>
Reply-To: Nick Glencross <nick.glencross@gmail.com>
Date: Wed, 28 Sep 2005 22:07:15 +0100
To: perl6-internals@perl.org
Subject: Relaxing parrot dependency on parrot_config

Guys,

I've been wanting to relax the dependency that parrot's core has on
parrot_config. As things stand at the moment, src/global_setup.c makes
a call to parrot_get_config which is linked into the executable itself
by selecting either null_config.o, parrot_config.o or
install_config.o.

This works pretty well on most platforms so far, but is a major
headache for building on cygwin (and Windows?) and perhaps some future
platforms. Why? Well, some platforms have a limitation whereby a
Shared Library or DLL cannot access symbolic information in the
executable that loads them. This will affect us more as parrot is used
as a library, or we try to get dynclasses working on awkward
platforms.

What I've done is add a function to optionally register the config
string -- That way the call is exclusively from the executable into
parrot only. The contents of the config *.c files is slightly changed,
and the function parrot_get_config has been moved into a new file
src/config.c (better names gladly accepted!)

Since registering the config string is optional, utilities such as
pbc_merge and pdb no longer need to link with null_config.o.

At the moment this patch is for review as I'm expecting some good
advise before it hopefully gets accepted.

Cheers,

Nick



----- End forwarded message -----

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About