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

cancel
Showing results for 
Search instead for 
Did you mean: 

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

2,303 Views
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
Labels (1)
0 Kudos
1 Reply

28 Views
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 Kudos