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

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

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

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

868 Views
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 Kudos
Reply