一个用C语言开发的计数器1昌盛10KHZ的定时器滴答中断,希望对大家有用!-a C-language development of a prosperous 10kHz counter the timer tick interrupt, useful for all! 下载
|
C-ASM混合编程的毫秒级计时器 软件语言: 简体中文 软件类型: 国产软件 / 免费版 / 其他程序 运行环境: Win9x/NT/2000/XP/ 软件大小: 3KB -C - ASM mixed programming millisecond timer software languages : English software types : Domestic software / free version / other procedures runtime environment : CTP / software Size : 3KB 下载
|
ARM体系结构与编程 作者:杜春雷 译者:杜春雷 出版社:清华大学出版社 【内容介绍】 ARM处理器是一种16/32位的高性能、低成本、低功耗的嵌入式RISC微处理器,由ARM公司设计,然后授权给各半导体厂商生产,它目前已经成为应用最为广泛的嵌入式处理器。 本书分14章对ARM处理器的体系结构、指令系统和开发工具作了比较全面的介绍。其中包括ARM体系介绍、ARM程序设计模型、ARM汇编语言程序设计、ARM C/C++语言程序设计、ARM连接器的使用、ARM集成开发环境CodeWarriorIDE的介绍及高性能的调怨ぞ逜DW的使用。并在此基础之上介绍一些典型的基于ARM体系的嵌入式应用系统设计时的基本技术。通过阅读本书可以使读者掌握开发基于ARM的应用系统的各方面的知识。 第1章 ARM概述及其基本编程模型 第2章 ARM指令分类及其寻址方式 第3章 ARM指令集介绍 第4章 ARM汇编语言程序设计 第5章 ARM存储系统 第6章 ATPCS介绍 第7章 ARM程序和Thumb程序混合使用 第8章 C\ C++C以及汇编语言的混合编程 第9章 异常中断处理 第10章 ARM C/C++编译器 第11章 ARM连接器 第12章 嵌入式应用程序示例 第13章 使用CodeWarrior 第14章 ARM体系中的调试方法 - 下载
|
本程序是用纯C语言编的一个基于命令行的四则运算计算器。主要用于计算四则运算表达式的值,同时可以实现四种进制任意两种之间的转换。 主要功能:1.四则运算:能够解释并执行四则运算表达式。四则运算就是包含+、—、*、/、.(小数点)和数字的运算表达式,例如:3+2.9*(5-6/3) -4+(+8*6)等; 2.错误警告:能够对不符合语法的表达式给出相应的错误警告,本程序共给出了8大类警告 3.进制转换:能够做二进制、八进制、十进制、十六进制中任意两种进制之间的互相转换 4.帮助系统:提供完善的帮助系统 5.出错保护:有良好的出错保护系统,命令行输入错误,程序仍能正常运行。 -this program is pure C-language series based on a command line of four Operational calculator. Mainly used in the calculation of four computing the value of the expression, and can achieve four band arbitrary conversion between the two. The main functions : 1. Four computing : the ability to interpret and apply the four Operational expression. Four operations is included ,-,*,/,.( decimal point) and digital arithmetic expressions, for example : 2.9 * 3 (5-6/3) -4 (8 * 6); 2. Wrong warning : to be able to not grammar of expressions is the corresponding error warnings, the procedure is a total of eight major categories of warning 3. Decimal Conversions : can do binary, octal, decimal, hexadecimal arbitrary band between the two interchangeable 4. help system : to provide a comprehensive help 下载
|
在C 语言中,表达式是最重要的组成部分之一,几乎 所有的代码都由表达式构成。表达式的使用如此广泛,读 者也许会产生这样的疑问,像+ 、- 、3 、/ 、& & 这样简单 的运算也会出现问题吗? 程序员在编写表达式时,往往带 有一些不良的习惯。即使是编写很简单的表达式,这些不 良习惯也可能造成隐患,这个小小的隐患甚至可能引起整 个系统的崩溃。实际上,在程序调试过程中,表达式中存 在的大部分隐患皆来源于程序员的主观臆测,即认为表达 式应该是按自己认为的方式执行,但结果可能完全相反。 这是因为程序设计语言或编译器的某些内在机制并不如 我们所想的那样。所有的编译器都遵从这一假定:程序员 都是“神”,他们既了解编程语言的各种特性,也了解编译 器本身一些鲜为人知的处理原则。当然, 程序员不是 “神”。因此,程序员在编写程序的过程中需要小心地避免 编译器“设置”的各种陷阱,而问题是有些时候很难预测下 一步是否会踏上一个陷阱-in C language, the expression is the most important component of almost all the code constituted by expressions. The use of expressions such widespread, readers might create doubts, as, -, 3, /, 下载
|
本程序用C语言实现了集成神经网络解决广义异或问题。用神经网络集成方法做成表决网,可克服初始权值的影响,对神经网络分类器来说:假设有N个独立的子网,采用绝对多数投票法,再假设每个子网以1-p的概率给出正确结果,且网络之间的错误不相关,则表决系统发生错误的概率为 Perr = ( ) pk(1-p)N-k 当p<1/2时 Perr 随N增大而单调递减. 在工程化设计中,先设计并训练数目较多的子网,然后从中选取少量最佳子网形成表决系统,可以达到任意高的泛化能力。 -this program with C language integrated generalized neural network solutions vary or issues. Using neural network integration methods create networks division, will be able to overcome the initial weights of the neural network classifiers example : Suppose N separate subnets, using an absolute majority vote, Suppose each subnet to 1-p is the probability of correct results, and network between the error is not relevant, The voting system is wrong with a probability of Perr = () pk (1-p) N-k p 下载
|
本书第二版和第三版之间的变化非常大其中最值得注意的是C++已经通过了国际标 准化这不但为语言增加了新的特性比如异常处理运行时刻类型识别RTTI 名字空 间内置布尔数据类型新的强制转换方式而且还大量修改并扩展了现有的特性比如模 板template 支持面向对象object-oriented 和基于对象object-based 程序设计所需 要的类class 机制嵌套类型以及重载函数的解析机制也许更重要的是一个覆盖面非 常广阔的库现在成了标准C++的一部分其中包括以前称为STL 标准模板库的内容新 的string 类型一组顺序和关联容器类型比如vector list map 和set 以及在这些类型 上进行操作的一组可扩展的泛型算法generic algorithm 都是这个新标准库的特性本书 不但包括了许多新的资料而且还阐述了怎样在C++中进行程序设计的新的思考方法简而 言之实际上不但C++已经被重新创造本书第三版也是如此-second edition of the book and a third between the big changes in the most noteworthy of which is C has adopted international standards of this language not only to an increase of new features such as exception handling run-time type of RTTI name recognition built-in Boolean space The new data type casting methods but also extensive modification and expansion of existing properties such as template template support object-oriented object-oriented and object-based object-based procedures Design of a kind which we need mechanisms nested class types and overloading functions analytic mechanism may be more important is a coverage a very broad library has now become a standard part of C including formerly known as STL standard template librarys new content tring type sequence and a group l 下载
|
由于时间紧迫及事先准备不足,编译器最后定型时暴露出不少问题及不足之处,主要有以下一些方面: 不支持数组数据类型,这是文法分析器设计时的一个疏漏,由于时间关系,最后只得把扫描器中已做好的相关的数组部分删去。 对于float数据类型的支持,直到语义分析都是正常的,也能生成相应的汇编代码,但由于我们对8086/8088指令系统本身了解不足,这样的汇编代码将只能做到含义上完全忠实于源程序,但不能运行。 对于局部变量的支持,则于时间紧迫,所有的局部变量全被处理成静态变量。使递归函数不能得到正确的结果。 对于函数调用语句,不进行参数匹配检查,如果参数数量不对,也将能通过编译,但运行时将产生非法操作。 对&& !等逻辑操作在最后生成代码时处理比较粗燥,生成的代码在逻辑复杂时将不能保证运行正常。 接下来有一些,不能说是缺陷,但必须说明的问题: 对于main函数,没有参数表,通回类型也必须为void,但如果写上参数表及其他返回类型也能编译通过,生成代码时将简单地忽略,不影响最后的代码的运行。 对于while,for,if语句,其语句体不管是一句还是多句,必须都有{}围起来。这跟C语言中若是一句则可省略{}不同。 -Due to the time constraints and lack of preparation in advance, the compiler finalized when exposed numerous problems and shortcomings, mainly in the following aspects : no support for array data type, which is grammar analyzer design of an omission, because of the time, the final could only have scanners do phase customs array deleted. For float data types of support until semantic analysis is normal, and can generate the corresponding assembly code, but because of o 下载
|
本书以Keil 公司最新版本的C51 编译器为核心,阐述了在Windows 环境下采用单片 机高级语言C51 进行应用系统程序设计的基本原理和方法,详细介绍了Keil C51 的 Windows 集成开发环境Vision 51 和软件仿真器dScope51 的强大功能和具体使用方法。在 Windows 集成开发环境pVision 51 中,可以完成从源程序编写、编译、连接定位到目标文件 的仿真调试等的全部工作。dScope 51 是一种基于Windows 的多窗口软件仿真器,它可以在 完全没有8051 单片机硬件的情况下模拟调试各种应用程序,即使对单片机内部特殊集成功 能的编程,也可以找到对应的模拟窗口。 本书对最新版本C51 编译器新增加的控制命令作了全面介绍;给出了最新C51 运行库 函数及其应用范例;对Keil C51 的各种应用工具,如BL51 连接定位器、A51 宏汇编器、 LIB51 库管理程序以及OH51 符号转换程序等都作了详细介绍;还介绍了单片机实时多任务 操作系统RTX51 及其子集RTX51 TINY 的具体功能与应用方法。 本书强调先进性和实用性。全书各章列举了大量程序实例,并附赠一张配套光盘。因此 本书既适合广大从事单片机应用系统开发研制的工程技术人员的阅读,也可以作为高等工科 院校相应专业大学生或研究生的教学用书。-Keil book to the latest version of the C51 compiler at the core, described in the Windows environment using high-level language C51 microcontroller applications procedures for the basic design principles and methods introduced in detail Keil C51 integrated development environment for Windows 51 and Vision software simulator dScope51 the power and the specific use. Windows integrated development environment pVision 51, from source to be completed to prepare, compile, link positioning of the target file Simulation of the entire work. DScope 51 is a Windows-based multi-windows software emulation, it can no 8051 under the hardware simulation debugging various applications, even for special internal microcontroller integrated functional programming, can find the corresponding emulation window. 下载
|
东南大学 课程设计 lex部分 说 明 **本次实验在Visual C++6.0环境下开发** 主要有以下文件: 1 词法分析器 lex.cpp 2 头文件 lex.h 3 测试文件 lex.l.txt lex工具的使用方法 编译运行 lex.cpp/lex.h,这样就将lex.l.txt转换成Cpp语言程序yylex.cpp 然后使用VC++6.0将lexyy.cpp编译成可执行程序, 这样就识别出了lex.l.txt中的正规表达式 打印出的字幕代表了识别出相应正规表达式时的动作。-Southeast University curriculum design lex ** Note part of this experiment in Visual C 6.0 open environment ** fat mainly in the following documents : a lexical analyzer lex.cpp two documents lex.h three test documents for lex.l.txt lex with the use of compiler running lex.cpp / lex.h. This will be converted into tracing lex.l.txt Language Program yylex.cpp then use the VC 6. 0 to lexyy.cpp compiled executable. This lex.l.txt identified by the formal expression of subtitles printed out on behalf of the formal identification of the corresponding table TAT-time action. 下载
|