zoukankan      html  css  js  c++  java
  • dyld环境变量

    苹果APP启动,分为两个过程:系统dylib动态链接库 app的main函数启动过程。
    main函数过程直接对iOS开发者。这里备忘的dylib过程:
    一、dyld加载到虚拟内存
        1. load dylibs image 
        2. Rebase image
        3. Bind image
        4. Objc setup
        5. initializers
    二、runtime接管imageLoader加载到内存的镜像
        1. imageLoader加载进行到内存
        2. runtime 解析和处理
        3. 按照继承关系与category关系,层级调用+load方法
        
    调试方式:
       【iOS开发】dyld环境变量(备忘)
     
    变量说明
    DYLD_PRINT_STATISTICS 1 Print launch performance statistics
    打印启动时间等参数
    DYLD_PRINT_SEGMENTS 1 Log segment mapping
    打印segment映射日志
    DYLD_PRINT_INITIALIZERS 1 Log image initialization calls
    打印镜像初始化调用日志
    DYLD_PRINT_BINDINGS 1 Log symbol bindings
    打印符号绑定日志
    DYLD_PRINT_APIS 1 Log dyld API calls (for example, dlopen)
    打印 dyld API 调用日志
    DYLD_PRINT_ENV 1 Print launch-time environment variables
    DYLD_PRINT_OPTS 1 Print launch-time command line arguments
    DYLD_PRINT_LIBRARIES_POST_LAUNCH 1 Log library loads , but only after main has run
    DYLD_PRINT_LIBRARIES 1 Log library loads
    DYLD_IMAGE_SUFFIX 1 Search for libraries with this suffix first

  • 相关阅读:
    子序列自动机
    poj 暴力水题
    小白贪心题
    组合数+费马大/小定理
    随机数法
    vector的二维用法+前缀和
    巨思维题
    思维水题
    Codeforces Round #323 (Div. 2) D.Once Again... (nlogn LIS)
    Codeforces Round #325 (Div. 2) D. Phillip and Trains (BFS)
  • 原文地址:https://www.cnblogs.com/lxlx1798/p/9283956.html
Copyright © 2011-2022 走看看