What is the function of main.asm for C based projects?

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

What is the function of main.asm for C based projects?

2,913 次查看
FC
Contributor III
Can some clarify the use of main.asm for projects using C and assembly? Should this file be left alone and only modify main.c as the application is developed?

Thanks
标签 (1)
0 项奖励
1 回复

638 次查看
CrasyCat
Specialist III

Hello

Not sure which processor you are targeting (HC08, HC12, ...)?

Anyway after you have created a project using the wizard, the IDE will generate a template for the project.
The file main.asm is just a frame for an assembly source file you would eventually add to your project.

In a standard development process I would use main.c (and function main) as starting point for the application and either replace main.asm content with my own code or simply remove the file from the project and add my own assembly source file.

It mainly depends how you want to work.

CrasyCat

0 项奖励