Is there a way to generate "typedef short int" and typedef "unsigned short int"? I want this for my harware but what I get is only "typedef int" and typedef "unsigned int" irrespective of various hardware I selected including custom hardware.

 채택된 답변

Mark McBroom
Mark McBroom 2023년 10월 25일

0 개 추천

This can be accomplished by picking a 64 bit custom processor on the Hardware tab. See attached model.

댓글 수: 1

Venkatesan
Venkatesan 2023년 10월 25일
Thanks. This helped me to fix the problem. In fact I was using replacement data type i16 and u16 for int and unsigned int which forced the coder to generate int for i16 instead of short.

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

추가 답변 (0개)

카테고리

질문:

2023년 10월 16일

댓글:

2023년 10월 25일

Community Treasure Hunt

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

Start Hunting!

Translated by