help compilation qemu

Csaba Ráduly rcsaba@gmail.com
Sun May 24 09:25:30 GMT 2020


Hi Juan Carlos,

On 24/05/2020 02:08, Juan carlos Rebate via Cygwin wrote:
...

> 1 the compiler is extremely slow, gcc on Linux is about 10 times
> faster, How could I speed up the compilation process?.

Unfortunately, Cygwin's emulation of fork() is slow compared to the native Linux 
implementation (I've seen 1000x difference once, in a test launching the same 
program repeatedly). There's not much you can do about it, except getting faster 
hardware. A C++ build involves lots and lots of programs being forked.

> 2 the executables produced are too fat, for example qemu-system-i386 is 65
> MB, but it should be 10.5 MB, if I use the -s option in configure returns
> an unknown error message, how could I fix it? Thank you

Why do you think qemu-system-i386 "should be 10.5 MB" ?
Are you using 32-bit or 64-bit Cygwin? 64-bit executables are usually bigger 
than their 32-bit counterparts (although rarely six times as big).

You really need to give us more information if you hope to get help, like the 
actual commands you used and the exact error message.

Without those, we can only guess, and my crystal ball is not very reliable.

If you want to strip the resulting executables, you could try setting the 
LDFLAGS environment variable to '-s' before running configure

Csaba
-- 
You can get very substantial performance improvements
by not doing the right thing. - Scott Meyers, An Effective C++11/14 Sampler
So if you're looking for a completely portable, 100% standards-conformat way
to get the wrong information: this is what you want. - Scott Meyers (C++TDaWYK)


More information about the Cygwin mailing list