From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: AJMR Newsgroups: gmane.emacs.devel Subject: Re: Windows 64 port Date: Sun, 26 Feb 2012 21:17:46 +0100 Message-ID: <20120226211746.00004f8f@unknown> References: <20120219211800.0000558f@unknown> <834numv7js.fsf@gnu.org> <83ty2ltep0.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1330287480 4441 80.91.229.3 (26 Feb 2012 20:18:00 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 26 Feb 2012 20:18:00 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Feb 26 21:17:59 2012 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1S1kXd-0003Ik-3W for ged-emacs-devel@m.gmane.org; Sun, 26 Feb 2012 21:17:57 +0100 Original-Received: from localhost ([::1]:47438 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S1kXc-0006mh-9m for ged-emacs-devel@m.gmane.org; Sun, 26 Feb 2012 15:17:56 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:32805) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S1kXZ-0006le-RA for emacs-devel@gnu.org; Sun, 26 Feb 2012 15:17:55 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1S1kXY-00032P-Ae for emacs-devel@gnu.org; Sun, 26 Feb 2012 15:17:53 -0500 Original-Received: from a2s66.a2hosting.com ([75.98.174.2]:38966) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S1kXY-00032F-5N for emacs-devel@gnu.org; Sun, 26 Feb 2012 15:17:52 -0500 Original-Received: from 5ed1c943.cm-7-2d.dynamic.ziggo.nl ([94.209.201.67] helo=unknown) by a2s66.a2hosting.com with esmtpsa (TLSv1:AES128-SHA:128) (Exim 4.69) (envelope-from ) id 1S1kXV-002KQj-2A for emacs-devel@gnu.org; Sun, 26 Feb 2012 15:17:49 -0500 In-Reply-To: <83ty2ltep0.fsf@gnu.org> X-Mailer: Claws Mail 3.8.0cvs6 (GTK+ 2.16.6; i586-pc-mingw32msvc) X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - a2s66.a2hosting.com X-AntiAbuse: Original Domain - gnu.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - ilovetortilladepatatas.com X-Source: X-Source-Args: X-Source-Dir: X-detected-operating-system: by eggs.gnu.org: Windows 98 (1) X-Received-From: 75.98.174.2 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:148799 Archived-At: Hi everyone, First of all, my gratitude for all the replies to the thread. Secondly, it is not that I got scared (although, to be honest I feel a bit overwhelmed for the depth of some details in this first contact). However, most of time I can make nowadays is on weekends. Thirdly, I have been reading any developers guides / instructions that I could find and diving into the code. However, I am not sure whether this is the correct approach. Any comments related to this topic will be extra welcomed. Finally, mainly to Eli and Fabrice, would it be OK if I contacted you (via direct e-mail) in order to plan a more task-oriented roadmap? ======== This is probably quite off topic ====== Dear Dr. Richard Stallman, First of all, many, many, many thanks for all your contributions already made (and hopefully more to come). I tip my hat to you. I also appreciate your concern about porting myself completely to GNU/Linux and even becoming a 100% free software user. However, not being free is a sacrifice I have chosen to make. Temporary. The target is to be once again really free. Meanwhile, I would love to add something to the GNU and free software world. Of course, I would love even more to contribute with an extremely useful application which would improve people's life. Nevertheless, I thought about going step by step and join into an already existing project. I even thought that a port would be well defined and narrowly scoped so I could gain momentum. Of course, I may be wrong. With all that in mind, I thought about helping with the free software I have used the most. I guessed that it would not be a piece of cake, but nothing is ever easy. ================================================ Thanks, Alfredo. On Mon, 20 Feb 2012 22:47:23 +0200 Eli Zaretskii wrote: > > From: Fabrice Popineau > > Date: Sun, 19 Feb 2012 23:05:52 +0100 > > Cc: AJMR , emacs-devel@gnu.org > > > > Here is my Windows 64 bits patch. It is quite crude and only > > attempts to make it possible to compile a 64bits emacs with the MS > > Sdk. > > I have a few questions about the patch (below). > > > the heap allocation scheme should probably be reworked > > Can you tell which parts of the current scheme need to be reworked, > and why do you think so? > > > === modified file 'lib/strftime.c' > > --- lib/strftime.c 2011-03-31 04:24:03 +0000 > > +++ lib/strftime.c 2011-12-05 13:09:35 +0000 > > @@ -36,9 +36,13 @@ > > #include > > #include > > > > +#ifdef _MSC_VER > > +#define tzname _tzname > > +#else > > #if HAVE_TZNAME && !HAVE_DECL_TZNAME > > extern char *tzname[]; > > #endif > > +#endif > > This seems to be unrelated to 64-bit hosts. Why is it needed, when > s/ms-w32.h has the same #define (which your patch #ifdef's away)? > What is the issue here? > > > === modified file 'src/editfns.c' > > --- src/editfns.c 2012-01-19 07:21:25 +0000 > > +++ src/editfns.c 2012-02-05 20:06:34 +0000 > > @@ -82,6 +82,8 @@ > > > > #ifdef WINDOWSNT > > extern Lisp_Object w32_get_internal_run_time (void); > > + > > +extern struct tm *localtime (const time_t *t); > > #endif > > Why is this needed? It seems also unrelated to 64-bit Windows. > > > -internal_lisp_condition_case (volatile Lisp_Object var, > > Lisp_Object bodyform, +internal_lisp_condition_case (/* volatile */ > > Lisp_Object var, Lisp_Object bodyform, > > Does MSVC have problems with the `volatile' qualifier? > > > --- src/frame.c 2012-01-19 07:21:25 +0000 > > +++ src/frame.c 2012-02-05 20:06:34 +0000 > > @@ -812,6 +812,7 @@ > > #ifdef HAVE_WINDOW_SYSTEM > > if (track && FRAME_WINDOW_P (XFRAME (frame))) > > { > > + extern Lisp_Object x_get_focus_frame(struct frame *); > > This should go into w32term.h (it is already in xterm.h and nsterm.h). > > > --- src/m/amdx86-64.h 2012-01-19 07:21:25 +0000 > > +++ src/m/amdx86-64.h 2012-02-05 20:06:34 +0000 > > @@ -17,7 +17,8 @@ > > You should have received a copy of the GNU General Public License > > along with GNU Emacs. If not, see > > . */ > > -#define BITS_PER_LONG 64 > > +#define BITS_PER_LONG 32 > > Here Windows and Posix systems differ, so it's wrong to do this > unconditionally. Does the 64-bit Windows define _LLP64 or some such > somewhere on its headers? If so, perhaps we could condition the above > on that macro, vs _LP64 on Posix hosts. > > > /* Define the type to use. */ > > -#define EMACS_INT long > > -#define pI "l" > > -#define EMACS_UINT unsigned long > > +#define EMACS_INT __int64 > > +#define EMACS_UINT unsigned __int64 > > +#define pI "ll" > > +#define VIRT_ADDR_VARIES > > +#define DATA_START get_data_start () > > Likewise here. > > Thanks. >