[iyonix-support] Re: Coroutines with Norcroft C
- From: Peter Naulls <peter@xxxxxxxxxx>
- To: iyonix-support@xxxxxxxxxxxxx
- Date: Thu, 24 Aug 2006 05:53:09 -0700
In message <4e5b67fe51Jeremy@xxxxxxxxxxxxxxxx>
Jeremy C B Nicoll <Jeremy@xxxxxxxxxxxxxxxx> wrote:
> In article <4e5b2a7027steve@xxxxxxxxxxxxxxx>,
> Ste (PlusNet) <steve@xxxxxxxxxxxxxxx> wrote:
> > On 23 Aug, Gavin Wraith <gavin@xxxxxxxxxxxxxxx> wrote:
> > > I tried emailing this to c-support@xxxxxxxxxxxx but it bounced. It
> > > is probably a rather naive question but I am looking for advice
> > > from those more expert. I want to implement coroutines in an
> > > application written in C. That means that I will need separate
> > > stacks for different coroutines.! Is there a straightforward way of
> > > doing this using the Norcroft C package? Or is there more support
> > > for this sort of thing using gcc?
>
> > This is something which I know for a fact has been done. Kevin Bracey
> > wrote some C software within the last year that used coroutines. You
> > might be able to ask his advice, although I agree with the other
> > people posting here that you should put your request to the
> > comp.sys.acorn.programmer newsgroup and he or someone else with
> > similar knowledge could answer there (which would be of benefit to
> > others).
>
> Could one keep multiple stacks in a Dynamic Area?
C has no support for coroutines, but C++ does. But if all that's needed
is multiple stacks, then you can use the pthreads implementation in
UnixLib. However, as has been pointed out, this is not sutiable
dicussion for this list - followups to csa.programmer or GCCSDK mailing
list.
--
Peter Naulls - peter@xxxxxxxxxx | http://www.chocky.org/
----------------------------------------------------------------------------
RISC OS Community Wiki - add your own content | http://www.riscos.info/
---
To alter your preferences or leave the group,
visit http://www.freelists.org/list/iyonix-support
Other info via http://www.freelists.org/webpage/iyonix-support
- References:
- [iyonix-support] Coroutines with Norcroft C
- From: Gavin Wraith
- [iyonix-support] Re: Coroutines with Norcroft C
- From: Ste (PlusNet)
- [iyonix-support] Re: Coroutines with Norcroft C
- From: Jeremy C B Nicoll
Other related posts:
- » [iyonix-support] Coroutines with Norcroft C
- » [iyonix-support] Re: Coroutines with Norcroft C
- » [iyonix-support] Re: Coroutines with Norcroft C
- » [iyonix-support] Re: Coroutines with Norcroft C
- » [iyonix-support] Re: Coroutines with Norcroft C
- » [iyonix-support] Re: Coroutines with Norcroft C
- » [iyonix-support] Re: Coroutines with Norcroft C
- » [iyonix-support] Re: Coroutines with Norcroft C
- » [iyonix-support] Re: Coroutines with Norcroft C
- [iyonix-support] Coroutines with Norcroft C
- From: Gavin Wraith
- [iyonix-support] Re: Coroutines with Norcroft C
- From: Ste (PlusNet)
- [iyonix-support] Re: Coroutines with Norcroft C
- From: Jeremy C B Nicoll