共查询到20条相似文献,搜索用时 125 毫秒
1.
2.
在数控加工中,G代码描述的零件加工过程不够直观.为了解决这个问题,提出采用有向几何编程语言GPL(geometric programming language)来辅助G代码进行编程,使得编程变得简单直观.设计了GPL语法规则,并依据GPL语法规则设计实现了GPL解释器,提出一种计算检测码的方法对GPL语法进行检查,创建关键字的属性值表以支持检测码的计算.该方法使GPL语法规则容易扩展,便于解释器的二次开发.采用位运算方法进行参数的冲突检测,增强语法分析器的可扩展性,提高分析速度和效率. 相似文献
3.
基于PCI型运动控制卡的Windows数控系统设计 总被引:7,自引:0,他引:7
采用GE-300-PCI运动控制卡开发了一种新型数控切割系统,具备加工中暂停、继续、沿原轨迹返回、调速和支持G代码等功能,论述了PC的开放式数控系统在Windows操作系统上的实现。 相似文献
4.
5.
为了提升数控系统的效率和功能,提出模块化的解释器结构模型.该模型将整个解释器分为词法分析模块,语法分析模块和解释执行模块3个模块.在词法分析模块中,提出利用EBNF(Extended Backus-Naur Form)对标准数控代码规则进行形式化描述的方法,并采用自顶向下的递归下降分析构建词法分析程序.通过将词法分析得到的数据存入设计好的加工信息存储结构,实现了数控指令的形式化表达.加工命令转化模块将加工数据转化成相应的数控指令送入系统底层模块.详细阐述了各模块的构建方法,并开发了一个简单的解释器原型系统,验证了所提方法的有效性,为高性能数控代码解释器的实现提供了技术支持. 相似文献
6.
7.
陈本源 《计算机与数字工程》2014,42(9):1745-1748
该数控代码解释器用于一个嵌入式数控系统中央控制单元,给出了解释器的结构和各功能模块的实现,在实际的加工测试中该解释器能够适应各种工作情况. 相似文献
8.
针对高性能数控系统中解释器面临的要求,通过深入分析现有数控系统中解释器及与之交互的任务控制器的主要功能及实现方法,指出其在高速高精加工时存在的不足,在此基础上设计并实现了一种高效的NC代码解释机制;然后,对现有数控系统进行了基于STEP-NC的改造,提出了面向网络化制造STEP-NC数控系统的基本框架,并重点介绍了基于XML的STEP-NC程序解释器的设计与实现. 相似文献
9.
10.
11.
12.
介绍了高精度紫外辐射计的系统结构和测量原理,在传统测量方案的基础上,提出了一种以运动卡控制卡和静电计为硬件核心,采用在Visual C++环境下进行编程实现对运动控制卡的控制,使用SCPI语言与静电计接口来实现数据采集的方案。分析了软件的主要功能并给出了实现的思路和代码。 相似文献
13.
一种有效的编译优化代码移动算法 总被引:1,自引:0,他引:1
代码移动方法是编译程序全局优化的一个关键技术,本文将介绍一种新的代码移动算法,用此算法就可实现公共子表达式的删除和循环不变运算的移动,而且此算法无需检测循环控制结构,只要通过数据流分析就可实现代码移动,因此这种方法十分有效。 相似文献
14.
15.
针对工业控制计算机IPC加通用运动控制器MC组成的开放式数控系统,为了解决数控系统如何根据NC代码实现加工控制的问题,提出了一种实用的整型数据包IDP的目标码格式和目标码编码方法,阐述了将NC程序编译成IDP序列的编译器软件设计。该编译器是一个独立的软件部件,重用性好。它产生的目标序列方便了MC的实时控制软件的实现,有利于MC进行高精度多轴的实时控制,解决了NC子程序的跳转与返回和不同MC的通用性的问题。 相似文献
16.
对于影响用户交互响应速度的瓶颈代码段,现有即时编译器存在无法准确选取和在程序启动阶段没有可用的本地码进行加速的问题,这影响了即时编译技术在用户交互响应方面的加速效果。为此,对即时编译器原有的代码选择策略和编译模式进行了改进。在代码选择策略方面,应用程序可以根据实际运行情况主动选择要编译的代码段,保证所有影响用户交互响应速度的瓶颈代码段都能被选取并被加速;在编译模式方面,本次编译得到的本地码可以保存并供程序下次运行时使用,保证在程序启动阶段也有本地码可用来加速。应用程序启动速度的实验表明,改进的即时编译器能够提升1倍的用户响应速度。 相似文献
17.
18.
Bertrand F. Augeraud M. 《IEEE transactions on pattern analysis and machine intelligence》1999,25(3):347-362
The problem of describing the concurrent behavior of objects in object oriented languages is addressed. The approach taken is to let methods be the behavior units whose synchronization is controlled separate from their specification. Our proposal is a domain-specific language called BDL for expressing constraints on this control and actually implementing its enforcement. We propose a model where each object includes a so-called “execution controller”, programmed in BDL. This separates cleanly the concepts of what the methods do, the object processes, from the circumstances in which they are allowed to do it, the control. The object controller ensures that scheduling constraints between the object's methods are met. Aggregate objects can be controlled in terms of their components. This language has a convenient formal base. Thus, using BDL expressions, behavioral properties of objects or groups of interesting objects can be verified. Our approach allows, for example, deadlock detection or verification of safety properties, while maintaining a reasonable code size for the running controller. A compiler from BDL has been implemented, automatically generating controller code in an Esterel program, i.e., in a reactive programming language. From this code, the Esterel compiler, in turn, generates an automaton on which verifications are done. Then this automaton is translated into a C code to be executed. This multistage process typifies the method for successful use of a domain-specific language. This also allows high level concurrent programming 相似文献
19.
FORALL结构是FORTRAN 95的一种语法,在编译器中高效地实现FORALL结构是一项富有挑战性的工作,局部性优化对其高效实现尤其重要。本文介绍作者在G95编译器中实现FOR ALL结构时用到的两种局部性优化方法--临时空间合并和嵌套循环排序。实验结果表明,局部性优化对提高FORALL结构的性能非常有效。对某类FORALL结构,与Intel的EFC 编译器相比,我们的实现方法能提高30%的性能。 相似文献
20.
A Vectorizing Compiler for Multimedia Extensions 总被引:6,自引:0,他引:6
In this paper, we present an implementation of a vectorizing C compiler for Intel's MMX (Multimedia Extension). This compiler would identify data parallel sections of the code using scalar and array dependence analysis. To enhance the scope for application of the subword semantics, our compiler performs several code transformations. These include strip mining, scalar expansion, grouping and reduction, and distribution. Thereafter inline assembly instructions corresponding to the data parallel sections are generated. We have used the Stanford University Intermediate Format (SUIF), a public domain compiler tool, for our implementation. We evaluated the performance of the code generated by our compiler for a number of benchmarks. Initial performance results reveal that our compiler generated code produces a reasonable performance improvement (speedup of 2 to 6.5) over the the code generated without the vectorizing transformations/inline assembly. In certain cases, the performance of the compiler generated code is within 85% of the hand-tuned code for MMX architecture. 相似文献