필터 지우기
필터 지우기

__packed in polyspace code prover

조회 수: 3 (최근 30일)
srinivasan kandaswamy
srinivasan kandaswamy 2015년 10월 15일
댓글: srinivasan kandaswamy 2015년 10월 16일
Hello, Getting error identifier "__packed" is undefined in polyspace code prover. How to solve this?
Thanks and Regards, Srinivasan K.

채택된 답변

Alexandre De Barros
Alexandre De Barros 2015년 10월 15일
Hello,
The easiest way for Polyspace to ignore this extra keyword is to define a macro like this:
__packed=
You add it as a usual macro to your Polyspace project, the difference with a usual macro being that this one ends with an = sign. By doing this, the Polyspace preprocessor will replace the keyword __packed by nothing. Hence the keyword will be actually ignored in the code verification.
Regards,
Alex
  댓글 수: 1
srinivasan kandaswamy
srinivasan kandaswamy 2015년 10월 16일
Hi Alex, It is solved by declaring _packed as *_attribute__((packed))*. I will try the suggestion given by you also. Thanks for the support.
Regards, Srinivasan K.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by