【24h】

SysObjC

机译:sysobjc.

获取原文

摘要

Object-oriented operating systems prefer to consider every data structure as an object. However, data structures predefined by the hardware's manufacturer do not fit into this scheme. First of all, traditional object-oriented languages do not support objects with user-defined representation, which would be needed to these data structures as objects. Secondly, classic object-oriented languages have an overhead unacceptable for operating systems. To overcome both problems we introduce predicate classes into C as an extension of the standard structures. Inheritance is based on overlapping reserved fields without extending the object in size, which enables polymorphism by value, a very important feature in system programming. Dispatcher routines of methods add no significant overhead compared to standard C.
机译:面向对象的操作系统更愿意将每个数据结构视为对象。但是,硬件制造商预定义的数据结构不适合该方案。首先,传统的面向对象语言不支持具有用户定义表示的对象,这些数据结构是对象所需的。其次,经典面向对象的语言具有对操作系统不可接受的开销。为了克服这两个问题,我们将谓词课程介绍为C作为标准结构的延伸。继承基于重叠的保留字段,而无需将对象扩展到大小,这使得通过价值是多态,系统编程中的一个非常重要的功能。与标准C相比,方法的调度程序程序不显着开销。

著录项

获取原文

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号