DSP establishes C environment function c_int00 () __ function

Source: Internet
Author: User
Tags reset

We know that after the DSP starts, the system will enter the reset interrupt, at this time the Reset interrupt service function is c_init00, this function is used to establish the C environment, to enter the main () function for system initialization, the main work is to build the stack, initialize the global variables and so on.

Initialization of global variables: If the program is linked with the-C option, the compiled linked executable will place the initialization of the global variable in the c_init00 () function, which will call the _auto_init (cinit) function. Copy the contents of the. Cinit segment into the. BSS in the corresponding variable, this procedure is performed before the system is power-up into the main () function.

If the program uses the-CR option at link time, the global variables in the compiled executable program need to be initialized with loader, which is typically used when JTAG debugging is loader.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.