首页> 外文会议>ACM SIGPLAN workshop on partial evaluation and program manipulation 2011 >An Embedded Language for Programming Protocol Stacks in Embedded Systems
【24h】

An Embedded Language for Programming Protocol Stacks in Embedded Systems

机译:用于嵌入式系统中协议栈编程的嵌入式语言

获取原文
获取原文并翻译 | 示例

摘要

Protocol stack specifications are well-structured documents that follow a number of conventions and notations that have proven very useful for the design and dissemination of communication protocols. Protocol stack implementations on the other hand, are done in low-level languages, using error-prone programming techniques resulting in programs that are difficult to relate to the specifications, difficult to maintain, modify, extend and reuse. To overcome these problems we propose a domain-specific language that provides abstractions close to the notations used in protocol specifications. From descriptions in our language we generate C programs that can be integrated with other systems software. The language provides constructs to describe packet formats, including physical layout, constraints and dependencies. It also provides constructs for state machines and for layering protocols into stacks. Experiments show that the C programs we generate are comparable in performance and binary size to hand-crafted C programs.
机译:协议栈规范是具有良好结构的文档,遵循许多约定和符号,这些约定和符号对于通信协议的设计和分发非常有用。另一方面,协议栈的实现是通过使用易于出错的编程技术以低级语言完成的,从而导致程序难以与规范相关,难以维护,修改,扩展和重用。为了克服这些问题,我们提出了一种领域特定的语言,该语言提供的抽象接近协议规范中使用的符号。通过使用我们的语言进行的描述,我们生成可以与其他系统软件集成的C程序。该语言提供了描述数据包格式的构造,包括物理布局,约束和依赖性。它还提供了状态机以及将协议分层到堆栈中的构造。实验表明,我们生成的C程序在性能和二进制大小上与手工C程序相当。

著录项

相似文献

  • 外文文献
  • 中文文献
  • 专利
获取原文

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号