What is the use of pragma code section and data section?
问题 What exactly will happen to the data segment and text segment if I use the below two lines in my c source code file? #pragma CODE_SECTION(func1, "Sec1") #pragma DATA_SECTION(globalvar1, "Sec2") 回答1: Source (contains examples): http://hi.baidu.com/jevidyang/blog/item/6d4dc436d87e3a300b55a918.html Note: #pragma is compiler specific, so syntax may vary for your compiler. The DATA_SECTION pragma allocates space for the symbol in a section called section name. The syntax for the pragma in C could