Re: CHAIN PROGRAM

new topic     » goto parent     » topic index » view thread      » older message » newer message

mark wrote:
> 
> 
> i post a message previously to ask : how to chain eu program

Why do you want to chain programs? This is a technique used by BASIC and COBOL
programs many many years ago to get over the problem that some programs were too
big to fit into memory so they were broken up into stages and the stages were
chained together.

Modern computers have lots of memory so this is very rarely an issue today.

> I find a way to do it but not sure if it loaded more copies of the intepreter
> 
> at the point the program is to "CHAIN"
> 
> the code will be:
> 
> exitcode = system_exec("p2.ex",2)
> 
> it works, but i am not sure if it will exhaust the memory, i.e.
> is the intepreter executing the parent program , executing the seccond 'child'
> program (p2.ex) or another copy of intepreter is loaded?
> The message on the forum on this subject is rather confuding to me
> Sorry I am new at this computer stuff and dont quiet understand the memory
> issue
> 
> I am concerned that the memory is overloaded and the files are corrupted
> thanks

Why not just write 'p2' as an include file and call it from within 'p1'?

-- 
Derek Parnell
Melbourne, Australia
Skype name: derek.j.parnell

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu