Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

JavaÓëCͨÐÅҪעÒâµÄ¼¸¸öÎÊÌâ

1.´óβ(big_endian)Сβ(little_endian)µÄÎÊÌâ
»ùÓÚWebµÄ²âÊÔÈí¼þÊÇÓÉC++Êý¾Ý²É¼¯·þÎñÆ÷³ÌÐòºÍ¿Í»§¶ËJavaÏÔʾ³ÌÐòÁ½²¿·Ö¹¹³É£¬Ç°ÕßÓÃC++£¬ºóÕßJavaÓïÑÔ£¬´æÔÚÊý¾ÝÒÆÖ²ÎÊÌâ¡£ÒòΪ
ÔÚ¼ÆËã»úϵͳÖУ¬µ±°üº¬Êý×ֵĶþ½øÖÆÎļþ´ÓÒ»¸ö½á¹¹ÒƵ½ÁíÒ»½á¹¹Ê±£¬¾Í³öÏÖ´óβСβÎÊÌâ¡£²»Í¬CPUÔÚ¶à×Ö½ÚÊý£¨ÈçËÄ×Ö½Úint£©´æ´¢Ê±ÓÐÁ½ÖÖ·½·¨£¬Ò»ÖÖ
·½·¨½ÐС⣨little_endian£©£¬Êý¾ÝµÄµÍ×Ö½Ú±»·ÅÖÃÔÚÁ¬Ðø´æ´¢ÇøµÄÊ×룬ÁíÒ»ÖÖ·½·¨½Ð´ó⣨big_endian£©£¬Êý¾ÝµÄ¸ß×Ö½Ú±»·ÅÖÃÔÚÁ¬
Ðø´æ´¢ÇøµÄÊ×λ¡£Intel 80×86¼Ò×å´¦ÀíÆ÷ÊÇ×îºóÒ»¸öÈÔÈ»¼á³ÖСβµÄÖ÷Òª½á¹¹¡£ËùÓÐÆäËûµÄCPU½á¹¹£¨Motorola
680×0ºÍËùÓÐRISCоƬ£©»òÕßÊÇ´¿´âµÄ´óβ»òÕßÊǼÈÊÊÓ¦´óβҲÊÊӦС⣬´óβ±»ÈÏΪÊǸü·ûºÏÂß¼­µÄ·½·¨£©¡£µ±Êý×ÖÓÉСβ´¦ÀíÆ÷дÈëÎļþÈ»ºóÓÖÓÉ´óβ
´¦ÀíÆ÷¶ÁÈ¡£¨»òÕßµ¹¹ýÀ´£©Ê±£¬Êý×־ͻᱻ¸ãÂÒ£¨³ýÁË0ºÍ-1£©¡£
Ä¿Ç°ÔÚ±ÊÕß²ÎÓëµÄÏîÄ¿ÖÐƽ̨ÖÐÐĵÄGM
ServerÊÇCÓïÑÔʵÏÖµÄ,¶øÎÒÃÇÕâ±ßµÄGM
clientΪJavaʵÏֵģ¬×ÔÈ»ÐèÒª¿¼ÂÇÕâ¸öͨÐÅʱµÄ´óСβת»»£¬Ö÷ÒªÉæ¼°short,int,longÀàÐÍ£¬String,byteÀàÐͲ»ÐèҪת
»».
2.ÀàÐÍ×Ö½Ú´óСµÄÎÊÌâ
CÓïÑÔÖеĻù±¾ÀàÐÍÈçÏ£º
 
ÀàÐÍ
¶¨Òå
˵Ã÷
BYTE
typedef
unsigned char BYTE
µ¥×Ö½Ú
WORD
typedef
unsigned short WORD
Ë«×Ö½ÚÎÞ·ûºÅÕûÊý
SWORD
typedef
signed short SWORD
Ë«×Ö½Ú·ûºÅÕûÊý
DWORD
typedef
unsigned int DWORD
ËÄ×Ö½ÚÎÞ·ûºÅÕûÊý
SDWORD
typedef
signed int SDWORD
ËÄ×Ö½Ú·ûºÅÕûÊý
JavaµÄ°ËÖÖ»ù±¾Êý¾ÝÀàÐÍÈçÏ£º
byte     1×Ö½Ú              
short   
2×Ö½Ú              
int         4×Ö½Ú  
            
long    
8×Ö½Ú £¨CÓïÑÔÖÐÊÇ4×Ö½Ú£©             
char     2×Ö½Ú£¨CÓïÑÔÖÐÊÇ1×Ö½Ú£©
float    
4×Ö½Ú              
double  8


Ïà¹ØÎĵµ£º

LinuxϵÄC±à³Ìʵս֮Îļþϵͳ±à³Ì

ÎÄÕÂÀ´Ô´£ºhttp://dev.yesky.com/468/7601968.shtml
2007-10-12 11:01×÷ÕߣºËᦻª³ö´¦£ºÌ켫ÍøÈí¼þƵµÀÔðÈα༭£º·½ÖÛ
1.LinuxÎļþϵͳ
¡¡¡¡LinuxÖ§³Ö¶àÖÖÎļþϵͳ£¬Èçext¡¢ext2¡¢minix¡¢iso9660¡¢msdos¡¢fat¡¢vfat¡¢nfsµÈ¡£ÔÚÕâЩ¾ßÌåÎļþϵͳµÄÉϲ㣬LinuxÌṩÁËÐéÄâÎļþϵͳ£¨VFS£©À´Í³Ò»ËüÃǵÄÐÐΪ£¬ÐéÄâÎļþϵͳΪ ......

¸øCÅ̼õ¼õ·Ê,ÈÃÄãµçÄÔ·ÉÒ»°ãËÙ¶È

µ±ÄãÂòÁĘ̈еçÄÔʱ£¬¾õµÃÐÔÄÜ£¬Ëٶȣ¬Ä㶼±È½ÏÂúÒ⣬µ«ÊÇËæ×Åʱ¼äÍÆÒÆ£¬Äã¾õµÃÄãCÅÌ¿Õ¼äÔ½À´Ô½Ð¡£¬ËÙ¶ÈÒ²½µÏÂÁË£¬ÄÇÎÒÃǸÃÔõô°ìÄØ£¿
     ¶ÔÓÚ²ËÄñÀ´Ëµ£¬ÓÐÒ»µãÄã±ØÐë×¢Ò⣺µ±ÄãÏÂÔض«Î÷£¬ÓÐЩÍøÕ¾ÊÇĬÈÏCÅÌ£¬Õâʱ¿ÉÒÔÑ¡ÔñÏÂÔØÅÌʱ£¬×îºÃ·ÅÔÚÆäËûÅÌÀ²»¿ÉÒÔÑ¡ÔñҲû°ì·¨£¬CÅÌÀïµÄÎļþÒ²ÊDz¡¶¾Ï²»¶ ......

linux c socket ¿ª·¢Óë±àÒëʵÀý

ÕâƪÈÕÖ¾»¹ÊÇÏÈ´ÓÒ»¸öÄܹ»ÔËÐÐÆðÀ´µÄÀý×Ó³ö·¢£¬Ò»µ©ÄÜ˳ÀûµÄ¿´µ½³ÌÐòµÄ³É¹¦ÔËÐУ¬ÄÇô½ÓÏÂÀ´µÄʼþÎÒÏëÓ¦¸ÃÊÇÎÊΪʲôÁË£¿ËƺõÕâÑù¸ü¼ÓÈÝÒ×Àí½âºÍÕÆÎÕ¡£
¶ÔÓÚsocket³ÌÐòµÄ¸ÅÄîÕâÀï¾Í²»¶àдÁË£¬µ«ÎÒÏàÐÅ£¬Èç¹ûÄÜ¿´ÍêÕâÕûƪÎÄÕ£¬ÎÒÏàÐŲ»»áÔÙÓÐÕâÑùµÄÒÉÎʵġ£
ÏÂÃ潫±àдһ¸öc/s½á¹¹µÄ³ÌÐò£¬Ö÷Òª¹¦ÄÜÊÇclient½«Ïòserver·¢Ë ......

entry point to c/c++ or Fortran MEX file

http://www.mathworks.com/access/helpdesk/help/techdoc/apiref/mexfunction.html
mexFunction (C and Fortran) -
Entry point to C/C++ or Fortran MEX-file
C Syntax
#include "mex.h"
void mexFunction(int nlhs, mxArray *plhs[], int nrhs,
const mxArray *prhs[]);
Fortran
Syntax
subrouti ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ