🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: comp.sys.transputer
3 messages
3 total messages Started by aghao Wed, 11 Nov 1992 13:14
Manipulating process workspace on the Transputer
#1281
Author: aghao
Date: Wed, 11 Nov 1992 13:14
25 lines
1292 bytes
Greetings.

As part of my research, I need to be able to examine the workspace of one or 
more Transputer processes.  Clearly, this is quite feasible, as I can get hold
of the Wptr of a process.

However, as I need to access the workspaces as separate, individual entities,
I need to know what the boundaries are, ie where each particular process' 
workspace starts and *ends*.  One possibility is to find out what the size
of each workspace is, and that is what I am hoping to be able to do.

Does anyone out there have any suggestions?  Most of my work is done using 
GENESYS C, although suggestions with ref. to any other language would be 
gratefully received.

Thanks,

	Obi Aghanya
	Dept of Computer Science
	University of Essex
	Colchester CO4 3SQ
	UK

PS  Sorry if you have seen this message before, but I don't think the previous
    one got past our server!
Re: Manipulating process workspace on the Transputer
#1289
Author: Brian d'Auriol
Date: Thu, 12 Nov 1992 19:43
15 lines
931 bytes
In article <6348@sersun1.essex.ac.uk> aghao@sersun2.essex.ac.uk () writes:
>Greetings.
>
>As part of my research, I need to be able to examine the workspace of one or 
>more Transputer processes.  Clearly, this is quite feasible, as I can get hold
>of the Wptr of a process.
>
I tried to mail you but it bounced (unknown address) so ...
I would be interested in your discussions on this topic, if (or when) feasable,
could you mail/email some of your results?

thanks in advance
Brian d'Auriol
University of New Brunswick  
  
Re: Manipulating process workspace on the Transputer
#1296
Author: Rob Kurver
Date: Fri, 13 Nov 1992 14:16
49 lines
2847 bytes
In <6348@sersun1.essex.ac.uk> aghao@sersun2.essex.ac.uk writes:

>As part of my research, I need to be able to examine the workspace of one or 
>more Transputer processes.  Clearly, this is quite feasible, as I can get hold
>of the Wptr of a process.

>However, as I need to access the workspaces as separate, individual entities,
>I need to know what the boundaries are, ie where each particular process' 
>workspace starts and *ends*.  One possibility is to find out what the size
>of each workspace is, and that is what I am hoping to be able to do.

It is not entirely clear to me what you're looking for, i.e. how you
define the start and end of the workspace.  Are you interested in the
memory reserved for the entire stack of the current thread, or just in
the frame used by the current function invocation?

If the latter, you know the start by loading the Wptr (something
like `__asm ("ldlp 0")'), and you'll have to know a bit about your
compiler system to find out how to find the end.  In general, this
is were any arguments passed to this function are stored, so there
may be some tricks to get this info.  But again, this will most likely
differ (if only slightly) between compilers.  Please send me email
if you'd be interested in the solution for our PACT Parallel C compiler.

>Does anyone out there have any suggestions?  Most of my work is done using 
>GENESYS C, although suggestions with ref. to any other language would be 
>gratefully received.

If you're interested in finding out the start and end of the current
stack for this thread, the solution will depend very much on your
compiler or operating system, as the transputer process itself
stores no such information.  Most decent transputer compilers for
modern languages like C do stack checking in order to allow for
recursion, for which they need to pass some kind of thread
descriptor to each function.  This thread descriptor contains
information about the start and end of the current stack, as well
as info needed to get back to previous chunks of stack.  This info
is most likely given in your compiler documentation.

>	Obi Aghanya

Rob Kurver
PACT Parallel Architecture and Compiler Technology

--
     PACT                   Rob Kurver
    Foulkeslaan 87         rob@pact.nl
   2625 RB Delft     ph: +31 15 616864 
  The Netherlands   fax: +31 15 610032
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads