`
lobin
  • 浏览: 115625 次
  • 性别: Icon_minigender_1
  • 来自: 上海
社区版块
存档分类
最新评论
Rss 文章列表
  x86系列   x86:Intel从16位微处理器8086开始的整个CPU芯片系列,系列中的每种型号都保持与以前的各种型号兼容,主要有8086,8088(前面两个是16位CPU),80186,80286(这两个是过渡产品), 80386,80486以及以后各种型号的Pentium芯片[奔腾,P2, P4,赛扬...](这些都是32位CPU)   x86-64:x86-64是x86指令集的超集,在x86处理器上可以运行的程序可以运行在x86-64上(这也是为啥现在买的一些64bits CPU可以直接运行Win XP的原因)。x86-64是AMD发明的,也叫AMD64,Intel克 ...
通信_网络编程_WINDOWS下网络编程_SOCKET编程_VC中WINSOCK2.H头文件SOCKET.doc   通信 网络编程 WINDOWS SOCKET 编程 VC WINSOCK2.H 头文件   Socket ,形象点可以把它理解为插槽,就像电源插座上面的插孔(不过电源插座上面的插孔有一孔的,还有两孔的,甚至还有三孔的,不知道还有没有四孔的,到目前为止我还没有看过有这么多孔的插座)。电器设备通过一条电源线,一端通过插头插入到能够输送电源的另一端的插座接入另一端,自己的一端也通过插头插入到自己的一个插孔上,将自己和能够输送电源的另一端建立一条物理连接。通过这样的一条物理连接 ...
相关函数   clean-up handlers: void pthread_cleanup_push(void (*routine)(void *), void *arg);   void pthread_cleanup_pop(int execute);   void pthread_cleanup_handler(void *arg) { printf("pthread_cleanup_handler called.\n"); }   pthread_cleanup_push(pthread_cleanup_handler, NULL); ...
>tree . /F Folder PATH listing for volume D Volume serial number is F075-351A └───com     └───jx             com_jx_Object.cpp             com_jx_Object.hpp             com_jx_Object.obj             libobj.dll             libobj.exp             libobj.lib             Object.class     ...
现在Cygwin早就不支持Windows XP,一台老笔记本上还是装的XP系统: Windows XP Professional 版本 2002 Service Pack 3。所以安装Cygwin是个麻烦事。这里找到一些在老Windows系统(Windows XP)下安装Cygwin的资料:   资料来自:http://www.crouchingtigerhiddenfruitbat.org/Cygwin/timemachine.html#cygwintimemachine   Cygwin版本:setup-2.774.exe   下载地址: http://ctm.crouch ...
  Lua C模块开发   iarray例子 例子工程文件列表: >tree . /F 卷 D 的文件夹 PATH 列表 卷序列号为 F075-351A D:\***\ALLOC     alloc.cpp     alloc.obj     iarray.dll     iarray.exp     iarray.lib     liballoc.cpp     liballoc.obj     Makefile   没有子文件夹   alloc.cpp #pragma comment(lib, "lua5.1.lib") ...
The symbolic, non-executable form of a method handle's invocation semantics. It consists of a series of names. The first N (N=arity) names are parameters, while any remaining names are temporary values. Each temporary specifies the application of a function to some arguments. The functions are method ...
#define NGX_CONF_NOARGS      0x00000001 #define NGX_CONF_TAKE1       0x00000002 #define NGX_CONF_TAKE2       0x00000004 #define NGX_CONF_TAKE3       0x00000008 #define NGX_CONF_TAKE4       0x00000010 #define NGX_CONF_TAKE5       0x00000020 #define NGX_CONF_TAKE6       0x00000040 #define NGX_CONF_TAKE ...
  typedef void bio_info_cb(struct bio_st *, int, const char *, int, long, long);   struct crypto_ex_data_st          {          STACK_OF(void) *sk;          int dummy; /* gcc is screwing up this data structure :-( */          };   typedef struct crypto_ex_data_st CRYPTO_EX_DATA; ...
list   user=> '(1 2 3 4 5 6) (1 2 3 4 5 6) user=> (list) () user=> (list 1 2 3 4 5 6) (1 2 3 4 5 6) user=> (list* 1 2 3 4 5 6 '(7 8 9)) (1 2 3 4 5 6 7 8 9)   user=> (list? '(1 2 3 4 5 6)) true   vector user=> [1 2 3 4 5 6] [1 2 3 4 5 6] user=> (vector) [] use ...
Heap: The heap is the other dynamic memory area, allocated/freed by malloc/free and their variants.  Note that while the default global new and delete might be implemented in terms of malloc and free by a particular compiler, the heap is not the same as free store and memory allocated in one area can ...
offsetof 这是一个宏定义:offsetof (type,member),它返回数据结构体或者联合体类型中成员的偏移量:表示相对数据结构偏移的字节数。参数type可以是一个结构体、联合体、a POD class、a standard-layout class,member表示type的成员。   #include <stdlib.h> #include <stddef.h>   #include <stdio.h> struct Entry { int key; int value; struct Entry *next; } ...
gcc, g++ 以及 cc   g++ Usage: g++ [options] file... Options:   -pass-exit-codes         Exit with highest error code from a phase   --help                   Display this information   --target-help            Display target specific command line options   --help={common|optimizers|params|targ ...
lambda         lambda 在计算机编程语言中,如Lisp,Python和Ruby, λ是一个算子,用于表示匿名函数或者闭包,后跟λ演算的用法。 在C#编程语言中,一个λ表达式是一个包含表达式和语句的匿名函数。 非λ语言是一种基于组合逻辑的函数式编程语言,一个简单化的λ演算并不包含λ所有的内容,   lambda term   一个有效的lambda表达式被称为lambda term。 规则: 一个变量x,那么它自己(x)就是一个有效的lambda term; 如果t是一个lambda term,并且x是一个变量,那么(λx.t)也是一个lamb ...
// test.cpp// // @author ada// @version 1.0  2015-01-10#include "stdafx.h"#include<stdio.h>#include<stdlib.h>#include<string.h>#include<openssl/rsa.h>#include<openssl/pem.h>#include<openssl/err.h>extern "C"{#include "openssl/applink.c" ...
/*  *  *  * @author ada  * @version 1.0  * @since 1.0  */ #include <log.h> #include "../LuaRuntime.hpp" #include "../Task.hpp" #include "../../LinkedLibrary.h"   LuaRuntime *runtime = NULL;   int lua_create_task(struct lua_State *L) { LuaContext & ...
/*  * Thread that support cross platform and support global and local start routine, and support   * Windows api and C Run-Time Library(even extension) on windows.   * <p>  * To implements a simple thread, only to overrides the run method.  *  * @author ada  * @version 1.0  * @since 1. ...
/*  * Thread that support cross platform and support global and local start routine, and support   * Windows api and C Run-Time Library(even extension) on windows.   * <p>  * To implements a simple thread, only to overrides the run method.  *  * @author ada  * @version 1.0  * @since 1. ...
#ifndef _MT #error "Compiler linking options /MT not specific" #endif   #include <stdio.h> #include <windows.h> #include <process.h>   void start_address(void *arg) { printf("_beginthread start_address\n"); }   unsigned __stdcall start_address_ex(vo ...
/*  *  *  * @author ada  * @version 1.0  * @since 1.0  */ #include <stdio.h> #include <string.h> #include <log.h> #include "../gs/LuaContext.hpp" #include "../gs/LuaExecutor.hpp" #include "../gs/LuaScriptExecutor.hpp" /* #include <lua ...
DEBUG=../Debug PATH_VS=D:\usr\bin\Microsoft Visual Studio\VC98 CL="$(PATH_VS)\Bin\cl.exe" LINK="$(PATH_VS)\Bin\link.exe"   INCLUDE="D:\usr\bin\Microsoft Visual Studio\VC98\Include" LIB="D:\usr\bin\Microsoft Visual Studio\VC98\Lib"   INCLUDE_LIB_LOG=D:\ ...
pthread w32版本线程终止(pthread_exit)后的返回值的问题。 通过pthread_exit终止线程的执行,pthread_join等待线程终止返回的值在pthread w32版本和标准pthread不一样。   #include <stdio.h> #include <stdlib.h> #include <unistd.h> #include <pthread.h> int *exitStatus = NULL; int count = 0; void* run_up(void *arg ...
#include <pthread.h> #include "PosixMutexLock.hpp"   #ifndef POSIX_SYNC #define POSIX_SYNC class PosixSync  { private:   protected:   PosixMutexLock *lock;   pthread_cond_t block;   public:   PosixSync();   void wait();   void notify();   }; #endif   ====== ...
    void main() { }       $ gcc test.c -o test test.c: In function `main': test.c:4: warning: return type of 'main' is not `int'       $ ./test.exe greet.  上面显示告警:warning: return type of 'main' is not `int', 但还是编译链接生成的可执行文件。如果想直接提示错误,可以指定-pedantic诊断选项,它可以输出标准要求的所有的诊断信息, 指定-peda ...
#include "Lock.hpp" #include "EventLock.hpp"   #ifndef __SYNC #define __SYNC class Sync  { private:   protected:   EventLock *lock;   EventLock *block;   public:   Sync();   void wait();   void notify();   }; #endif   ==================================== ...
#ifndef __LOCK #define __LOCK   class Lock { public:   virtual void lock() = 0;   virtual void unlock() = 0; };   #endif   ===========================================================   #include <windows.h> #include "Lock.hpp"   #ifndef _EVENT_LOCK #define _EVENT_L ...
#ifndef __LOCK #define __LOCK   class Lock { public:   virtual void lock() = 0;   virtual void unlock() = 0; };   #endif   =======================================   #include <windows.h> #include "Lock.hpp"   #ifndef _MUTEX_LOCK #define _MUTEX_LOCK   class MutexL ...
Global site tag (gtag.js) - Google Analytics