Scilab Home Page | Wiki | Bug Tracker | Forge | Mailing List Archives | Scilab Online Help | File Exchange
ATOMS : Scilab 2 C details
Login with GitLab

Scilab 2 C

Translate Scilab code into C code
(11808 downloads for this version - 35774 downloads for all versions)
Details
Version
2.1
A more recent valid version exists: 2.3
Authors
Bruno JOFRET
Allan SIMON
Raffaele NUTRICATO
Alberto MOREA
Maria Teresa CHIARADA
Owner Organization
DIGITEO
Maintainers
Bruno JOFRET
Pierre MARECHAL
Categories
License
Creation Date
September 1, 2010
Source created on
Scilab 5.2.x
Binaries available on
Scilab 5.2.x:
Windows 64-bit Windows 32-bit Linux 64-bit Linux 32-bit macOS
Install command
--> atomsInstall("scilab2c")
Description
            Sci2C is a tool capable to translate Scilab code into C code.

It is a standalone toolbox of Scilab and it has been primarily developed to
become the interface between the Scilab scientific software package and the
hArtes design flow.

The output C code is in a plain style and does not include any part of the
Scilab interpreter thus making it small, efficient and easy to interface to the
hArtes tool chain.

In other words, the generated C code is standalone and minimal in the sense that
Scilab interpreter is no longer needed and only the minimal number of C files
which are necessary to execute the application are generated. It follows that
the generated code can be embedded in processors or used as entries for other
software.

Sci2C is implemented in Scilab language, so it naturally becomes a Scilab
toolbox available in the Scilab installation program and consequently it can be
directly used in the Scilab Development Environment. 

The implementation of Sci2C is mainly based on the introduction of data and
function annotations into Scilab code which is seen as comment by the Scilab
interpreter, but that are used by Sci2C to translate the Scilab code into an
efficient and plain C code. Moreover the use of annotations allows the user to
specify not only the size of data but also their precision, in that way it is
possible to get a further optimization of the C code produced thanks to the
possibility to use ad-hoc precision for each data to be processed.

Two major limitations can be identified in Sci2C: the first limitation of the
tool is that the annotations must be manually added by the user, although it is
the only manual intervention required by the tool; the second limitation is that
the size of data is fixed and consequently no dynamic array extension is
allowed. 

Other minor limitations have been introduced in order to simplify the
development of the tool without impacting on the usefulness of it for embedded
systems.
            
Files (2)
[4.19 MB]
Source code archive

[6.02 MB]
OS-independent binary for Scilab 5.2.x
Binary version
Automatically generated by the ATOMS compilation chain
Patched to avoid Regression on Moebius test.
News (0)
Comments (1)     Leave a comment 
Comment from anand iyer -- October 18, 2011, 07:08:44 AM    
I wanted to perform scilab/c++ interfacing (i.e passing 2 values in c and getting output in

scilab)

for that I have created toolbox

I know how to link .cpp files

but how can I link toolbox in scilab?

or is there any other way to do it?
Leave a comment
You must register and log in before leaving a comment.
Login with GitLab
Email notifications
Send me email when this toolbox has changes, new files or a new release.
You must register and log in before setting up notifications.