This is the mail archive of the gcc-help@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: Can't build Go support in gcc-4.8.1 on OpenBSD


On Sat, Sep 28, 2013 at 1:32 PM, niXman <i.nixman@gmail.com> wrote:
> 2013/9/28 Ian Lance Taylor:
>
>> The current implementation of goroutines in gccgo requires the
>> makecontext, getcontext, and setcontext functions.
> What do goroutines use in gcc-4.6.x instead of theese functions?

In GCC 4.6 libgo each goroutine is run in a separate thread, rather
than using the more efficient context switching functions.


>> ... But I have not actually done this.
> Is libgo writen by you?

The vast majority of libgo is simply the same standard library that is
used by the gc compiler.  I wrote the parts of it that are specific to
gccgo.

Ian


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