c++ 内存管理算法,适合于中高级程序员,从可执行文件格式到linux/windows内存管理方式,涉及内存管理的所有方面-c memory management algorithm, which is suitable for middle - and high-level programmers, from the executable file format to linux / windows memory management, memory management involved in all aspects 下载
|
WIN98SE硬盘主引导记录代码反汇编分析硬盘引导记录MBR(Master Boot Record)是指硬盘之0面0道1扇区之内容,PC及其兼容机之ROM BIOS约定在上电及POST自检成功后,将其从硬盘读出,放置在内存0:7C00处,然后转去该地址执行。该段代码负责从代码尾部之4个分区表项中找出可以引导的项,读出其引导记录引导之。-WIN98SE hard disks master boot record-code compilation, analysis drive boot record MBR (Master Boot Record) is the hard surface 0 of 0 1 Sector content, and PC BIOS ROM BIOS Zhi agreed on power and self-censorship POST after the success of its read from the hard disk placed in memory 0 : 7C00, then transferred to the implementation of the address. The code of the code from the tail for the four districts item questionnaire to identify the guide, read out its guide guide it, we record. 下载
|
这个时钟程序是我在1993年编的一个小程序,现在贴出来给大家做参考,它执行后驻留内存,到整点时会报时,你可以用 Ctrl-Alt-U 把它从内存中下掉,可以用 Ctrl-Alt-C 变换颜色,用 Ctrl-Alt-O 把报时声音关掉(如果感到讨厌的话),在驻留内存时,用了直接改内存控制块的方法,所以用 MEM 或 MI 无法在内存中看到它,键盘控制用了直接截取 INT 9 的方法。 这个程序虽然很小,编译后才1K多一点点字节,但是麻雀虽小,五脏俱全,在这个程序中,你可以参考到以下编程方法:如何驻留内存;如何截取中断向量;如何在硬件层次上应答键盘;如何截取组合键。 要编译、连接成*.com文件-this is my clock procedures in 1993 a series of small programs, is now posted out to you for reference. following the implementation of its presence memory, the whole point of the talks will be, you can use Ctrl-Alt-U from its memory under the swap. can use Ctrl-Alt-C transform color, using Ctrl-Alt-O put timekeeping voice switch off (if the annoyance), in the presence of memory, using a direct change memory control block in the way that they use MEM or MI in the memory not see it, keyboard control using a direct interception of the INT 9. This procedure Despite its small size, after compiling a little more than 1K byte, but Sparrow small, perfectly formed, in the process, you can refer to the following program : how the presence of memory; how interception interrupt vector; in response le 下载
|
EEPROM是一种可以进行电擦写,掉电后数据不丢失的存储器。它具有功耗 低、容量大、烧写与擦除速度快等优点,并且内部嵌入算法完成对芯片的操作,简化了软件的工作量,因而在数字信号处理系统中得到了广泛的应用。在DSP系统中通常在上电或复位时从外部加载并执行用户的程序代码,这个过程叫做自举加载。现要将程序空间的代码烧写入扩展的外部EEPROM中,以实现自举加载功能。 -EEPROM can be an electric erasable, power-fail without loss of data after the memory. It has low power consumption, large capacity, and the erasure of burning speed advantages, and the internal algorithm embedded chip to complete the operation, simplify the software workload, which in digital signal processing system, which is widely used. DSP system -- usually in the reduction or loaded from external users and the implementation of the code, This process is called bootstrap loading. Is the space should procedure code burned into the expansion of the external EEPROM, to achieve self-loading function held. 下载
|
AppFace 支持三种皮肤加载方式,从磁盘文件加载,从资源加载,从内存加载。下面我就说说如何从资源加载URF皮肤文件: 首先,要确保你下载了AppFace for VC 开发包,我们要用到其中的三个文件: "appface.h", "appface.dll" ,"gtclassic.urf" 。 接着,创建一个 VC 可执行文件工程, MDI/SDI/DIALOG/WIN32 类型的都可以,我以创建一个DIALOG 工程 ResSkin 进行说明 。将"appface.h" 拷贝到该工程目录下,将"Appface.dll"拷贝到该工程的输出目录下,例如:"debug\",将"gtclassic.urf"拷贝到资源所在目录下 。在VC 的项目管理器中进入资源管理项,在右键菜单中选择"Import",将"gtclassic.urf"添加进工程,资源类型设定为: "MYRESTYPE",资源ID设定为"IDR_MY_URF"。注意:资源ID 前面一定要加双引号 -AppFace supports three skin loading from the disk loading, loading resources from the memory load. Now, I would talk about how to load resources from the URF skin document : first, to ensure that you downloaded AppFace for VC development kits, we have to use the three documents : "appface.h", "appface.dll", "gtclassic.urf." Next, create an executable file VC, MDI/SDI/DIALOG/WIN32 types of can, I would like to create a DIALOG project ResSkin explanation. "Appface.h" copy to the project directory, "Appface.dll" copied to the output of the project directory, for example : "debug \", "gtclassic.urf" copy of the directory containing the resources. VC in the project manager to enter the resource management, and in the right me 下载
|
多线程网络传输代码,从网络棋牌游戏中整理出这个献给大家:) 开发环境:Delphi7.0+WinXP,没用其他控件(除了Delphi自带的Indy) 使用协议:TCP/IP 客户端一次发送65000字节的包,服务端负责组装并处理数据粘连。 使用ReadBuffer(),Send()函数来接收发送Buffer内字节,这样作的目的是使程序具有更好的灵活性。你可以自定义Buffer内那些字节的含义,例如是字符串、图像、声音、命令等等。 文件的多线程读写采用windows内存映像技术。 关键的服务器处理函数IdTCPServer1Execute(AThread: TIdPeerThread)是非线程安全的。如果使用临界区,那么多线程将在这里串行执行,严重降低多线程效率。对此,我采用一个简单的办法,具体可以看程序。 - 下载
|
1、 用高级语言编写和调试一个简单的文件系统。模拟文件管理的工作过程。从而对各种文件操作命令的实质内容和执行过程有比较深入的了解。 2、 要求设计一个n个用户的文件系统。每次用户可保存m个件,用户在一次运行中只能打开一个文件。对文件必须设置保护措施,且至少有Creat,Delete,Close,Write等命令。 -1, with high-level language debugging and prepared a simple file system. Simulation document management process. Thus the various documents commands to the substance and implementation of a more in-depth understanding. 2, designed a n users file system. Each time a user kept m pieces in a user operation can open a file. The document must install protective measures, but at least Creat, Delete, Close, etc. Write orders. 下载
|
在盒子里得到了这么多朋友无私的帮助,真的表示感谢!看到很多朋友在寻求多线程网络传输代码,为此,从我开发的网络棋牌游戏中整理出这个献给大家:) 开发环境:Delphi7.0+WinXP,没用其他控件(除了Delphi自带的Indy) 使用协议:TCP/IP 客户端一次发送65000字节的包,服务端负责组装并处理数据粘连。 使用ReadBuffer(),Send()函数来接收发送Buffer内字节,这样作的目的是使程序具有更好的灵活性。你可以自定义Buffer内那些字节的含义,例如是字符串、图像、声音、命令等等。 文件的多线程读写采用windows内存映像技术。 关键的服务器处理函数IdTCPServer1Execute(AThread: TIdPeerThread)是非线程安全的。如果使用临界区,那么多线程将在这里串行执行,严重降低多线程效率。对此,我采用一个简单的办法,具体可以看程序。-be in the box so many friends selfless help and really grateful! Many friends in the search for multi-threaded network transmission code, for from my development of the network and dominoes game sorted out the dedicated people :) development environment : Delphi7.0 WinXP, useless other controls (except for the Delphi Indy own) use agreement : TCP / IP client to send a 65,000-byte packets, the server is responsible for assembling and processing data adhesion. Use ReadBuffer (), Send () function to receive this Buffer byte, for the purpose of this is to make procedures better flexibility. You can define Buffer byte within the meaning of those, such as strings, images, sounds, etc. order. The documents used to read and write multi-threaded windows memory mapping technology. Key server functio 下载
|
一、课设目的及内容 课设目的: 1. 在掌握部件单元电路实验的基础上,进一步将其组成系统构造一台基本模型计算机。 2. 为其定义五条机器指令,并编写相应的微程序,具体上机调试掌握整机概念。 课设内容: 将机器指令对应的微代码正确地写入控存中;装载机器指令并进行检查;运行程序,停机后检查数据存贮单元中的结果与理论值是否一致。 通过对计算机的组织与结构的分析,综合运用所学计算机原理知识,设计并实现较为完整的计算机,即模型机。它可以完成一般计算机的最基础功能,具备16条基本指令,以及4种寻址方式等。并且,计算机数据通路的控制将由微程序控制器来完成,CPU从内存中取出一条机器指令到指令执行结束的一个指令周期全部由微指令组成的序列来完成,即一条机器指令对应一个微程序。设计过程包括四个部分:㈠模型机硬件组成分析;㈡指令系统设计;㈢微程序设计;㈣上机实现,示范程序。 -a class, purpose and content based courses located purposes : 1. With parts of the circuit experiment modules, based on its component systems constructed a basic model computer. 2. Its definition of five machines instructions, and to prepare the corresponding micro-program, the specific machine debugging unit grasp the concept. Course located : machinery orders corresponding to the micro-code correctly charged into the deposit; Loading machinery orders and checks; operating procedures, stands checks data storage modules, the results and the theoretical values are consistent. Through the computer the organization and structure analysis, by using their knowledge of computer science, design and implement a more comprehensive computer model of that plane. It can finish usually the most basic c 下载
|
题 目: 模拟页式存储管理的分配与回收 初始条件: 1. 随机确定内存页面数,页面大小,进程的个数及每个进程的页数。 要求完成的主要任务: (包括课程设计工作量及其技术要求,以及说明书撰写等具体要求) 1.要求能显示内存的使用情况(被进程占用的页面,空闲的页面)。 2.设计报告内容应说明: ⑴课程设计目的与功能; ⑵需求分析,数据结构或模块说明(功能与框图); (3)运行结果与运行情况分析; (4)自我评价与总结: 1你认为你完成的设计哪些地方做得比较好或比较出色; 2什么地方做得不太好,以后如何改正; 3从本设计得到的收获(在编写,调试,执行过程中的经验和教训); 4完成本题是否有其他的其他方法(如果有,简要说明该方法); 5对实验题的评价和改进意见,请你推荐设计题目。 -topic : Analog page memory allocation and management of the recovery initial conditions : 1. Random memory identified several pages, page size, number of processes and each process page. Asked the main tasks : (including curriculum design and technical requirements of the workload, written brochures and specific requirements) 1. Memory requirements in the use of the (occupied by the process of pages, and the leisure pages). 2. Design contents of the report should indicate : 1 courses designed and functional; 2 demand analysis data structure or modules (functions and diagram); (3) The operating results of operations and analysis; (4) self-evaluation and conclusion : Do you think you have a completed design which is not done better or more outstanding; 2 What is not done too good, beyond how 下载
|