# target-mbed-gcc **Repository Path**: mirrors_ARMmbed/target-mbed-gcc ## Basic Information - **Project Name**: target-mbed-gcc - **Description**: DEPRECATED Base for mbed yotta compilation targets compiling with GCC - **Primary Language**: Unknown - **License**: Apache-2.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-08-08 - **Last Updated**: 2025-11-22 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README ## Deprecation note! **Please note: This repository is deprecated and it is no longer actively maintained**. ## Base yotta Target Description for Compiling with arm-none-eabi-gcc This is a base [yotta target description](http://docs.yottabuild.org/tutorial/targets.html) for compiling mbed OS with the arm gcc cross-compiler. Other target descriptions can inherit from it and add or override things as necessary (such as the link script, or preprocessor definitions). You should not select this target to compile with directly (compilation will probably not succeed without target-specific startup code). See [CHANGELOG.md](CHANGELOG.md) for the changes associated with each version. ## Code Coverage To enable code coverage for a specific module, add this config to the application's config.json: ```JSON "debug" : { "options" : { "coverage" : { "modules" : { "" : true } } } } ``` For example, to add code coverage to the sockets module, use this config: ```JSON "debug" : { "options" : { "coverage" : { "modules" : { "sockets" : true } } } } ``` If building tests, then this config can be passed on the command line via the ```--config``` option. For example, ``` yotta build --config testconfig.json ``` ``` yotta build --config '"debug" : { "options" : { "coverage" : { "modules" : { "sockets" : true } } } }' ``` ## Configuring floating point support in `printf` Floating point support in `printf` is enabled by default by this target description. (Although derived targets may override this behaviour through the [yotta config](http://yottadocs.mbed.com/reference/config.html) system.) If you need to change the default behaviour (perhaps because the increase in code-size is unacceptable to you), then you can do this in the `config` section of a target description, or in an application's `config.json` file: ```JSON "gcc": { "printf-float": false } ``` Or: ```JSON "gcc": { "printf-float": true } ```