필터 지우기
필터 지우기

Simulink Subsystem Compilation Error - Exceeds maximum allowable size

조회 수: 1 (최근 30일)
Chris
Chris 2014년 7월 3일
답변: Chris 2014년 7월 8일
I am trying to run a Simulink model which has a number of Matlab based subsystems. I get the following error from the compiler when i try to run the model:
LINK : fatal error LNK1248: image size (C07DD000) exceeds maximum allowable size (80000000) NMAKE : fatal error U1077: '"c:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\bin\amd64\link.exe"' : return code '0x4e0'
Now I have set each Matlab subsystem as Atomic Units and set the Code Generation option on each subsystem to "Nonreusable function" so as to ensure that separate code is generated for each subsystem.
Each subsystem works fine by itself.
Why is the compiler trying to link the code together all into one file, that ends up being too large for it to cope with?

채택된 답변

Chris
Chris 2014년 7월 8일
A solution that is working for me is to use Model Referencing. I have converted each Matlab subsystem into a Referenced Model. After a little bit a work, specifying sample rates instead of using inherited values, it seems to work fine. Each Referenced Model has its own MEX file and therefore I don't run into the problem of exceeding the maximum static code memory limit of the compiler.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Simulink Functions에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by