Startup Code

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

Startup Code

1,963 次查看
RChapman
Contributor I

This message contains an entire topic ported from a separate forum. The original message and all replies are in this single message. We have seeded this new forum with selected information that we expect will be of value to you as you search for answers to your questions.

 

Posted: Dec 7, 2005, 1:46 a.m.

 

While creating the new project using the processorexpert, there comes one quetion in New Project Wizard- Page 5, called " which level of startup code do u want to use?-- minimal startupcode or else ANSI startup cede?".

 

we want details about these two startup code. which startup code is to be selected to create the project? & which one is the best? what is the difference between both. How to initialize the global variables, if select the minimal startupcode? we want to write the code for motorcontrol purpose.

 

Posted: Dec 7, 2005, 4:27 a.m.

 

To start with or if you are unsure about this question in the wizard, use the ANSI-C one.

 

It will initialize all your global variables on its own, so you do not have to care about this one. The minimal startup code is for people which are trying to squeeze the last bit out of their application, it drops the initialization of global variables (so you have to init them with, for example an assignment "glob=7;"). It basically only adds SP initialization to get C code running, which then could do the remaining init, if necessary.

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