Skip to content
项目

关于

embxx - Embedded C++ Library

开发工具

这些数字如何统计

实测星标增长

24小时
0
7天
0
15天
正在收集历史
1个月
正在收集历史

各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。

README.md

原文

Overview

Embxx is Embedded C++ library that is developed with intetion to be used in bare metal and Linux based embedded environments. It comes to supplement essential functionality that is missing in widely used STL and BOOST C++ libraries.

Embxx doesn't use "RTTI" and "exceptions". It makes a significant effort to completely eliminate or minimise usage of dynamic memory allocation in order to make it usable with embedded system with low memory footprint and/or slow CPUs.

What you need

  1. CMake - Mandatory. This library uses cmake to generate Makefiles.
  2. gcc v4.7 or greater. Mandatory. This library uses C++11 constructs that may be not fully supported in earlier versions of this compiler.
  3. Doxygen - Optional. Used to generate documentation.
  4. Boost - Optional. Used in unittesting.
  5. Python - Optional. Used to run cxxtest to perform unittesting

How to use

  1. Create build directory (at any convenient place) and cd there:
    $> mkdir <embxx_sources>/build
    $> cd <embxx_sources>/build
    
  2. Generate makefiles using cmake together with the path to embxx sources. If no definitions specified, the makefiles will include compilation of unittests and examples:
    $> cmake ..
    
    To exclude unittests, use -DNO_UNIT_TESTS=1 option:
    $> cmake -DNO_UNIT_TESTS=1 ..
    
    To exclude examples, use -DNO_EXAMPLES=1 option:
    $> cmake -DNO_EXAMPLES=1
    
    To exclude both unittests and examples, use both options:
    $> cmake -DNO_UNIT_TESTS=1 -DNO_EXAMPLES=1 ..
    
  3. Compile all the sources and install. The installation root directory is <build_dir>/install
    $> make install
    
  4. To run the unittests (if such were compiled):
    $> ctest
    
  5. Generate doxygen documentation. The documentation will be generated in <build_dir>/doxygen.
    $> make doxygen 
    
  6. Add "<build_dir>/install/include" to include search paths for your project

Using embxx as git submodule

The alternative way to use embxx is simply add its repository as git submodule in your project, then add <git_embxx_submodule_dir> to your include search paths.

Current documentation

The latest documentation for the library may also be found at the following link: Dropbox or from release artifacts

Git branches

"master" - main branch, will always contain latest stable (released) version. "develop" - current development branch

Contact information

Author: Alex Robenko E-mail: [email protected]

探索相关项目

加载中…