Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Icon > Re: Icon / Unic...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 2 of 3 Topic 143 of 188
Post > Topic >>

Re: Icon / Unicon and the C stack

by gmt@[EMAIL PROTECTED] (Gregg Townsend) Jan 31, 2007 at 03:19 PM

In article <EpWdncwxzfxhayLYnZ2dnUVZ_uCinZ2d@[EMAIL PROTECTED]
>,
Frank J. Lhota <FrankLho.NOSPAM@[EMAIL PROTECTED]
> wrote:
> ... The function coswitch() is used to change 
> the C stack to the one associated with the co-expression that will soon
gain 
> control. Needless to say, coswitch is extremely platform specific. All 
> implementations of coswitch use some assembler. The coswitch function 
> depends on the machine archetecture, the OS conventions, and even the 
> specific details of the compiler implementation. On some platforms, 
> switching the C stack is quite simple. On others, it is nearly
impossible, 
> requiring that Icon / Unicon be implemented without co-exopressions.

Actually, the current version of Icon includes a coswitch function in C
that uses POSIX threads for stack management.  I don't know of any modern
platform where this doesn't work.  It's been tested on the PowerPC G5,
AMD X64, and Intel Itanium architectures, as well platforms such as the
X86 and Sparc that have assembler alternatives available.

---------------------------------------------------------------------------
Gregg Townsend         Staff Scientist      The University of Arizona
gmt@[EMAIL PROTECTED]
     Computer Science     Tucson, Arizona, USA
 




 3 Posts in Topic:
Icon / Unicon and the C stack
"Frank J. Lhota"  2007-01-30 20:55:08 
Re: Icon / Unicon and the C stack
gmt@[EMAIL PROTECTED] (G  2007-01-31 15:19:30 
Re: Icon / Unicon and the C stack
Steve Wampler <swample  2007-01-31 08:21:46 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Wed Jul 9 6:03:59 CDT 2008.