Skip to content

Instantly share code, notes, and snippets.

Avatar

Vladimir Chistyakov b1ackviking

View GitHub Profile
@b1ackviking
b1ackviking / gcc-includes.cmake
Created Mar 2, 2021
Extracting GCC system include directories
View gcc-includes.cmake
set(GCC_INCLUDE_DIRECTORIES)
if(WIN32)
execute_process(
COMMAND ${CMAKE_CXX_COMPILER} -v -x c++ -E NUL
ERROR_VARIABLE _gcc_output
OUTPUT_QUIET)
else()
execute_process(
COMMAND ${CMAKE_CXX_COMPILER} -v -x c++ -E -
@b1ackviking
b1ackviking / cortex-gcc-flags.txt
Created Mar 1, 2021
GCC compiler options for Cortex cores (extract from GNU Tools for ARM Embedded Processors readme)
View cortex-gcc-flags.txt
Architecture options usage
--------------------------------------------------------------------
| ARM Core | Command Line Options | multilib |
|----------|--------------------------------------------|----------|
|Cortex-M0+| -mthumb -mcpu=cortex-m0plus | armv6-m |
|Cortex-M0 | -mthumb -mcpu=cortex-m0 | |
|Cortex-M1 | -mthumb -mcpu=cortex-m1 | |
| |--------------------------------------------| |
| | -mthumb -march=armv6-m | |
|----------|--------------------------------------------|----------|
View ASCII.hpp
enum class ASCII : char
{
eNUL,
eSOH,
eSTX,
eETX,
eEOT,
eENQ,
eACK,
eBEL,