Embedded Corder と Sumulink CoderのOUTPUTについて

6 views (last 30 days)
Kenji Morikawa
Kenji Morikawa on 9 Jun 2016
標題について下記の回答をお願いします。 下記は御社webに記載されている、各corderのoutputについての記載です。  Simulink Corder:汎用Cコード  Embedded Corder:量産用最適化コード ① 汎用Cコードとは、ANSI-Cのことでしょうか(ターゲットCPUに依存しないコード)? ② 量産用に最適化された…とは具体的にどの様な最適化でしょうか?代表的な項目を教えて下さい。 ③ 汎用Cコードを用いてターゲットCPU向けのコンパイル/アセンブルを行いオブジェクトを作成することと、量産用最適化コードを用いてターゲットCPU向けのコンパイル/アセンブルを行いオブジェクトを作成することの違いは何でしょうか。②で云う最適化の部分でしょうか。尚、Embedded CoderはターゲットCPUが決まっているのでオブジェクト生成まで全て実行できるツールセットなのでしょうか。(AutoCodeをソフトウェアのアプリケーション部のみ、つまりCPUに依存しない部分に適用する前提での質問です) ④ Embedded Corderには、AutoCode検証の為にモデル動作結果とCコード動作結果を簡単に比較(例えばグラフ等)する機能は備わっているでしょうか。
  1 Comment
Walter Roberson
Walter Roberson on 9 Jun 2016
Approximate translation:
Please give me the answer of the following for the title. The following are listed in your web, is a description of the output of each corder. Simulink Corder: general-purpose C code Embedded Corder: the mass production for optimized code ① general-purpose C code, you will either be of the ANSI-C (does not depend on the target CPU code)? ② has been optimized for mass production ... and how about you what kind of optimized specifically? What is the typical item. ③ and to create an object to compile / assemble for the target CPU using a general-purpose C code, what is the difference between a thing to create an object to compile / assemble for the target CPU using a mass-production optimized code UGA. ② I suspect you're part of the optimization referred. In addition, Embedded Coder is do you set of tools that you can run all to object creation because it decided the target CPU. (AutoCode the application of the software only, that is, the question of the assumption to be applied to the part that does not depend on the CPU) ④ The Embedded Corder, AutoCode easy comparison (for example graph the model operating results and the C code operating result for the verification etc.) to work or would have provided.

Sign in to comment.

Answers (1)

Norihiro Kobayashi
Norihiro Kobayashi on 9 Nov 2016
・①②③につきましては、SimulinkCoderとEmbeddedCoderの違いに関するご質問と理解しました。
「汎用Cコード」 と 「量産最適化コード」 の違いについてですが、汎用Cコードと量産最適化コードの違いは、最適化される前か、後か程度の違いとご理解ください。
最適化される項目の代表例は、量産マイコンに実装する際に気になることの多い「実行効率」「ROM効率」などが挙げられます。 よろしければ、例題として こちら もご参照ください。
また、会社ごとのコーディングルールなど、特定のコードを出力させたい場合のカスタマイズ機能も、「量産最適化コード」の意味合いには含まれているとお考えください。
・④に関しては対応する機能としてEmbeddedCoderのSILの機能がございますので、以下ドキュメントをご参照下さい。 Simulink上でCコード生成前とCコード生成後の両方に同じ入力を与えて、結果の比較をするための機能になります。 https://jp.mathworks.com/help/ecoder/software-in-the-loop-sil-simulation.html?searchHighlight=sils

Community Treasure Hunt

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

Start Hunting!