你见过最简单的构建系统,比 Gnu Make / CMake 都简单很多。 只有两三个源代码,那 makefile 随便写,文件一多,搞依赖都可以搞死人。emake 就是简单中的简单,不但比 GNU Make 简单,还要比 cmake 简单很多。 应为CMake 和 GNU Make 都是命令式构建工具,而 emake 是定义式构建工具,命令式当然可以处理各种复...
Why GitHub? Team Enterprise Explore Marketplace Pricing Sign inSign up hermitcore/gcc Watch1 Star2 Fork2 Code Issues Pull requests Actions Security Insights More hermit gcc/Makefile.def Go to file Copy path 640 lines (594 sloc)29.4 KB ...
直接搜索 `Ninja` 去 [Ninja官方网站](Ninja, a small build system with a focus on speed) 按照提示去到 [github](https://github.com/ninja-build/ninja/releases) 下载压缩包,解压出可执行文件,放到本地某个目录下,然后将这个目录的路径添加到系统的环境变量中去。
A common mistake in C is omitting extern when declaring a global variable in a header file. If the header is included by several files it results in multiple definitions of the same variable. In previous GCC versions this error is ignored. GCC 10 defaults to -fno-common, which means a li...
Binary file out/user_app@xxxevb/libraries/user_app.stripped.a matches map文件清晰地显示,在BSS段中有个object叫 mcuotat,要知道在BSS段中出现,这玩意就是global的东西了。 这什么意思? 意思就是编译器已经把mcuotat当做一个全局变量了。 那么我们来梳理一下,当userapp.h里面定义了一个 mcuotat 的全局变...
从:ftp://ftp.gnu.org/gnu/gcc/gcc-8.2.0/下载源码包:gcc-8.2.0.tar.gz。使用命令:tar -zxvf gcc-8.2.0.tar.gz解压。当然也可以在:https://github.com/gcc-mirror/gcc下载源码。下载过程如下: 选择gcc版本,在Branches这里选择gcc-8这个分支: ...
wget https://github.com/xianyi/OpenBLAS/releases/download/v0.3.21/openblas-v0.3.21.tar.gz || wget https://gitcode.net/mirrors/xianyi/openblas/-/archive/v0.3.21/openblas-v0.3.21.tar.gz;\ tar -xzvf openblas-v0.3.21.tar.gz cd openblas-v0.3.21 ...
https://github.com/bfuxd/stm32f103EmptyProject 这是完整工程(去掉了空文件夹,去掉了输出目录),其中的 makefile 支持 windows 和linux。 https://github.com/bfuxd/stm32f1Template 是模板工程,添加了一些基本功能。 J-Link烧录和调试 .vscode/launch.json 里写入 ...
libsupc++是libstdc++的子集,可以在github找到libsupc++,它是libstdc++的一个子文件夹: libsupc++包含C++最核心的一部分功能,比如: 内存分配:operator new, operator delete等 异常处理 run-time type information (RTTI):dynamic_cast,typeinfo类等 初始化列表:定义了template initializer_list … ...
下载GCC8.3源码(附件中也有) GCC的源码仓库地址为: https://github.com/gcc-mirror/gcc ,在浏览器打开这个网址后,不要急于下载,先选择gcc的版本,如下图所示...gcc-releases-gcc-8.3.0.zip 获取完成源代码后, 将当前目录切换到GCC源码根目录, 进入下一步.../gcc-8.3.0/bin/gcc --version image.png 得到...