-------- Original Message --------
Subject: Re: Using Inline 0.40 with multiple modules
Date: Fri, 01 Jun 2001 17:22:54 -0500
From: "Brett W. Denner" <[EMAIL PROTECTED]>
Organization: Lockheed Martin Tactical Aircraft Systems
To: "Brett W. Denner" <[EMAIL PROTECTED]>
References: <[EMAIL PROTECTED]>
> "Brett W. Denner" wrote:
>
> I have a fairly large Perl-Tk applications (30,000 lines) that uses XS to
> call C subroutines quite extensively. This application contains several
> modules that call other other modules in the application, and the source
> files for each module are each located in their own directory.
Okay, I didn't want Brian to have any free time this weekend, so I put
together
a sample case. Like a previous post of mine, there is a Fruit module which
has
several "submodules": Fruit::Apple, Fruit::Banana, Fruit::Cherry, and
Fruit::Date.
The first two modules use Inline and the last two do not; however, the
latter
modules do have lines which "use Fruit::Apple" and "use Fruit::Banana".
After running "perl Makefile.PL" and "make", I get output which ends in the
following lines:
/usr/bin/perl -Mblib -MInline=_INSTALL_ -MFruit -e1 0.01
Using /usr/people/brett/Inline_test/blib
/usr/bin/perl -Mblib -MInline=_INSTALL_ -MFruit::Apple -e1 0.01
Using /usr/people/brett/Inline_test/blib
/usr/bin/perl -Mblib -MInline=_INSTALL_ -MFruit::Banana -e1 0.01
Using /usr/people/brett/Inline_test/blib
/usr/bin/perl -Mblib -MInline=_INSTALL_ -MFruit::Cherry -e1 0.01
Using /usr/people/brett/Inline_test/blib
/usr/bin/perl -Mblib -MInline=_INSTALL_ -MFruit::Date -e1 0.01
Using /usr/people/brett/Inline_test/blib
After running "make test", the last output lines look like this:
/usr/bin/perl -Mblib -MInline=_INSTALL_ -MFruit -e1 0.01
Using /usr/people/brett/Inline_test/blib
/usr/bin/perl -Mblib -MInline=_INSTALL_ -MFruit::Cherry -e1 0.01
Using /usr/people/brett/Inline_test/blib
/usr/bin/perl -Mblib -MInline=_INSTALL_ -MFruit::Date -e1 0.01
Using /usr/people/brett/Inline_test/blib
And after running "make install", the last output lines look like this:
/usr/bin/perl -Mblib -MInline=_INSTALL_ -MFruit -e1 0.01
Using /usr/people/brett/Inline_test/blib
/usr/bin/perl -Mblib -MInline=_INSTALL_ -MFruit::Cherry -e1 0.01
Using /usr/people/brett/Inline_test/blib
/usr/bin/perl -Mblib -MInline=_INSTALL_ -MFruit::Date -e1 0.01
Using /usr/people/brett/Inline_test/blib
...installation stuff deleted...
As you can see, the Inline module is run on Fruit and Fruit::Cherry and
Fruit::date each time.
Add a couple dozen fruits under the Fruit module and you can see that you
compilation times
can get very long indeed.
Have fun,
Brett
--
Brett W. Denner Lockheed Martin Aeronautics Co.
email: [EMAIL PROTECTED] PO Box 748, MZ 9332
phone: 817-935-1144 Fort Worth, TX 76101
fax: 817-935-1212
Inline_test2.tar.gz