[vbox-dev] Is gcc 3.3.x really necessary to compile the recompiler?

Huihong Luo huisinro at yahoo.com
Tue Jul 14 23:15:01 PDT 2009

Hi Nilolay,
I will give it a try to see if msvc++ compilation of recompiler can be easily done.
In the meantime, can you give some details on the cross compilation process? which tool are you using? which version? more info is highly appreciated.
Thanks for your very helpful info thus far,

--- On Tue, 7/14/09, Nikolay Igotti <Nikolay.Igotti at Sun.COM> wrote:

From: Nikolay Igotti <Nikolay.Igotti at Sun.COM>
Subject: Re: [vbox-dev] Is gcc 3.3.x really necessary to compile the recompiler?
To: "Huihong Luo" <huisinro at yahoo.com>
Cc: "VirtualBox developer's list" <vbox-dev at virtualbox.org>
Date: Tuesday, July 14, 2009, 12:25 PM

Hi Huihong,

Actually this file is built on Windows using cross-compiler for Linux target :). It's being built this way, because there was no good MinGW for 64-bit at times it was done, and REM relies on GCC extensions (notably global registers variables and some FP stuff) to function correctly. Right approach would be to rebuild recompiler with MSVC eventually, but it needs a volunteer (I think it was done for QEMU, so should be feasible).
Also if taking MinGW64 approach don't forget calling convention difference on AMD64 between Linux and Windows. REM relies on that too (not too hard to fix, for sure, just need a bit of understanding in TCG).

If you (or someone else on this list ) will do that - I can help with getting patch integrated (never found enough time/desire to do that myself).


Huihong Luo пишет:
> Hi Nikolay,
> Thanks for the clarification. It's much easier without sticking to the old gcc version.
> Yes, I noticed that VBoxRem2.rel is an ELF image. Can you explain how this file is built? I assume it's done on Linux. Do you use mingw toolchain on linux to do the cross compile? Since it's ELF image, perhaps it's built from pure linux gcc (w/o cross compile to windows)?
> I am trying to eliminate VBoxREM2.rel on windows using MingW64, in other words, combining the current VBoxREM.dll + VBoxREM2.rel ==> VBoxREM.dll
> Thanks,
> Huihong
> --- On *Tue, 7/14/09, Nikolay Igotti /<Nikolay.Igotti at Sun.COM>/* wrote:
>     From: Nikolay Igotti <Nikolay.Igotti at Sun.COM>
>     Subject: Re: [vbox-dev] Is gcc 3.3.x really necessary to compile
>     the recompiler?
>     To: "Huihong Luo" <huisinro at yahoo.com>
>     Cc: "VirtualBox developer's list" <vbox-dev at virtualbox.org>
>     Date: Tuesday, July 14, 2009, 2:24 AM
>     Hi Huihong,
>     Recompiler should build OK with recent gcc. Gcc 3 limitation was
>     applicable to 'old' recompiler, not relying on TCG for
>     codegeneration. Windows 64-bit REM is built to ELF image, not PE,
>     thus MinGW shall be of little help to you.
>     Thanks,
>     Nikolay.
>     Huihong Luo wrote:
>     > The reason I asked is that gcc 4.4.3 seems to be working fine on
>     linux, so I am very confused about gcc requirement.
>     > I am trying to use the latest gcc4.4.0 mingw64 bit on amd64 to
>     build the recompiler, would this be a problem?
>     > Does 3.3.x requirement only apply to mingw32? in other cases,
>     gcc 4 is OK?
>     > Thanks,
>     >
>     >
>     ------------------------------------------------------------------------
>     >
>     > _______________________________________________
>     > vbox-dev mailing list
>     > vbox-dev at virtualbox.org
>     <http://us.mc343.mail.yahoo.com/mc/compose?to=vbox-dev@virtualbox.org>
>     > http://vbox.innotek.de/mailman/listinfo/vbox-dev
>     >
> ------------------------------------------------------------------------
> _______________________________________________
> vbox-dev mailing list
> vbox-dev at virtualbox.org
> http://vbox.innotek.de/mailman/listinfo/vbox-dev

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.virtualbox.org/pipermail/vbox-dev/attachments/20090714/2c8c5062/attachment-0001.html 

More information about the vbox-dev mailing list