TN262分享 文档 参考 学.pdfVIP

  • 3
  • 0
  • 约4.3万字
  • 约 17页
  • 2020-10-30 发布于广东
  • 举报
TM Technical Note TN 262 Using the MemoryBanker in S12(X) projects The CodeWarrior™ HC12 compiler and linker support automatic bank distribution (also called MemoryBanker in this document) for code, data and constant sections. When this optimization is activated, the linker tries to distribute the objects (function, variables, constants) across the different memory areas in the most optimal way. For functions, the linker analyzes the application call tree to determine optimal distribution across the different banks. For example, suppose this is your application call tree: Bank_F0: 0xF08000.. 0xF0BFFF Bank_F1: 0xF18000.. 0xF1BFFF Bank_F2: 0xF28000.. 0xF2BFFF F1 F2 F6 F7 F4 F9 F8 F3 F5 Fa All functions are called using FAR calling convention (instruction CALL). After analyzing the application call tree, the linker distributes the function, as shown in the next diagram, between the different banks because it is more efficient. Bank_F0: 0xF08000.. 0xF0BFFF Bank_F1: 0xF18000.. 0xF1BFFF Bank_F2: 0xF28000.. 0xF2BFFF F1 F2 F6 F7 F8 F9 F4 F3 F5 Fa All functions in red can be called usi

文档评论(0)

1亿VIP精品文档

相关文档