qemu-devel@nongnu.org
[Top] [All Lists]

Re: [Qemu-devel] [RFC] Introduce module API to QEMU

Subject: Re: [Qemu-devel] [RFC] Introduce module API to QEMU
From: Paul Brook
Date: Fri, 3 Apr 2009 15:10:16 +0000
> > Yes, this does raise the question of how __attribute__((constructor))
> > works.  Maybe it's specific to new named sections?  Maybe I'm just
> > misremembering.  Anyway, whatever you come up with, testing on
> > Windows would be a good idea if you haven't already.
>
> I'm guessing it's just a C interface to C++ static constructors.  Since
> gcc supports C++ on Windows, I'd expect this to work.

It it has to, gcc will resort to using the equivalent of nm | grep on your 
object files to generate a list of constructors.

Paul


<Prev in Thread] Current Thread [Next in Thread>