-1

Can i write a condition in the .lcf ?

I want to check if the sum of certain sections is above a certain threshold. if yes i want the linker to show Error/Warning

I'm new to the .lcf and i don't know if this is possible or not.

Any Advice ?

Linker : WindRiver Linker 5.9.4

1 Answers1

0

The following line if added to the .lcf will give a linker error if the value is above the threshold:

ASSERT( value < threshold, " The value is above the threshold ")
Kyll
  • 7,036
  • 7
  • 41
  • 64