c program using empty main function?

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

c program using empty main function?

1,706 次查看
georgemathew
Contributor II

is it possible to write c program using empty main function?

void main()
{
}
标签 (1)
0 项奖励
回复
8 回复数

1,018 次查看
georgemathew
Contributor II

is only main.c added in code warrior?

0 项奖励
回复

1,018 次查看
Alice_Yang
NXP TechSupport
NXP TechSupport

You can add code refer to your requirement .

I recommend you find one demo project to refer to .

If you can not find ,you can tell me the chip part number , the version of CW.

BR

Alice

0 项奖励
回复

1,018 次查看
georgemathew
Contributor II

code warrior 5.1, controller MC9S12A128

0 项奖励
回复

1,018 次查看
Alice_Yang
NXP TechSupport
NXP TechSupport

Hello george,

Under the installation directory of CWv5.1, there is C demo code for this chip :

pastedImage_1.png

Hope it helps

Alice

0 项奖励
回复

1,018 次查看
Alice_Yang
NXP TechSupport
NXP TechSupport

Hello george,

Just through your these words, the answer is yes ,you can write c program into this main function.

What do you want to do ? Could  you please introduce your requirements clearly ?

BR

Alice

0 项奖励
回复

1,018 次查看
georgemathew
Contributor II

please explain methods?

0 项奖励
回复

1,018 次查看
Alice_Yang
NXP TechSupport
NXP TechSupport

Dear george,

What methods ? I don't know what do you want to do .

please introduce your requirements clearly .

BR

Alice

0 项奖励
回复

1,018 次查看
georgemathew
Contributor II

I found a a program in which main function is empty

0 项奖励
回复