Return-Path: Delivered-To: apmail-incubator-harmony-dev-archive@www.apache.org Received: (qmail 55596 invoked from network); 4 Nov 2005 09:35:32 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 4 Nov 2005 09:35:32 -0000 Received: (qmail 48216 invoked by uid 500); 4 Nov 2005 09:35:28 -0000 Delivered-To: apmail-incubator-harmony-dev-archive@incubator.apache.org Received: (qmail 48138 invoked by uid 500); 4 Nov 2005 09:35:27 -0000 Mailing-List: contact harmony-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: harmony-dev@incubator.apache.org Delivered-To: mailing list harmony-dev@incubator.apache.org Received: (qmail 48125 invoked by uid 99); 4 Nov 2005 09:35:27 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 04 Nov 2005 01:35:27 -0800 X-ASF-Spam-Status: No, hits=1.4 required=10.0 tests=DNS_FROM_RFC_POST X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [143.183.121.14] (HELO scsfmr002.sc.intel.com) (143.183.121.14) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 04 Nov 2005 01:35:22 -0800 Received: from scsfmr101.sc.intel.com (scsfmr101.sc.intel.com [10.3.253.10]) by scsfmr002.sc.intel.com (8.12.10/8.12.10/d: major-outer.mc,v 1.1 2004/09/17 17:50:56 root Exp $) with ESMTP id jA49Z6Nc026912 for ; Fri, 4 Nov 2005 09:35:06 GMT Received: from scsmsxvs040.sc.intel.com (scsmsxvs040.sc.intel.com [10.3.90.8]) by scsfmr101.sc.intel.com (8.12.10/8.12.10/d: major-inner.mc,v 1.2 2004/09/17 18:05:01 root Exp $) with SMTP id jA49X94r010337 for ; Fri, 4 Nov 2005 09:33:16 GMT Received: from scsmsx332.amr.corp.intel.com ([10.3.90.6]) by scsmsxvs040.sc.intel.com (SAVSMTP 3.1.7.47) with SMTP id M2005110401350624998 for ; Fri, 04 Nov 2005 01:35:06 -0800 Received: from scsmsx401.amr.corp.intel.com ([10.3.90.12]) by scsmsx332.amr.corp.intel.com with Microsoft SMTPSVC(6.0.3790.211); Fri, 4 Nov 2005 01:35:06 -0800 X-MimeOLE: Produced By Microsoft Exchange V6.5.7226.0 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Subject: RE: compiling bootJVM with MSVC Date: Fri, 4 Nov 2005 01:35:05 -0800 Message-ID: <01EF044AAEE12F4BAAD955CB7506494305134903@scsmsx401.amr.corp.intel.com> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: compiling bootJVM with MSVC Thread-Index: AcXhIYYcN+CPtKdBTsG6qQgzRI7K7gAATP2Q From: "Liu, Jack" To: X-OriginalArrivalTime: 04 Nov 2005 09:35:06.0258 (UTC) FILETIME=[0A48DF20:01C5E123] X-Scanned-By: MIMEDefang 2.52 on 10.3.253.10 X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N C++ allows empty struct or class (gcc 4.0 supports empty struct even in C). Empty struct/class can be used as a placeholder for future development. -----Original Message----- From: Sebastian Hartte [mailto:Sebastian@Hartte.de]=20 Sent: Friday, November 04, 2005 1:23 AM To: harmony-dev@incubator.apache.org Subject: Re: compiling bootJVM with MSVC Hi you two, I tried a similar thing (using Visual Studio 2005 Professional). The empty structs are still an error in that compiler version (What do you need empyt structs for anyway? Allocation a zero byte memory region doesn't make much sense to me). But i also run into problems with pthread.h since that doesn't exist on Windows. Either i screwed up and included the wrong header files (but i think jvm.h belongs to the project) or the threading is entirely based on pthreads. Isn't there some form of platform independent threading in the apache httpd project that could be used over here? After all refactoring is cool ;-) bye, Sebastian Enrico Migliore wrote: > >> Enrico, >> >> Did Tim's comment help? Did this resolve it? >> Have you had any other porting issues in either >> compilation or configuration? I would like for us to >> keep up with these sorts of issues because it would >> be great if we could support MSVC as one of the >> development _and_ target type environments >> for bootJVM. >> >> Are you by chance familiar with doing InstallShield >> scripts? This would give us an alternative for Windows >> platforms for doing configuration and installation. >> Please let everyone know what all you find as you >> work with the MSVC environment so that that source >> can be adjusted for portability when all the issues >> are resolved. Just by the way, I'm still working on >> the final bit of basic functionality of the JVM runtime >> engine and should have something available soon. >> Thanks for your help and interest. >> >> Dan Lydick >> >> >> =20 >> > Hi Dan, > > I'm trying to compille bootJVM with MSVC 6.0. > > Tim's. suggestion (long long =3D __int64) works fine. > > I didn't translate the configuration and build scripts into .bat files > for Windows, I just > ran the scripts in Cygwin, in order to have the source tree available > and made a > "console application" in MSVC. > I'm not much familiar with InstallShield scripts and honestly I'd > prefer to dedicate > my spare time to work on the source code side (C is my "daily bread"). > > Right now I got some problems which I'm planning to solve during the > weekend, > here are two examples: > > ------------------------------------------------------------------------ -------------- > > rvoid argv_init(int argc, char **argv, char **envp) > { > rchar *chkjh; > chkjh =3D (rchar *) rnull; > rchar *chkcp; <--- MSVC flags this as a compilation error > > ..\jvm\src\argv.c(127) : error C2275: 'rchar' : illegal use of this > type as an expression > ------------------------------------------------------------------------ -------------- > > > ------------------------------------------------------------------------ -------------- > > typedef struct > { > u1 tag; > u2 string_index; > > struct LOCAL_String_binding > { > <-- MSVC doesn't > like an empty struct > } LOCAL_String_binding; > } CONSTANT_String_info; > > ..\jvm\src\classfile.h(1031) : error C2059: syntax error : '}' > > I have to add "int foo;" in order to proceed > ------------------------------------------------------------------------ -------------- > > > > Certainly, the code will have to be slightly adjusted for portability. > > Let me proceed and after the weekend I'll write a report. > > > ciao, > Enrico > > >