Tekkaman

导航

 

2013年3月6日

摘要: 【OC之class与meta-class】 核心规则:类的实例对象的 isa 指向该类;该类的 isa 指向该类的 metaclass。 通俗说法:成员方法记录在class method-list中,类方法记录在meta-class中。即instance-object的信息在class-object中,而class-object的信息在meta-class中。 图示: class 是 instance object 的类类型。当我们向实例对象发送消息(实例方法)时,我们在该实例对象的 class 结构的 methodlists 中去查找响应的函数,如果没找到匹配的响应函数则在该 c... 阅读全文
posted @ 2013-03-06 19:04 Tekkaman 阅读(5410) 评论(0) 推荐(0)
 
摘要: 【Mac之debuging symbol】 1、Overview Adebugging symbolis a symbol generated by the compiler that allows the debugger to map from addresses in machine code to locations in source code. The standard compilers generate debugging symbols using either the Stabs format or the DWARF format (supported in Xcode. 阅读全文
posted @ 2013-03-06 12:28 Tekkaman 阅读(266) 评论(0) 推荐(0)
 
摘要: 【Executing Mach-O Files】 1、Overview The process of loading and linking a program in OS X mainly involves two entities: the OS X kernel and the dynamic linker. When you execute a program, the kernel creates a process for the program, and loads the program and the dynamic linker shared library, usual. 阅读全文
posted @ 2013-03-06 10:25 Tekkaman 阅读(199) 评论(0) 推荐(0)
 
摘要: 【Mac之Two-Level Namespace】 阅读全文
posted @ 2013-03-06 10:15 Tekkaman 阅读(263) 评论(0) 推荐(0)