Alexey

CW56800E & deadstripping

Discussion created by Alexey on Dec 4, 2006
Latest reply on Dec 5, 2006 by CrasyCat
I have some constants in my program. They are not used in program but can be read via CAN. During linking this constants deleted. I tried to edit linker file and use KEEP_SECTION {.const.data} but i does not like this way (need to disable generating linker file in PE).

Also i tried to use #pragma opt_dead_code but it does not work - why.
What else can i do?

Message Edited by Alexey on 2006-12-0410:29 AM

Outcomes