首页 | 本学科首页   官方微博 | 高级检索  
相似文献
 共查询到20条相似文献,搜索用时 109 毫秒
1.
汇编语言与C语言是计算机编程语言中两种不同类型的语言,这两种编程语言可以混合编程使用,而且通过汇编语言与C语言的混合程序,还可以进一步提高程序的安全稳定性。本文首先简单了解了混合程序设计技术的设计技术方法,然后从C语言调用汇编语言、汇编语言调用C语言、C语言程序嵌入汇编语言这三个方面入手展开分析,最终简单概述了混合程序设计技术需要注意的关键性问题。  相似文献   

2.
讨论汇编语言与C语言的混合程序设计技术。在大规模的程序设计中,汇编语言程序与高级语言程序相结合,充分发挥各自的优点,实现两种语言之间的混合编程,是解决实际问题的有效方法。在实际的程序设计中,C语言主程序可以调用汇编语言子程序,汇编语言主程序可以调用C语言子程序,也可以在C语言程序中嵌入汇编语言语句。在汇编语言与C语言的混合编程中,参数的传递、模块的连接以及调用关系的确定是值得注意的关键问题。  相似文献   

3.
汇编语言与C语言的混合程序设计技术   总被引:4,自引:2,他引:4  
讨论汇编语言与C语言的混合程序设计技术。在大规模的程序设计中,汇编语言程序与高级语言程序相结合,充分发挥各自的优点,实现两种语言之间的混合编程,是解决实际问题的有效方法。在实际的程序设计中,C语言主程序可以调用汇编语言子程序,汇编语言主程序可以调用C语言子程序,也可以在C语言程序中嵌入汇编语言语句。在汇编语言与C语言的混合编程中,参数的传递、模块的连接以及调用关系的确定是值得注意的关键问题。  相似文献   

4.
姜璐  杨晓东  郭大勇 《测控技术》2002,21(Z1):129-131
介绍了8051系列单片机汇编语言和C语言的特点,以及在开发过程中C语言和汇编语言混合编程的具体使用方法.  相似文献   

5.
单片机C51与汇编语言的混合调用   总被引:2,自引:1,他引:1  
对于单片机程序的编写,汇编语言具有速度快的优势,C51则具有高级语言的优点。文中介绍了C51函数的内部转换规则和参数传递规则,通过实例详细给出了实现C51与汇编语言混合调用的方法,包括C51内嵌汇编语言、C51调用汇编语言以及汇编语言调用C51。  相似文献   

6.
介绍了Turbo C与汇编语言的接口技术,通过实例来说明Turbo C调用汇编子程序和Turbo C行间嵌入汇编语句的接口方法。嵌入式汇编提供了一种简单而又明快的方法。使用这种方法可以直接将汇编语言代码放入C语言程序中,汇编语言代码的高速性和深层控制能力可以大大改善程序的性能,同时也避免了C语言与汇编语言的接口所固有的复杂性。  相似文献   

7.
''''C54x DSP混合编程及中断的C语言实现   总被引:1,自引:0,他引:1  
为了充分发挥C语言和汇编语言各自的优势,在对TMS320C54x DSP进行软件开发时,可用两种语言混合编程.本文介绍了基于TMS320C54x DSP的C语言和汇编语言混合编程的程序设计方法,对用C语言实现DSP的中断功能进行了详细说明.最后以多尺度三次B样条小波分解算法为例说明TMS320C54x DSP混合编程的方法及步骤,并给出了C语言及汇编语言的源程序代码.  相似文献   

8.
柴孝 《信息与电脑》2011,(11):181-182
一般在较大的程序设计当中,如果把汇编语言与高级语言程序结合起来使用,把两种语言的优点都发挥出来,充分利用两种的优势,进行混合编程,则可以很多的难以解决的难题。在程序设计的实践当中,C语言和汇编语言可以相互调用,C语言可以调用汇编语言,汇编语言可以调用C语言,也可以把其中一种语言程序嵌入到另一种程序语言当中。本文就是探讨把C语言与汇编语言两种语言进行混合编程,实现两者的最佳组合,从而解决一些实践难题。  相似文献   

9.
在C语言同汇编语言的混合编程中,比较常用的是C语言调用汇编子过程。但有时为了更方便地完成某些工作,也需要从汇编语言中调用C语言,如在汇编语言中,对于不同类型数值间的混合运算远不如C语言处理得简单。因此就需要从汇编语言中调用C函数,以使程序简化。本文仅就汇编语言调用C函数用实例加以说明,所附例程均已在IBM386上用Borland C++3.1调试通过。  相似文献   

10.
C语言和汇编语言是应用在计算机程序设计中,两类具有不同特征的编程语言.在实际的软件开发中,C语言固然有汇编语言所不具备的优越性能,但是当具有对硬件直接的操作或提高软件稳定性等需求时,往往采用这两类语言的混合编程的方式.基于对汇编语言与C语言设计方法的介绍,阐述了3种汇编语言与C语言混合编程的方式,并对这两种编程语言混合编程所存在的关键性问题进行了分析.  相似文献   

11.
12.
给出了一种带类型注解的汇编器 TAAS的设计与实现 .TAAS分析带有类型注解的汇编代码 ,把类型注解映射进目标文件和可执行文件中 ,产生带有类型注解的二进制代码 ,同时不影响代码的执行语义 .TAAS分析 AT&T语法的汇编程序 ,产生 EL F格式的 x86机器代码 ,并且与 GNU as汇编器完全兼容  相似文献   

13.
邹耀  刘佩林 《计算机工程》2009,35(1):242-244
针对传统固定指令集处理器的汇编器开发周期长、无法及时适应可配置处理器指令集需求变化的问题,提出一种基于用户描述的可配置汇编器的设计和实现方法,高度抽象汇编器中依赖指令集的部分,通过对指令集高层次描述,快速将指令集的变化映射到汇编器源代码上。实验结果表明,该方法可降低汇编器50%左右的开发工作。  相似文献   

14.
The Mystro Assembler Construction System (MACS) is a tool kit for assembler writers, based upon a parser-generator for ambiguous attribute grammars, automatic text manipulation, and a skeletal assembler. Attention has been paid in MACS to aiding the assembler writer in employing the software methodology of iterative enhancement and in avoiding the more tedious aspects of assembler construction.  相似文献   

15.
本文给出一种快速构造汇编器的方法.这种方法的特点是:借助lex和yacc分别生成汇编器的词法和语法分析器;指令在汇编器中以一种内部表示的形式存在;指令的编码信息存放在数据表格中,编码一条指令时使用一个通用的过程查询这些表格以决定指令的编码格式,然后调用相应的编码函数产生指令的机器代码.通过这种方法构造的汇编器是易修改的.本文最后叙述这一方法在实现一款VLIW DSP汇编器时的应用.  相似文献   

16.
A device called a pushdown assembler has been recently introduced and has been shown capable of defining exactly the syntax directed translations (SDT's). The output operation of the pushdown assembler can be extended in a natural way to obtain a more powerful device called a type B pushdown assembler (or B-machine). A B-machine can define SDT's more simply and directly than the original pushdown assembler. B-machines can also define many interesting translations which are not SDT's. In this paper the B-machine is defined and compared with the original pushdown assembler. The properties of B-machine translations are investigated and it is shown that, as with SDT's, there exists a natural infinite hierarchy of B-machine translations.  相似文献   

17.
18.
Production assemblers are often thought of as being useful only for generating machine code from a symbolic assembly language delivered with the system. Most production assemblers that have a macro capability can be used to create an assembler for an arbitrary target machine through the use of the technique discussed in this short communication. This approach has the advantages of quick construction, easy modification and a resulting assembler for the target machine that is nearly as powerful as the original production assembler.  相似文献   

19.
An assembler which provides facilities for programming in assembly language for the Intel 8080A micro-computer is described. This assembler is a single pass self-assembler and it requires a storage of 2K bytes. The assembler has been designed to be operated from a keyboard to develop programs in assembly language. It allows subroutine calls and nesting of subroutines to any depth. It flashes syntax errors, if any, while an instruction is being keyed in. The most important feature of the assembler is that it does not require costly peripherals such as floppy discs, cassette tapes, etc. It operates through a keyboard with letters (A-Z), Arabic numerals (0–9) and some special characters to accommodate mnemonics used in label, opcode and operand fields of programs in the assembly language. A display facility will be greatly helpful. In this paper, design and implementation details of assembler are presented. The authors have the view that assemblers for other micro-computers can be designed and implemented on similar lines. Though implementation may slightly differ from one micro-computer to another, the design details will mostly remain the same.  相似文献   

20.
设为首页 | 免责声明 | 关于勤云 | 加入收藏

Copyright©北京勤云科技发展有限公司  京ICP备09084417号