Other HI-TECH Compilers & Products >> Other HI-TECH Compilers & Products

Pages: 1
vintagecomp
stranger


Reged: Jul 01 2009
Posts: 2
Hitech C 3.09 running with CP/M - function spawnl does not work?
      #119082 - Wed Jul 01 2009 10:52 AM

Hi,

Yes, I know, it's unsupported and too old.
But it's still useful for CP/M enthusiasts to have a working C compiler .... Hitech C 3.09 would be one of the best, but unfortunately my first try was failing...

... I would like to start a program from a self written program, but I wanted to come back to the self written program after the execution of the other one.

That wasn't difficult to discover the 'spawnl()' function, it was proper declared in sys.h , but the linker told me, an unresolved external is found: '_spawnl'

Obviously execl() is implemented, but spawnl() is not.
Surprisingly spawnl() is in the manual described and existing.
Is something missing or is it just unimplemented ?
Thanks for any hint.


Post Extras: Print Post   Remind Me!   Notify Moderator  
clydeAdministrator
Microchip staff
*****

Reged: Oct 16 2003
Posts: 696
Re: Hitech C 3.09 running with CP/M - function spawnl does not work? [Re: vintagecomp]
      #119092 - Wed Jul 01 2009 05:41 PM

CP/M doesn't, generally speaking, support running more than one program at a time, so spawnl is not implemented.

Post Extras: Print Post   Remind Me!   Notify Moderator  
vintagecomp
stranger


Reged: Jul 01 2009
Posts: 2
Re: Hitech C 3.09 running with CP/M - function spawnl does not work? [Re: clyde]
      #119162 - Thu Jul 02 2009 04:56 AM

Just for clarification. I do not want to start more than one program at a time. I just want to "hand out" the control to a launched program, but want to return after completition to the "father" of the forked process.
It's just like execl(), but the program should stay in the background. It's not multitasking, it's not parallel processing, it's not multithreading.


Post Extras: Print Post   Remind Me!   Notify Moderator  
Pages: 1



Extra information
0 registered and 4 anonymous users are browsing this forum.

Moderator:  jtemples, Dan Henry, Andrew L, mikerj 

Print Topic

Forum Permissions
      You cannot start new topics
      You cannot reply to topics
      HTML is enabled
      UBBCode is enabled

Rating:
Topic views: 1234

Rate this topic

Jump to

Contact Us | Privacy statement HI-TECH Software

Powered by UBB.threads™ 6.5.5