2004-11-07 03:37 PM
#pragma DATA_SEG : what does it do
2004-11-03 03:13 PM
Hi
i am new to the field of firmware writing . I was just going through code and i came across the following statment #pragma CONST_SEG #pragma DATA_SEG can anybody please explain what does these statement does. Thanks Ronnie2004-11-07 03:37 PM
Hello Ronnie,
Any statement starting with pragma is a compiler directive. Hence in this case it depends upon compiler to compiler. It seems that you are using Metrowerks compiler, pragma DATA_SEG *** means that the variables of the below code are going to be placed in the RAM segment ***. For detailes refer to the Metrowerks (Hiware) compiler manual. Hope it helps