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

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

Thread Previous | Thread Next
Joshua Hoblitt
September 29, 2005 03:04
[perl #37303] [PATCH] Relaxing parrot dependency on parrot_config
Message ID:
# New Ticket Created by  Joshua Hoblitt 
# Please include the string:  [perl #37303]
# in the subject line of all future correspondence about this issue. 
# <URL: >

----- Forwarded message from Nick Glencross <> -----

From: Nick Glencross <>
Reply-To: Nick Glencross <>
Date: Wed, 28 Sep 2005 22:07:15 +0100
Subject: Relaxing parrot dependency on parrot_config


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

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

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.



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

Thread Previous | Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About