如何在Keil4中把c转换成汇编语言?

2小时前 (07:23:36)阅读2回复0
wojiukan
wojiukan
  • 管理员
  • 注册排名1
  • 经验值2752370
  • 级别管理员
  • 主题550474
  • 回复0
楼主

如何在Keil4中把c转换成汇编语言?

  1. Open Keil and create a new 51 project, then create a main.c file and add it to the source code.
  2. Click on "New File" button again and create a new assembly language source file named test.asm and save it to the specified directory.
  3. In test.asm, input the following code:
  4. After writing the code in test.asm, you need to add it to the main.c source code. Right-click on the corresponding source program folder of the main.c source code and select "Add Files to Group..." software will show up with an "Add Files to Group..." dialog box.
  5. Keil's default source files are C, so we search for all the assembly language source files using "*.asm". Selecting the first file and clicking "Add" will show all the assembly language files in that directory.
  6. Add test.asm after clicking "Add" twice in main.c, and click "Add" again to complete adding the file.
  7. When compiling test_fun in the assembly source program, if RSEG is not added before the function, the compiler will output errors and warnings.

It's hard to use human language to write software because of the inherent ambiguity in natural languages. However, it's relatively easy to learn programming languages like Assembly Language compared to learning human language. Also, as more researches focus on Natural Language Processing (NLP), there are many ways to develop simple programs without human intervention using NLP.

0
回帖

如何在Keil4中把c转换成汇编语言? 期待您的回复!

取消
载入表情清单……
载入颜色清单……
插入网络图片

取消确定

图片上传中
编辑器信息
提示信息