bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#9960: Compiling Emacs trunk with MSVC


From: Fabrice Popineau
Subject: bug#9960: Compiling Emacs trunk with MSVC
Date: Thu, 10 Nov 2011 20:56:11 +0100



2011/11/7 Eli Zaretskii <eliz@gnu.org>
Will this work:

 #define ALIGN_GCTYPEBITS 8
 #if (1 << GCTYPEBITS) != ALIGN_GCTYPEBITS
 #error ALIGN_GCTYPEBITS is wrong!
 #endif
 #define DECL_ALIGN(type, var) \
      type __declspec(align(ALIGN_GCTYPEBITS)) var

Since all this is needed for MSVC alone, we could then move the
ALIGN_GCTYPEBITS definition to src/s/ms-w32.h and leave only the rest
in lisp.h.  WDYT?

Sure. feel free to adapt on the basis of the attached patch.
Status is : 
- completely functional 32 bits version with xpm, gif, jpeg, tiff. Able to boostrap itself.
- the 64 bits version compiles and dumps, but fails to bootstrap (seems to be looping inside elisp code).

Is there any interest in having a 64bits windows emacs ?

I have added two other files : a 64bits manifest for emacs.exe and a w32compat.h header file that is needed to compile the above mentioned libraries. In my case, this w32compat.h is included while compiling image.c for example.

Feel free to comment and adapt for the release version.

Fabrice



--
Fabrice Popineau
-----------------------------
SUPELEC
Département Informatique
3, rue Joliot Curie
91192 Gif/Yvette Cedex
Tel direct : +33 (0) 169851950
Standard : +33 (0) 169851212
------------------------------


Attachment: emacs-24-3.diff
Description: Binary data

Attachment: emacs-x64.manifest
Description: Binary data

Attachment: w32compat.h
Description: Text Data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]