共查询到19条相似文献,搜索用时 171 毫秒
1.
代码生成工具的使用可以大幅度减少开发人员编写重复性代码的工作量,提高Web应用开发的质量和效率。在代码生成系统中,设计一种基于MVC设计模式的新型Web应用开发框架,将Web应用分为视图层、控制层和模型层,每层各司其职,代码结构清晰,在此基础上采用JET模板和Xpath相结合的代码生成方法生成重复性代码。实验证明,该系统可快速构建Web应用。 相似文献
2.
给出了一个基于Java的代码生成工具的设计与实现方案。该方案基于数据模型来生成代码,允许用户自定义代码模板,实现了数据模型驱动的开发模式。该代码生成工具具有良好的可扩展性和灵活性,用户可根据需要自定义数据模型、代码模板,从而不断丰富代码生成工具的基础数据。 相似文献
3.
4.
代码自动生成作为一种程序自动化技术,可有效解决现代大规模软件开发过程中遇到的重复编写代码问题,提高了软件开发的效率和质量。文中介绍了一种基于XML的代码生成技术,并以XML转换技术为基础,给出了XML的代码生成工具的结构设计,及其实现框架和关键步骤。以该工具在雷达建模仿真过程中的应用实例,验证了基于XML的代码生成工具可减少重复代码编写,降低因手工编写带来的编码错误,从而提高了代码的编写质量及效率,使大规模软件开发和维护更简便。 相似文献
5.
基于XML代码生成技术的应用研究 总被引:1,自引:0,他引:1
代码生成技术作为一种程序自动化技术具有代码生成模板维护和扩展简单、可支持多操作平台并且易于实现等特点,可提高软件开发的效率和质量。文中介绍了一种基于XML的代码生成器的实现框架和关键步骤,并给出了部分软件代码程序。 相似文献
6.
集成电路设计中,状态机的代码实现具有一定规律性.根据该规律通过某种方法自动生成状态机RTL代码,可以提高设计设计效率.此项方法首先由Matlab中的Stateflow工具输入状态转移图,利用基于Tcl/Tk的软件提取其中有用信息,再进行状态机RTL代码生成,完成转换过程.该软件的成功设计和应用证明了此方法的可行性和实用性. 相似文献
7.
特定领域建模(Domain-Specific Modeling ,DSM )提高了软件的抽象水平,DSM 用模型表示用户的需求,然后通过生成器,直接把模型中的信息提取出来并转换成代码,实现了代码的自动生成。研究了特定领域建模语言、生成器和领域框架,总结了M etaEdit+下实现DSM的一般过程及其使用的相关技术,并介绍了代码生成的具体过程。基于M etaEdit+,实现了电子万年历的元建模和领域建模,并通过提出的深度优先遍历的代码生成算法,实现了电子万年历代码的自动生成。 相似文献
8.
基于模型设计是国外流行的一种先进的嵌入式系统开发方式,该方式主要利用开发工具Simulink以及Matlab的RTW(Real-TimeWorkshop)工具箱的代码生成功能,采用IAR作为中间工具,将RTW生成的C语言代码转为为在单片机MSP430F2252中可以运行的HEX文件,最后通过Protues软件来验证代码的正确性。该方法无需设计者精通各种编程语言,只需了解设计规范与实现原理,极大地降低了嵌入式系统开发难度,缩短了开发周期,并且能够保证代码的高效性、可靠性。 相似文献
9.
面向VLIW结构的高性能代码生成技术 总被引:1,自引:1,他引:0
DSP处理器通过采用VLIW结构获得了高性能,同时也增加了编译器为其生成汇编代码的难度.代码生成器作为编译器的代码生成部件,是VLIW结构能够发挥性能的关键.由此提出并实现了一种基于可重定向编译框架的代码生成器.该代码生成器充分利用VLIW的体系结构特点,支持SIMD指令,支持谓词执行,能够生成高度指令级并行的汇编代码,显著提高应用程序的执行性能. 相似文献
10.
11.
12.
13.
Automatic code generation already plays a valuable role in embedded development. Engineers are turning to advanced software tools that generate code automatically, both during the prototyping stage of the project and when production code is required. At the prototyping stage, automatic code generation can greatly accelerate the development process, allowing many different algorithms to be tried in a shorter period. Furthermore, because there is no significant time penalty for trying alternative solutions, automatic code generation tools positively encourage innovation, eliminating the temptation to re-use previously developed code in compromised solutions. The specification that previously would have been handed to a software engineer for hand coding is now used as an 'executable specification'. In addition to forming the basis for code generation this specification can be used to develop test procedures, that can be applied both in simulation and on the real product. A further advantage of this approach is that algorithm developers can test their ideas without having to wait until the associated code is ready for downloading to a target processor. This not only benefits the algorithm designer, but also frees the software engineer from the routine coding of algorithms, allowing greater effort to be devoted to more challenging issues 相似文献
14.
Many software compilers for embedded processors produce machine code of insufficient quality. Since for most applications
software must meet tight code speed and size constraints, embedded software is still largely developed in assembly language.
In order to eliminate this bottleneck and to enable the use of high-level language compilers also for embedded software, new
code generation and optimization techniques are required. This paper describes a novel code generation technique for embedded
processors with irregular data path architectures, such as typically found in fixed-point DSPs. The proposed code generation
technique maps data flow graph representation of a program into highly efficient machine code for a target processor modeled
by instruction set behavior. High code quality is ensured by tight coupling of different code generation phases. In contrast
to earlier works, mainly based on heuristics, our approach is constraint-based. An initial set of constraints on code generation
are prescribed by the given processor model. Further constraints arise during code generation based on decisions concerning
code selection, register allocation, and scheduling. Whenever possible, decisions are postponed until sufficient information
about a good decision has been collected. The constraints are active in the "background" and guarantee local satisfiability
at any point of time during code generation. This mechanism permits to simultaneously cope with special-purpose registers
and instruction level parallelism. We describe the detailed integration of code generation phases. The implementation is based
on the constraint logic programming (CLP) language ECLiPSe. For a standard DSP, we show that the quality of generated code
comes close to hand-written assembly code. Since the input processor model can be edited by the user, also retargetability
of the code generation technique is achieved within a certain processor class.
This revised version was published online in July 2006 with corrections to the Cover Date. 相似文献
15.
16.
17.
Sood Arun K. Fahs Ali Amin Henein Naeim A. 《Industrial Electronics, IEEE Transactions on》1985,(4):301-307
The general fault analysis problem can be divided into two parts: fault detection and diagnosis (location). Fourier series, autocorrelation, and other techniques have been used for fault detection. However, these approaches cannot be utilized for locating the faults. In this paper a methodology is presented to locate faulty cylinder(s). The procedure involves the development of a mathematical model of the engine dynamics. This model takes into consideration the cylinder gas pressure, engine inertia, and load. The resultant torque is computed by using parameter estimation techniques. The parameter estimation technique employed can determine time-varying parameters without prior knowledge of the structure of the parameter. In the problem at hand, this is an important requirement. The resultant torque is the net of the cylinder gas torque and the frictional torque. The model and the estimation procedure have been verified by performing tests on a single-cylinder engine. A discriminant function has been defined to classify the performance of each cylinder. Our results indicate that the amplitude of the resultant torque can be used to identify the faulty cylinder(s). We have verified this approach by tests and studies on a six-cylinder engine. In our experiments we have studied cases involving one or two faulty cylinders. 相似文献
18.
本文以开发三相SPWM调制系统为例,详细阐述了基于Matlab/Simulink的DSP实验设计与实现.传统的DSP代码开发周期较长,效率不高.Matlab公司的Embedded Target for TI DSP可解决上述问题,用户通过使用该模块,不仅可以进行电路的系统级仿真,还可编译生成相应的C语言代码,进行算法的探索与设计思路的验证.通过Matlab先仿真后直接生成DSP代码进行实验的方式,使学生加深对DSP的认识,并能很快独立用DSP进行开发. 相似文献
19.
JIANG Ling-yun WANG Ru-chuan WANG Hai-yan.Department of Computer Science Technology Nanjing University of Posts Telecommunications Nanjing P.R. China .State Key Laboratory for Novel Software Technology Nanjing University Nanjing P.R. China 《中国邮电高校学报(英文版)》2006,13(2):39-42
1Introduction Withrapidincreasinginnetworktechnologyanddis tributedcomputing,gridhasemergedfromitsinitial scientificbackground[1]andmadefirstattemptstostart acommercialusagewithaccesstonongrid relatedpro fessionalsandend users[2-5].Significantworkhasbeen … 相似文献