This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Go in gcc 4.7
Joel Sherrill <joel.sherrill@oarcorp.com> writes:
> FWIW Go used to work well on RTEMS but recent changes have added
> to the required set of OS APIs required and we are missing ucontext.h
> currently. If someone wants to volunteer to help us out on implementing
> that, it would be appreciated.
I'd be happy to describe what is needed but I can't help much with the
actual implementation.
The functions required are makecontext, getcontext, and setcontext.
These are standard System V functions. makecontext sets up a new
execution context: basically, a stack and a PC, which will start running
when something calls setcontext. getcontext is basically setjmp.
setcontext is basically longjmp.
Ian