68kcounter 中文文档教程

发布于 3年前 浏览 23 项目主页 更新于 3年前

Logo

68k Counter

分析 68000 程序集源以分析资源和大小数据。 对于每条指令,它都会告诉您。

  • CPU cycles
  • Bus read cycles
  • Bus write cycles
  • Size in words

Usage:

Web app

您可以在基于网络的版本 中试用该工具。

CLI

要分析源文件,请运行:

npx 68kcounter mysource.s

这将以以下格式输出以配置文件数据为前缀的每一行:

[cycles]([reads]/[writes]) [size ]

VS Code extension

作为 VS 代码扩展 提供实时注释和总计。

输出窗口截图

Limitations:

  • Because it analyses your pre-assembled source, it can't take into account optimisations made by your assembler.
  • Total timings for a whole file are pretty meaningless as it doesn't take into account branching etc, but it can be useful for smaller blocks.
  • While it adds profile information inside any macro definitions, it doesn't currently process macro invocations
  • Where timings are based on an 'n' multiplier from an immediate value, it will parse simple expressions but doesn't currently substitute constants defined elsewhere.

Logo

68k Counter

Analyses 68000 assembly source to profile resource and size data. For each instruction it will tell you.

  • CPU cycles
  • Bus read cycles
  • Bus write cycles
  • Size in words

Usage:

Web app

You can try out the tool in a web-based version.

CLI

To analyse a source file run:

npx 68kcounter mysource.s

This will output each line prefixed with profile data in the following format:

[cycles]([reads]/[writes]) [size]

VS Code extension

Available as VS Code extension to provide live annotations and totals.

Output window screenshot

Limitations:

  • Because it analyses your pre-assembled source, it can't take into account optimisations made by your assembler.
  • Total timings for a whole file are pretty meaningless as it doesn't take into account branching etc, but it can be useful for smaller blocks.
  • While it adds profile information inside any macro definitions, it doesn't currently process macro invocations
  • Where timings are based on an 'n' multiplier from an immediate value, it will parse simple expressions but doesn't currently substitute constants defined elsewhere.
    我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
    原文