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: Threading the compiler


"Dave Korn" <dave.korn@artimi.com> writes:

> > It's irrelevant to the main discussion here, but in fact there is a
> > fair amount of possible threading in the linker proper, quite apart
> > from LTO.  The linker spends a lot of time reading large files, and
> > the I/O wait can be parallelized.
> 
>   That's not even thread-worthy, that just required bog-standard AIO
> techniques.  Um, /are/ there suitably portable AIO techniques?  I guess the
> answer is going to be "Yeah, spawn a posix thread and make an ordinary
> synchronous f* io call in there"!  Heh.

There is a POSIX standard: aio_read and friends.  However, on
GNU/Linux, aio_read just does the read in a different thread anyhow.
So aio_read and friends are just a slightly simpler threading
interface.

Ian


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