This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Go in gcc 4.7


Joel Sherrill <joel.sherrill@oarcorp.com> writes:

> On 01/12/2012 12:16 PM, Andreas Schwab wrote:
>> Ian Lance Taylor<iant@google.com>  writes:
>>
>>> The functions required are makecontext, getcontext, and setcontext.
>> Note that these functions are obsolescent in POSIX.1-2004 and removed
>> from POSIX.1-2008.
> Are there any alternatives? It is bad that Go is already starting
> out dependent on obsolete methods.  :(

I would be glad to use alternatives but I'm not aware of any.

The getcontext and setcontext functions are easy.  The harder one is
makecontext.  POSIX appears to be assuming that any use of makecontext
can be replaced with pthread_create, but if you care about efficiency
that simply isn't true.

Ian


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]