Go Back   ZeroC Forums > Bug Reports

Reply
 
LinkBack Thread Tools Rate Thread Display Modes
  #1 (permalink)  
Old 03-24-2006
fmoya fmoya is offline
Registered User
 
Name: Francisco Moya
Organization: UCLM
Project: Debian packages
 
Join Date: Oct 2004
Posts: 46
MIPS and Alpha support

Hi,

Would it be possible to apply the following patch to IceUtil/Config.h and icecpp/config.h?

This is just to select the proper endianness in MIPS and to set the wchar_t size in Alpha.

Code:
===================================================================
--- include/IceUtil/Config.h~   2006-02-01 06:56:14.000000000 +0100
+++ include/IceUtil/Config.h    2006-03-20 12:15:48.000000000 +0100
@@ -18,10 +18,10 @@
 //
 #if defined(__i386)   || defined(_M_IX86)    || \
     defined(__x86_64) || defined(_M_X64)     || \
-    defined(_M_IA64)  || defined(__alpha__)
+    defined(_M_IA64)  || defined(__alpha__)  || defined(__MIPSEL__)
 #   define ICE_LITTLE_ENDIAN
-#elif defined(__sparc) || defined(__sparc__) || defined(__hppa) || \
-      defined(__ppc__) || defined(_ARCH_COM)
+#elif defined(__sparc) || defined(__sparc__)  || defined(__hppa) || \
+      defined(__ppc__) || defined(__MIPSEB__) || defined(_ARCH_COM)
 #   define ICE_BIG_ENDIAN
 #else
 #   error "Unknown architecture"
--- src/icecpp/config.h~	2006-03-20 00:42:36.000000000 +0000
+++ src/icecpp/config.h		2006-03-20 00:47:51.000000000 +0000
@@ -63,7 +63,7 @@
 #if defined(_WIN32)
 #   define WCHAR_TYPE_SIZE 2
 #elif (defined(__linux) || defined(__FreeBSD__)) && \
-      (defined(__i386) || defined(__x86_64) || defined(__sparc)) || \
+      (defined(__i386) || defined(__x86_64) || defined(__sparc) || \
+       defined(__mips) || defined(__alpha__)) || \
        defined (__sun) || defined(__hpux) || defined(__APPLE__) || \
        defined(_AIX) || defined(__osf1__)
 #   define WCHAR_TYPE_SIZE 4
Indeed, for WCHAR_TYPE_SIZE a Debian developer (Falk Hueffner) reports the following alternative that relies on having a complete limits.h (since icecpp defines HAVE_LIMITS_H I don't think it would cause any harm to any supported plattform):

Code:
#if WCHAR_MAX == 32767 || WCHAR_MAX == 65536
#   define WCHAR_TYPE_SIZE 2
#elif WCHAR_MAX == 2147483647 || WCHAR_MAX == 4294967295
#   define WCHAR_TYPE_SIZE 4
#else
#   error "unsupported operating system or platform"
#endif
Comments welcome.

F. Moya
__________________
Francisco Moya Fernandez
Computer Architecture and Tecnology Group
University of Castilla-La Mancha

Debian Maintainer of ZeroC Ice packages.
Reply With Quote
  #2 (permalink)  
Old 03-24-2006
marc's Avatar
marc marc is offline
ZeroC Staff
 
Name: Marc Laukien
Organization: ZeroC, Inc.
Project: The Internet Communications Engine
 
Join Date: Feb 2003
Location: Florida
Posts: 1,781
Thank you very much, we will add this.
Reply With Quote
  #3 (permalink)  
Old 03-24-2006
bernard's Avatar
bernard bernard is online now
ZeroC Staff
 
Name: Bernard Normier
Organization: ZeroC, Inc.
Project: Ice
 
Join Date: Feb 2003
Location: Palm Beach Gardens, FL
Posts: 818
We no longer use WCHAR_TYPE_SIZE on our mainline, so incorporating this patch very easy .

Bernard
__________________
Bernard Normier
ZeroC, Inc.
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Icicle (Ice for C#) Alpha 2 released michi Announcements 0 05-04-2004 10:49 PM
Icicle (Ice for C#) Alpha 1 released michi Announcements 0 04-20-2004 01:44 AM
patch for alpha and linux-ppc peter.s Patches 4 03-25-2004 01:24 PM


All times are GMT -4. The time now is 05:07 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.0.0
(c) 2008 ZeroC, Inc.