Usenet comp.sys.dec (1990-2013)
 help / color / mirror / Atom feed
* Problems with setjmp/longjmp on DEC
@ 1992-08-11 12:28 Roger Centerstr|m
  1992-08-12  0:02 ` Charles M Richmond
  1992-08-12 10:29 ` VAX 4000 VLC CPU manual needed grater boston chapter of the acm
  0 siblings, 2 replies; 4+ messages in thread
From: Roger Centerstr|m @ 1992-08-11 12:28 UTC (permalink / raw)


Hello out there !

I have a tricky question.
I work with a software package that uses setjmp and longjmp in a non standard
way. I have it running on a number of different platforms but it is not working
on an ULTRIX/DEC station.

The program is simulating a number of processes.

The priciples of the program is:

  Store current position of stack for simulated process X.
  ..
  ..
  ..
  simulated process X is running.
  ..
  ..
  ..
  setjmp
  save complete stack for simulated process X. (in non stacked data area)
  ..
  ..
  stack is shrinking below setjmp position.
  ..
  ..
  Perform the same actions for simulated process Y.
  ..
  ..
  longjmp  (to process X)
  reinstall stack for simulated process X. (with a memcpy)
 
  hopefully simulated process x is running

  
This code have caused problems on other platforms, such as on the sparc-station
where I had to use lightweighted processes instaed. On a VMS VAX-750 I had to
write my own longjmp, setjmp and stackhandling functions in MACRO-assembler.

Earlier this year I had an ULTRIX/DEC-station for a few days when I tried the
code, it did not work and I had no chance to find out why, due to lack of time
and tools.

Anyone out there having any experiencs of setjmp, longjmp and 
stack manipulation on an ULTRIX/DEC-Station.


###########################
# Roger Centerstrom       #
# ENEA DATA AB            # 
# BOX 232 Nytorpsvagen 5B #
# S-18323 TABY SWEDEN     #
# E-mail  roce@enea.se    #					   
# Tel     +46 8 792 25 00 #
# Telefax +46 8 768 43 88 #
###########################


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~1992-08-20 16:47 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1992-08-11 12:28 Problems with setjmp/longjmp on DEC Roger Centerstr|m
1992-08-12  0:02 ` Charles M Richmond
1992-08-12 10:29 ` VAX 4000 VLC CPU manual needed grater boston chapter of the acm
1992-08-20 16:47   ` mitcham

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox