c program using empty main function?

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

c program using empty main function?

1,705件の閲覧回数
georgemathew
Contributor II

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

void main()
{
}
ラベル(1)
0 件の賞賛
返信
8 返答(返信)

1,017件の閲覧回数
georgemathew
Contributor II

is only main.c added in code warrior?

0 件の賞賛
返信

1,017件の閲覧回数
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,017件の閲覧回数
georgemathew
Contributor II

code warrior 5.1, controller MC9S12A128

0 件の賞賛
返信

1,017件の閲覧回数
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,017件の閲覧回数
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,017件の閲覧回数
georgemathew
Contributor II

please explain methods?

0 件の賞賛
返信

1,017件の閲覧回数
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,017件の閲覧回数
georgemathew
Contributor II

I found a a program in which main function is empty

0 件の賞賛
返信