Re: [Cegcc-devel] cegcc/mingw32ce with gcc 4.6.3

2012-07-25 Thread Avtar Singh
(Continuing with an old thread because of context)

Hi,

I have downloaded Max's cegcc fork (mail below), and built the mingw32ce
toolchain. Build has been successful on 32-bit Ubuntu 12.04 LTS. Simple
programs work fine. However, if I have a simple program with a "virtual"
function, it throws a Data Abort. The program that I am trying to run is
reproduced below:

/* tv1.cpp */
#include 

using namespace std;

class TVA {
public:
int pm() { return 10; }
virtual int vm();
};

int TVA::vm() { return 20; }

int main() {
cout << "tv1-begin";

TVA a1;
int rv = a1.pm();
cout << rv;

cout << "tv1-end";
return 0;
}

Command line: arm-mingw32ce-g++ tv1.cpp -o tv1.exe
Note: Result is same whether enable-auto-import is used or not used

Is the support for "virtual" broken in this toolchain too?

Thanks,
Avtar



  *[Cegcc-devel] cegcc/mingw32ce with gcc
4.6.3
*
From: Max Kellermann  - 2012-03-13 22:13

Hi,

I have updated my cegcc fork to gcc 4.6.3, here's my release
2012-03-13:

 http://max.kellermann.name/projects/cegcc/
 http://max.kellermann.name/download/xcsoar/devel/cegcc/

Max
--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/___
Cegcc-devel mailing list
Cegcc-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/cegcc-devel


Re: [Cegcc-devel] cegcc/mingw32ce with gcc 4.6.3

2012-05-06 Thread André Hentschel
Am 13.03.2012 23:13, schrieb Max Kellermann:
> Hi,
> 
> I have updated my cegcc fork to gcc 4.6.3, here's my release
> 2012-03-13:
> 
>  http://max.kellermann.name/projects/cegcc/
>  http://max.kellermann.name/download/xcsoar/devel/cegcc/

It would be great to generate a mingw-arm that can compile for WoA (Win8 on 
ARM) and maybe also for CE.
mostly you need to change the machine type and provide the libs and includes 
(partly already there for the x86 stuff).
WoA makes use of Thumb2, but there's no need to have compiler support for it.
I'd guess it's not that hard when you're familiar with the code.
We could make use of that in Wine for example.
E.g. crosscompiling Wine dlls missing in WoA to add additional functions, or 
simply crosscompile the testsuite.
I already was able to run WoA PEs (compiled with VS11beta) in Wine...
Thoughts?


-- 

Best Regards, André Hentschel

--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
Cegcc-devel mailing list
Cegcc-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/cegcc-devel