Project Configuration

Modelify uses Atlas to analyze your C code. In order to map your C code, Atlas needs the same settings that the compiler needs to build your project. The following guide explains common ways to import an existing C code base into an Eclipse CDT project, and to prepare it for use with Atlas and Modelify.

If the project requires a special compiler (other than gcc), you may need to install additional CDT features to support your toolchain. Modelify is distributed with support for gcc and gcc-based cross compilers.

Installing a C compiler

Subsections below require a C compiler installed in your system so that you can compile your C code once it's imported into eclipse.

If you already have a C compiler installed then you can skip this section. Otherwise, you could follow steps below to install an open source C compiler.

It is not necessary to add MinGW to the Windows system path, and in fact is not recommended, because it can cause conflicts with other command-line tools.

Instead, you should add the MinGW/MSYS binaries to the build path for eclipse CDT:

Importing C projects in Eclipse

Configuring C projects for Atlas

At this point, your C project may already be configured correctly. In order for Atlas to obtain compiler settings (such as include paths and preprocessor directives), the CDT must be able to build your C project and observe invocations of your compiler. Review the steps below to ensure that Atlas can extract compiler information from the build process.

If your project uses a gcc-based cross compiler, configure the project to use it (instructions adapted from stackoverflow.com).

The steps below detail the changes necessary to accurately map the files built.

Build

To accurately map the project, it must be built so that the compiler invocations can be observed.

Map

After the project has been successfully built, it can be mapped with Atlas.

Troubleshooting

If Atlas is unable to properly map the project, try the following:

If you experience difficulty in setting up Atlas, please contact support@ensoftcorp.com for assistance.