Target Language Compiler | ![]() ![]() |
Process Specifics For The Real-Time Workshop Ada Coder
The code generated by the Ada Coder uses the same strategy and algorithms as the equivalent C target file. Minor language-specific differences will exist, such as when C code invokes a call to the C standard library memcpy()
function to copy an array of data, the generated Ada code will generate an assignment loop.
When searching for inlined S-Function block target files, the Ada Coder instructs the Target Language Compiler to look in tlc_ada/
directories instead of tlc_c/
directories. Target files for Ada have the %implements ... "Ada
" directive in them instead of the %implements ... "C"
directive.
The filenames generated by the Ada Coder follow the recommended extension naming practice used by the GNU Ada Translator (GNAT) environment, which are the familiar .adb
(body), .ads
(specification) file extensions.
The generated code is formatted for capitalization, comment style, and indentation to conform to the conventions in the book Ada 95 Quality and Style: Guidelines for Professional Programmers, part no. SPC-94093-CMC, version 01.00.10 from the Software Productivity Consortium, phone: +1 (703) 742-8877.
![]() | A Look at Inlined and Noninlined S-Function Code | Advantages of Inlining S-Functions | ![]() |