🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.nativeapi
Article #5233

Re: process in memory

#5233
From: Ed Mulroy
Date: Mon, 19 Sep 2005 18:10
36 lines
2699 bytes
So have your program launch the compiler instead of launching make.exe.

Have your program write the set of options to a text file, perhaps 
TheOpts.cfg

Then create two text files, each of which has a space-delimited list of 
source files names.

Now have your program launch bcc32 twice in this way:

bcc32 +TheOpts.cfg @1stListFile.txt
bcc32 +TheOpts.cfg @2ndListFile.txt

Each instance of bcc32.exe will compile all files listed in the redirected 
text file whose name it is given.

It can check the return value from either instance of bcc32.exe and decide 
to then run or not run the linker (or use a make file for the linker).

.  Ed

> Jonathan Benedicto wrote in message
> news:432efb87$3@newsgroups.borland.com...
>
>> That is what makefiles are for.  Generate a makefile that contains all of
>> the files that you want to compile, and then launch the compiler once
>> specifying the makefile instead of any particular file.
>
> The problem with the makefiles is that I wanted to execute at least two 
> bcc32 instances in parallel, retrieiving the next file to be compiled from 
> a "pool" of files. So I built my program to basically be a interface 
> between make and bcc32, that took the file list that bcc32 was given, 
> stored it, and then ran two bcc32 instances passing each 1 file. As fast 
> as they finished compiling the file given, they were re-run with the next 
> file. This way twin processor machines were being used to their fullest 
> extent when compiling a BCB project.
Technical Details
Message-ID: <432efebb$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <432a4ce3@newsgroups.borland.com> <432e5ed4$1@newsgroups.borland.com> <432ec891$2@newsgroups.borland.com> <janti1t9p5e1mv6f62e5flrqu6ffh5s5jk@4ax.com> <432ee858$1@newsgroups.borland.com> <432ef7d7$5@newsgroups.borland.com> <432efb87$3@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,81249344387d138e
X-Google-Attributes: gid10cc67,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Ed Mulroy" <dont_email_me@bitbuc.ket>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <432a4ce3@newsgroups.borland.com> <432e5ed4$1@newsgroups.borland.com> <432ec891$2@newsgroups.borland.com> <janti1t9p5e1mv6f62e5flrqu6ffh5s5jk@4ax.com> <432ee858$1@newsgroups.borland.com> <432ef7d7$5@newsgroups.borland.com> <432efb87$3@newsgroups.borland.com>
Subject: Re: process in memory
Date: Mon, 19 Sep 2005 14:10:27 -0400
Lines: 38
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.2670
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2670
X-RFC2646: Format=Flowed; Response
NNTP-Posting-Host: 69.134.170.196
Message-ID: <432efebb$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1127153339 69.134.170.196 (19 Sep 2005 11:08:59 -0700)
X-Authenticated-User: edmulroy
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail