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 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