필터 지우기
필터 지우기

MATLAB Coder Support for C11 and Textscan()

조회 수: 1 (최근 30일)
Paul Metcalf
Paul Metcalf 2013년 6월 4일
Hi all, Does MATLAB Coder support C11 as a target language? My guess is not, but I wonder if this is planned for a future release? In terms of text processing, does MATLAB Coder support the MATLAB function Textscan()? Again, my guess from quickly browsing the release notes is not? Thanks everyone...

채택된 답변

Ryan Livingston
Ryan Livingston 2013년 6월 4일
Hi Paul C11 and TEXTSCAN are both currently unsupported with MATLAB Coder. Using coder.ceval() it is possible to read from a file via C routines:
Another technique is to write your own C function which calls into FSCANF as desired and just call that method with coder.ceval().
Out of curiosity, what features of C11 would you find useful in the generated code?

추가 답변 (1개)

Paul Metcalf
Paul Metcalf 2013년 6월 5일
Thanks Ryan. I'm not a current user but I'm just trying to keep on top of developments for potential future projects. Do you think MATLAB Coder might offer support of Textscan() in the future (via officially supported code replacements)? Regarding C11, I suppose my main area of interest is how parfor(), simd() etc might be handled by MATLAB Coder, since C11 includes new thread.h functions for this, that are somewhat similar to the POSIX commands. I'll have a read of the documentation regarding Matlab Coder support for the Parallel Toolbox, but do you have any specific plans to support C11/C++11 as a target language? Thanks, Paul
  댓글 수: 1
Ryan Livingston
Ryan Livingston 2013년 6월 6일
Unfortunately, we can't comment on the plans for supporting TEXTSCAN or C11 but your requests for those have been noted.
Currently PARFOR is supported by MATLAB Coder in generated MEX functions. OpenMP provides the parallel constructs for MATLAB Coder to do so:
Thanks for the suggestions Paul!

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

카테고리

Help CenterFile Exchange에서 Large Files and Big Data에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by